Does MATLAB plotting accept matplotlib syntax now?

조회 수: 2 (최근 30일)
Adam L. Lambert
Adam L. Lambert 2021년 6월 4일
편집: Adam L. Lambert 2021년 6월 4일
One of my students turned in some code and it threw a bunch of errors on my 2019b installation. When I was going through it they were basically using pyplot syntax to change the font size.
Instead of the name-value pairs,
title('Words!','FontSize',20)
They used key=value syntax like matplotlib
title('Words!',fontsize=20)
The code runs on their 2021a but not my 2019b.

채택된 답변

Kojiro Saito
Kojiro Saito 2021년 6월 4일
Yes, as written in R2021a release note, name=value syntax is supported from R2021a.
  댓글 수: 1
Adam L. Lambert
Adam L. Lambert 2021년 6월 4일
편집: Adam L. Lambert 2021년 6월 4일
Thanks! I guess I could have read that but I just checked the documentation for title() and did not see anything.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by