MatlabR2014b no more circle market type in plot

6 ビュー (過去 30 日間)
Maria
Maria 2014 年 10 月 24 日
編集済み: free5721 2018 年 11 月 21 日
Hi,
I had the following plot
plot(A(i,j),'linestyle','o')
that was perfectly working on Matlab R2013b. I have installed Matlab R2014b and it gives me the following error
Error using plot 'o' is not a valid value. Use one of these values: '-' | '--' | ':' | '-.' | 'none'.
Is not anymore available the circle marker type?
Best,
Maria
  4 件のコメント
free5721
free5721 2018 年 4 月 14 日
編集済み: free5721 2018 年 4 月 15 日
Windows 7 64-bit. Also, the o marker works when I run R2015b 32-bit on the same computer.
free5721
free5721 2018 年 11 月 21 日
編集済み: free5721 2018 年 11 月 21 日
Update: I have figured out the problem why my plot circles markers weren't apprearing and plot asterisks, triangles, etc markers were only half appearing. It was because the graphics capability of the my computer is now consired "low-level" by MATLAB R2018a and it is no longer compatible. I am now running OpenGL graphics.
I used the command: opengl('save','software') to fix the problem.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2014 年 10 月 24 日
'o' is not a linestyle, it's a marker. Perhaps you were doing this before
plot(A(i,j), 'bo-');
  1 件のコメント
Maria
Maria 2014 年 10 月 24 日
Removing 'linestyle' and using 'bo' I solved the problem! Thank you for your tip! Before I should say the code was exactly the same and it was working, I run it with R2013b and today with R2014b so I am sure it was working. But now the problem is solved! Thanks!

サインインしてコメントする。

その他の回答 (1 件)

Mike Garrity
Mike Garrity 2014 年 10 月 24 日
I think that R2013b was actually one of the last releases where this worked, although I think that it did issue a warning the first time you hit it in that release. The message looked something like this:
Warning: Setting marker type based on 'LineStyle' property
'Marker' and 'LineStyle' have been made separate properties
Use 'Marker' property to remove this warning
Way back, the marker style was part of the line style, but they got broken into separate properties for flexibility. I don't remember which release that happened in, but it was quite a ways back. When we did that, we slowly deprecated support for the old form. That's now completely gone.
There are actually two ways to do this now. One is to use the new name for the marker half of the property.
plot(A(i,j),'Marker','o')
The other, as Image Analyst said, is to use the "linespec" feature.
plot(A(i,j),'o')
This is an optional string which lets you code color, linestyle, and marker in one short argument instead of listing all of the different properties.
  1 件のコメント
Maria
Maria 2014 年 10 月 24 日
Thank you for your complete answer, I have just read it.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by