[英]how to change the color of a line after it was plotted
Well a simple question that I did not found the answer to.. 好吧,一个简单的问题,我没有找到答案..
I want to change the color of a line that I already plotted 我想改变已绘制的线条的颜色
ipython -pylab ipython -pylab
figure()
a = plot([1,2,3],[2,2,3],'r')
a.Change_Color('b')
You can do: 你可以做:
a[0].set_color('blue')
and perhaps you have to update the plot with show()
or draw()
. 也许你必须用
show()
或draw()
更新图。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.