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
wrote:
> Has anyone else noticed that when using latex with the OS X backend,
> figures, while app
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
So
#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):
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 add_cur
Guessing about what you want:
Does the class change with time? that is, perhaps you have a class
foo, and foo evolves, and you would like to plot a history of some
traits of foo, but at any given moment foo only contains its current
state?
If so, I think you need to have a function in foo,
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.
http://dl.getdropbox.com/u/1787
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 a
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 r
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?")
C