Dear Peter, due to the separation of the position of the styles from the rest (i.e. having implicit positioning styles at all), you can easily do that. The only problem is, that the symbol styles uses graph.style.pos implicitly (i.e. inserts in front of itself) when no positioning information is available. But the fix is trivial: just insert the barpos style in front. Thus you only need to modify the plot call in your minimal example by:
g.plot(v,[graph.style.barpos(), graph.style.symbol()])
Best,
André
Am 22.05.2011 um 05:36 schrieb Peter Desnoyers:
> I'm trying to do the equivalent of setting text values for xtics in Gnuplot -
> I want to be able to do a normal data point graph but with text labels. If I
> use a bar axis and graph.style.symbol I get an "incomplete position
> information" error...
>
> Here's what I'm doing:
>
> from pyx import *
> g = graph.graphxy(width=3, x=graph.axis.bar(),
> y=graph.axis.lin(min=0,max=10))
> v = graph.data.values(xname=("foo","bar"), y=(4,8))
> g.plot(v,[graph.style.symbol()])
> g.writePDFfile('foo')
>
> Thanks in advance...
>
> .....................................................................
> Peter Desnoyers [email protected]
> Northeastern Computer & Information Science (617) 373-8683
>
>
>
>
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its
> next-generation tools to help Windows* and Linux* C/C++ and Fortran
> developers boost performance applications - including clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> PyX-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyx-user
--
by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim
/ \ \ / ) [email protected], http://www.wobsta.de/
/ _ \ \/\/ / PyX - High quality PostScript and PDF figures
(_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
