Plot colors not showing up in Matlab R2016a Student Version

Hi,
I am using R2016a student version. I can make plots without any problems, but the colors don't show up. My legend has the colors that I want my lines to have, but all lines are the same color (dark red/brown). I can change the type of lines, for example dotted, dashed, etc., and it works fine. I can open the files in other computers just fine with the colors showing up correctly. I think it has to do with a missing file, but I am not sure which one. If anyone has ideas, please let me know.

回答 (1 件)

Vineeth Kartha
Vineeth Kartha 2016 年 3 月 15 日
編集済み: Walter Roberson 2016 年 9 月 6 日

0 投票

Hi,
Can you please try to create the plots by specifying the colors explicitly.
>>plot(x,y1,'red')
>>hold on
>>plot(x,y1,'green')
Please share if explicitly specifying colors gives the expected output.
Regards
Vineeth

3 件のコメント

Tirth Patel
Tirth Patel 2016 年 3 月 15 日
編集済み: Walter Roberson 2016 年 9 月 6 日
Actually I was already doing this. I talked to MATLAB support and they helped me out.
Switching opengl from software to hardware or renderer from opengl to painters will fix the issues of colors not showing up at all in MATLAB plots.
For example, running either of these two commands will fix this:
>>opengl software
Or
>>set(0, 'DefaultFigureRenderer', 'painters');
Juan Sebastián Spinel Peñuela
Juan Sebastián Spinel Peñuela 2016 年 9 月 6 日
I was experiencing the exact same issue, until I came upon your comment!
I didn't expect it was going to be that easy to fix.
Thanks! :)
Rodrigo Rosalez
Rodrigo Rosalez 2021 年 1 月 15 日
Thank you, was habbing the same problem.

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

カテゴリ

ヘルプ センター および File Exchange で Graphics Performance についてさらに検索

質問済み:

2016 年 3 月 8 日

コメント済み:

2021 年 1 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by