Hi Sybren,

On 10.03.06, Sybren Stüvel wrote:
> On Fri, Mar 10, 2006 at 03:39:30PM +0100, Andre Wobst wrote:
> > You need to pass a proper texter instance at the axis constructor.
> > See http://pyx.sourceforge.net/manual/module-graph.axis.texter.html
> > for available texters.
> 
> I'm using this code:
>     mynestedbaraxis = pyx.graph.axis.bar(
>             defaultsubaxis=pyx.graph.axis.bar(
>                 dist=0.2,
>                 painter=None
>             )
>     )
> 
> to create the axes. The axis.bar constructor doesn't allow me to
> choose another texter. How can I change the texter on such an axis?

A bar axis doesn't have a texter, because it's a descrite axis. Note
that the bar axis is located at the baseline of the bars (the
horizontal axis usually). I guess you want to change the labels at the
value axis (the vertical axis). For that you might need to pass your
own axis instance in the graph constructor graph.graphxy(...,
y=linear(...), ...) instead of relying on the default. In this
instance you create explicitly you can now specify the texter you want
to use.

I hope I have properly guessed your problem. If not just ask again. (A
running example is also always nice to have.)


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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to