Thanks.  This worked perfectly.

On 1/21/06, Joerg Lehmann <[EMAIL PROTECTED]> wrote:
> Hi Ryan,
>
> On 20.01.06, Ryan Krauss wrote:
> > I am new to PyX and am trying to use it for illustrations in my
> > thesis.  It seems really powerful.
> >
> > I am trying to draw and arc with arrows on both ends to illustrate a
> > swinging motion.
> >
> > my script starts with
> >
> > from pyx import *
> >
> > myasize=0.5
> > text.set(mode="latex")
> > #text.preamble(r"\usepackage{palatino}")
> > myarrow=deco.arrow(size=myasize)
> > myearrow=deco.earrow(size=myasize)
> > myblue=color.rgb(b=0.8,g=0.05)
> > mylinestyle=style.linewidth.Thick
> >
> > and I later define
> > mylinewarrows=[mylinestyle,myarrow,myearrow,myblue]
> >
> > this works great for straight lines but when I try:
> > myarc=path.arc(2.5,8.2,4,250,285)
>
> An arc is just a subclass of pathitem, i.e., something
> which in itself cannot be drawn directly on a canvas.
> Instead, you need to wrap it into a path before stroking
> it:
>
> myarc = path.path(path.arc(2.5, 8.2, 4, 250, 285))
>
> > #c.stroke(myarc,[myblue,mylinestyle])
>
> Btw, that this line works, is pure luck ;-)
>
>         Jörg
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to