#60 plot drawn on top of axes.

graph (1)

The plotting is always made on top of the axes. This is not the desirable behavior as the ticks of the axes should be on top of the data. I even tried to change the order of doplot and doaxes on the graph.graph.finish(), but it does not fix it.


  • Jorge Leitão

    Jorge Leitão - 2013-01-30

    This seems to be fixed by changing the graph.layers order.

    In graph.grpah.init(self), replacing

    for name in ["background", "filldata", "axes.grid", "axis.baseline", "axis.ticks", "axis.labels", "axis.title", "data", "key"]:


    for name in ["background", "filldata", "data", "axes.grid", "axis.baseline", "axis.ticks", "axis.labels", "axis.title", "key"]:

    fixes this bug.

  • Jörg Lehmann

    Jörg Lehmann - 2013-01-30

    I am not sure whether the behaviour you want is the "correct" one. I personally do like the data to be on top of the ticks. Another question is how one could allow the user to easily modify the order of the layers (which represent a new mechanism introduced in the last PyX version).

  • Jörg Lehmann

    Jörg Lehmann - 2013-07-12
    • status: open --> closed
  • Jörg Lehmann

    Jörg Lehmann - 2013-07-12

    With r3355 you can now reorder the graph layers by, e.g.

    g.layer("axes", above="data")


Log in to post a comment.