Hi,

I have a presumably very simple question,
but cannot see the solution:
How can one get get ticks pointing outward on the y2 axis?

The following does not work:
########################################
import pyx

xpaint = pyx.graph.axis.painter.regular(innerticklength=0,
           outerticklength=pyx.graph.axis.painter.ticklength.Long)
ypaint = pyx.graph.axis.painter.regular(innerticklength=0,
           outerticklength=pyx.graph.axis.painter.ticklength.Long)
y2paint = pyx.graph.axis.painter.regular(innerticklength=0,
           outerticklength=pyx.graph.axis.painter.ticklength.Long)

g = pyx.graph.graphxy(width=10,
      x=pyx.graph.axis.linear(min=0, max=5, painter=xpaint),
      y=pyx.graph.axis.linear(painter=ypaint),
      # Q: how to get ticks pointing outward here?
      #y2=pyx.graph.axis.linear(painter=y2paint)
                      )

g.plot(pyx.graph.data.function("y(x)=sin(x)"))
g.writeEPSfile("test_painter.eps")
########################################

Uncommenting the line
  #y2=pyx.graph.axis.linear(painter=y2paint)
gives
    raise RuntimeError("incomplete axis range%s" % errorname)
RuntimeError: incomplete axis range for axis y2

Can one somehow get a couple range for y2,
but specify a different painter?

Usually the plan to post a question leads to the answer,
but this time it did not work...;-)

Many thanks,

Arnd



-------------------------------------------------------
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

Reply via email to