errobar的颜色与Matlab图形不同 [英] Color of errobar different from the graph matlab
本文介绍了errobar的颜色与Matlab图形不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到了这个问题,我想使颜色的颜色不同于图表的颜色 有我尝试过的代码
i have this problem i want to make a color of errobars different from the color of my graph there is the code i have tried
pp=errorbar(x,testMatriceFluxSortie/ValeurFluxSortie(1,1),err)
pp.Color=[255 0 1]./255;
但这给了我全部红色 我的图
But it gives me this all in red my graph
推荐答案
在绘制误差线后,您始终可以使用hold on
并仅绘制x,y数据,例如:
you can always use hold on
and plot only the x,y data after the errorbar was plotted, for example:
x = 1:10:100;
y = [20 30 45 40 60 65 80 75 95 90];
err = 8*ones(size(y));
errorbar(x,y,err,'or'); hold on
plot(x,y,'b');
这篇关于errobar的颜色与Matlab图形不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文