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 Center および File ExchangeCall 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