Distorted (Crayon-like) Graph Colour
12 ビュー (過去 30 日間)
古いコメントを表示
The graph that I plotted using the following line looks like crayon.
plot(this_t_vec,sq(nanmean(rep_avg(:,:,cond(plot_loop),:,:),5)),'Color',c(c_inc,:),'linewidth',2);
The colour is fine when I plot random stuff e.g. plot(rand(10)).
Your help is deeply appreciated.
2 件のコメント
回答 (3 件)
Chidvi Modala
2021 年 3 月 30 日
The graph color is based on the value you set for the property 'Color'. Based on the given information, you are setting your 'Color' property to a variable (c_inc,:). You can set the 'Color' property to [1 0 0] for red color. You may refer to the 'Color' property in the below link
George Tucker
2022 年 3 月 18 日
I had a similar problem with slightly noisy data. It was mostly solved by setting the custom renderer of the figure to painters: (In the figure window: File>Export setup>Rendering>Tick custom renderer>Dropdown select painters (vector format) if its not the default.)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graphics Object Properties についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!