Hi list
I am trying to produce a vector plot with pyx.graph.style.arrow() in
which the arrow heads do not appear.
The only working solution I have found is to put
pyx.graph.style.arrow(arrowattrs=[pyx.color.transparency(1.0)])
but this does not seem like a "clean" solution.
The following two attempted solutions did not work:
1. pyx.graph.style.arrow(arrowattrs=[attr.clear])
File
"/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pyx/deco.py",
line 240, in processPDF
raise RuntimeError("Path neither to be stroked nor filled nor
decorated in another way")
2. pyx.graph.style.arrow(arrowsize=0)
File
"/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pyx/normpath.py",
line 957, in close
raise NormpathException("Normsubpath too short, cannot be closed")
Is there a better way than transparency to achieve this? The reason I
don't want arrow heads is that the field I am plotting is of
polarization "vectors", for which there is no distinction between the
angle theta and the angle (theta + 180 deg).
Cheers
Will
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user