[reportlab-users] setProperties for LinePlot
Robin Becker
reportlab-users@reportlab.com
Mon, 28 Jul 2003 16:22:15 +0100
In article <se65lm6bg1.fsf@pc020549.dhcp.germanlloyd.org>, Berthold
Höllmann <hoel@gl-group.com> writes
>Hello,
>
>I try to "setPropertie" for a linePlot. My problem is, how do I set
>the properties for the individual lines? lp.getProperties() returns
>
>...
> 'lines': <reportlab.graphics.widgetbase.TypedPropertyCollection instance at
>0x4051fa4c>,
>...
>
>but
>
>lp.lines.setProperties({
> '[0].strokeDashArray': None,
> '[1].strokeDashArray': [2, 1],
> '[2].strokeDashArray': [1, 1]})
>
..... this isn't going to work as we haven't done the parsing for the
[]. prefix. However, you can just do.
lp.lines[0].strokeDashArray = None
lp.lines[1].strokeDashArray = [2,1]
etc
--
Robin Becker