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
-
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
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
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
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
> 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
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
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
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
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):
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,
> 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
12 matches
Mail list logo