Hi Haminsh,

On 21.07.07, Hamish Allan wrote:
> You could fetch the canvas size after you've plotted the histogram and
> plot a rectangle somewhat larger than that for a border (completely
> alpha-blended if you don't want a visible border).

Sure, invisible objects will work, but better pass a bbox to the page.
To stay with the example:

from pyx import *
d = graph.data.list([(1,  25),
                     (2,  7),
                     (3,  3),
                     (4,  8),
                     (5,  5)], x=1, y=2)
g = graph.graphxy(width=8)
g.plot(d, [graph.style.histogram()])
g.writeEPSfile("histogram", bbox=g.bbox().enlarged(1))


Best,

André

-- 
by  _ _      _    Dr. André Wobst
   / \ \    / )   [EMAIL PROTECTED], http://www.wobsta.de/
  / _ \ \/\/ /    PyX - High quality PostScript and PDF figures
 (_/ \_)_/\_/     with Python & TeX: visit http://pyx.sourceforge.net/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to