Hi,

I have a small fix for keys in histograms.  I'd like my histogram keys
to show the shading of the boxes, not just the lines -- changing line
1189 in the key_pt method for histrograms in style.py to

graph.store(path.rect(x_pt, y_pt, width_pt, height_pt), privatedata.lineattrs)

fixes this. The diff is attached.

Imran

ps.
I've been lurking on the list for a long time ... I think PyX is
fantastic.  hope I am finally making a useful contribution :)
1189c1189
<             graph.stroke(path.line_pt(x_pt, y_pt+0.5*height_pt, x_pt+width_pt, y_pt+0.5*height_pt), privatedata.lineattrs)
---
>             graph.stroke(path.rect_pt(x_pt, y_pt,width_pt, height_pt), privatedata.lineattrs)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to