← Back to team overview

yade-dev team mailing list archive

plot.plo() with different colors?

 

Hi,

help(yade.plot.matplotlib) says that I can change the colors of the
plot lines by using the yade.plot.matplotlib.rc() function. But I don't
actually see how to use it with yade.plot.plot(). Any hints?

Could be that I missed something obvious. If not, then it could be
that I'll try do modify plot.plot() to add this functionality :)

I just would like to use the styles and colors as explained at the
very beginning of this tutorial:

http://matplotlib.sourceforge.net/users/pyplot_tutorial.html

for example I would like to draw porosity with blue squares connected
by a line '-bs'. Strain with a red line '-r', and void_ratio with
default color:

plot.plots={'epsilon_1':(('sigma_1','-r'),None,('porosity','-bs'),('void_ratio',)),'epsilon_1_':(('epsilon_123',))}

lots of excessive brackets though...

best regards
-- 
Janek Kozicki                               http://janek.kozicki.pl/  |



Follow ups