Hi,
Does the zorder work between twin axis? I can't get lines on the first
axis to be on top of the second grid:
plot([20,30], [0, 5], color=red, lw=5, zorder=10)
ax2=twinx()
grid(ls=-, lw=5, zorder=-1)
ax2.set_axisbelow(True)
title(Why doesn't the read line go above the second axis?)
Dear List,
I have some variables I want to plot... the values of those variable
change in time... I would like to plot the result with a traditional
line plot
those variables are traits of a class (don't know if this can make a
difference...)
is there any example of this with matplotlib?
best
twinx makes a separate axes and zorders are only meaningful within a same axes.
Because ax2 is added to the figure later than the original axes,
artists in ax2 are always above others.
I don't think there is an easy way to make zorder work between several
axes, unless you somehow merge them into
I'm afraid that you may not be able to do those with the subplot.
If you want a fixed size axes, you need to manually calculate the axes
position (in normalized figure coordinates) using the figure size.
You may use my helper class which support a fixed-size axes.
thanks, it is exactly what I need... I have undestood the logic, I
build a plot, put my traits values into an array and then I call the
add_current_state_to_plot function to update the plot with the new
values...
I am an absolute beginner of matplotlib, can you give me a little
example of
#Skeleton example of a taking snapshots of an evolving class
import pylab as p
from math import log
class foo:
def __init__(self):
self.red = 0
self.green = 1
self.age = 0
self.history = ([self.age],[self.red],[self.green])
def snapshot(self):
Has anyone else noticed that when using latex with the OS X backend,
figures, while appearing fine on screen, come out poorly when saved as
images?
-gideon
--
This SF.net email is sponsored by:
SourcForge Community
Could you provide an example of code you've written that highlights
this and a more specific description of what you mean by coming out
poorly?
Josh
On Sun, Jan 18, 2009 at 11:51 PM, Gideon Simpson
simp...@math.toronto.edu wrote:
Has anyone else noticed that when using latex with the OS X