[Matplotlib-users] broken example - no module numerical_methods

2008-09-30 Thread Antonio Gonzalez
Hello, Running the latest mpl (svn 6134), 'fill_between.py' from the examples directory fails: File "fill_between.py", line 2, in import matplotlib.numerical_methods as numerical_methods ImportError: No module named numerical_methods Regards, Antonio -

Re: [Matplotlib-users] Hiding line plots

2008-07-10 Thread Antonio Gonzalez
Søren Nielsen wrote: > Is there a way I can hide a line plot? I have several line plots, and I > want to make a function to enable or disable a plot.. How do I tell each > line apart and remove/reinsert them? Try this in an interactive session, and see if it helps: ax = figure().add_subplot(11

Re: [Matplotlib-users] 'plot' broken on latest svn

2008-04-25 Thread Antonio Gonzalez
Eric Firing wrote: > John Hunter wrote: >> On Wed, Apr 23, 2008 at 6:45 AM, Antonio Gonzalez <[EMAIL PROTECTED]> wrote: >>> Hello, >>> >>> I've just updated to the latest svn (5063) and now I cannot create a >>> simple plot. If I just try

[Matplotlib-users] 'plot' broken on latest svn

2008-04-23 Thread Antonio Gonzalez
Hello, I've just updated to the latest svn (5063) and now I cannot create a simple plot. If I just try (in ipython -pylab): plot(rand(10)) I get: : 'module' object has no attribute 'masked_invalid' The complete traceback is pasted below. (My numpy version is 1.0.4, which indeed has no 'numpy

Re: [Matplotlib-users] What is the proper way to set y tick labels for a histogram ?

2008-02-22 Thread Antonio Gonzalez
Hi Aure, You could try: ax.set_yticklabels(ax.get_yticks()/len(x)) /Antonio Auré Gourrier wrote: > Hi all, > > I'm plotting the histogram of a data set: > > x = datalist > bins= 100 > hist(x,bins,normed=0)#returns a tupple (n,bins,patches) > > Rather trivial... but instead of the plot

Re: [Matplotlib-users] odd plot behaviour using symbol -- bug?

2007-06-23 Thread Antonio Gonzalez
> Yep this was it -- fixed in svn. Thanks for the clever test case! > > JDH Oh, well -- thanks for the very quick fix. Comes in very handy. A - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FRE

[Matplotlib-users] odd plot behaviour using symbol -- bug?

2007-06-22 Thread Antonio Gonzalez
I'm seeing a rather odd behaviour when plotting (using mpl 3405): - create a figure with two subplots - plot something on each axis - plot an extra something on the first axis USING A SYMBOL - set axis off - show() Result: the second plot won't be shown However, the second plot will be shown if I

Re: [Matplotlib-users] matplotlib RPM on SUSE 10.2?

2007-05-31 Thread Antonio Gonzalez
There are RPMs for SUSE here: http://software.opensuse.org/download/science/openSUSE_10.2/ though last time I tried to use them they just didn't work (maybe they do now?). However, having MPL running on SUSE is actually pretty easy. This is what I've done: 1. From the link mentioned above, instal

Re: [Matplotlib-users] Translating ticks a la MultipleLocator ?

2007-04-10 Thread Antonio Gonzalez
Not sure if I understand, but I think this is what you want to do: y = rand(1000) # your 1000 random points x = linspace(0, 250, y.size) plot(x,y) /A Iyer wrote: > I think this is a trivial question.. > > If there are a set of data points being plotted in a > subplot, say 0 to 1000 points; the

Re: [Matplotlib-users] plotting overlapped histograms

2006-11-13 Thread Antonio Gonzalez
To compare two histograms you can plot a bihistogram as suggested on http://www.itl.nist.gov/div898/handbook/eda/section3/bihistog.htm The little function I've written to do so is below. See if it helps. Antonio import scipy from pylab import figure def bihist(y1, y2, nbins=10, h=None):

Re: [Matplotlib-users] standardizing x-axes in hist

2006-11-02 Thread Antonio Gonzalez
When building your histograms, define your bins by means of either 'arange' (to set the same bin width) or 'linspace' (to set equally-spaced bin limits). Eg, if all your histograms will have an x-axis ranging from 0 to 100, and you want the data in each of them plotted into 12 equally-spaced bins,

Re: [Matplotlib-users] plot([0, 0], [1,2])

2006-07-18 Thread Antonio Gonzalez
> but when i try to plot the same at (0,2), i get an error: > > plot([0], [2],'o-'); show() Well, this works perfectly fine for me (with mpl 0.87.4, rev 2558). Maybe if you upgrade your mpl? Cheers. - Take Surveys. Earn