← Back to team overview

yade-dev team mailing list archive

Re: plot.plot() with different colors? - works!

 

Václav Šmilauer said:     (by the date of Thu, 08 Jul 2010 10:31:18 +0200)

> > 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',))}
> Well, this should work. 

OMG, indeed it works! I assumed it wouldn't work, and I tried to
invent this syntax myself. Python is so intuitive and it is so
surprising for me :).

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

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



References