Hi,
you may not want to deal with clipping etc. at all. Just place your
large canvas at different positions on several pages. It should harm
any PostScript device/RIP ... it'll throw away all things outside of
the printable area. Example:
from pyx import *
c = canvas.canvas()
c.text(0, 10, "This is huge!", [trafo.scale(50)])
d = document.document()
for i in range(5):
c2 = canvas.canvas()
c2.insert(c, [trafo.translate(-20*i, 0)])
d.append(document.page(c2, centered=0,
paperformat=document.paperformat.A4))
d.writePSfile("banner")
Best,
André
On 31.07.07, René Bastian wrote:
> Le Mardi 31 Juillet 2007 16:13, Michael SCHINDLER a écrit :
> > Salut René,
> >
> > On 31.07.07, René Bastian wrote:
> > > -- is it possible to extend a graph on several sheets ?
> > > (e.g. graphical scores)
> >
> > what do you mean with "sheets" and "graph"? In pyx, a "graph" is an
> > instance of the pyx.graph class, mainly used for plotting a function
> > or a data set.
>
> OK, I meant "page"
>
> >
> > > -- how to manage it if a line goes beyond the limit of a sheet
> > > and has to be continued on the next sheet?
> >
> > If you mean "page" by "sheet", the answer is the following: You draw
> > your line on a "canvas" (that is an inifinitely extended canvas for
> > drawing) and write it into two different "pages" (which know about
> > paperformats etc). When writing, you can clip it to the paperformat
> > you want to have, or some smaller geometry.
> >
> > The point is that pyx does not do this automatically. You have to
> > shift the canvas appropriately before writing it a second time, taking
> > into account the clipping geometry. The amount of the shift you have
> > to calculate yourself.
> > Michael
>
> Thanks for the tip
>
> --
> René Bastian
> http://www.musiques-rb.org
> http://pythoneon.musiques-rb.org
>
>
>
> -------------------------------------------------------------------------
> 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
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