Hello,
I know how to remove a line from an axes. But a I also want to remove the
label of the line from the legend of the axes.
In the sample code you can see two labels in the legend, while there is only
one line in the axes left.
import numpy as N
from matplotlib.pyplot import *
x =
Hi Ryan,
This is currently not supported. Since also the 2D PatchCollection
does not support it I don't see how to easily add it either...
Cheers,
Reinier
On Mon, Jun 29, 2009 at 11:40 PM, Ryan Wagnerrwag...@vni.com wrote:
Can anyone help me out? I’m trying to do the following equivalent in a
I've been a long time, happy user of MPL, but I'm having some problems
building the latest version (0.98.5.3) on the Mac (python 2.6.2).
The bottom line is that when I build, I get the error message:
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, file is
not o
f required
What does
pkg-config libpng --modversion --libs --cflags
give?
The pkg-config error may actually be a red herring, since matplotlib
will look in /usr/local even if pkg-config fails, and it obviously found
the headers or it wouldn't have gotten to the linking stage. As the
author of the
On Tue, Jun 30, 2009 at 9:14 AM, Michael Droettboom md...@stsci.edu wrote:
What does
pkg-config libpng --modversion --libs --cflags
give?
I guess I don't have pkg-config installed. Is this a requirement? I haven't
had it installed before?
The pkg-config error may actually be a red
On Tue, Jun 30, 2009 at 9:14 AM, Michael Droettboom md...@stsci.edu wrote:
What does
pkg-config libpng --modversion --libs --cflags
give?
The pkg-config error may actually be a red herring, since matplotlib will
look in /usr/local even if pkg-config fails, and it obviously found the
Hello,
I've been struggling with this for a while now and have effectively two
issues. One, how can I define the range over which hexbin ... bins? And two,
how do I change the background color of a plot? The latter I thought would
be trivial, but nothing I've tried has worked. Let's take the
Thanks Reinier,
For posterity ended up just doing the following:
matplotlib.interactive(True)
...
s = ax.scatter(data1, data2, data3)
draw()
s.remove()
s = ax.scatter(data4, data5, data6)
draw()
Hi Ryan,
This is currently not supported. Since also the 2D PatchCollection does not
support it
Try calling legend() again once you've changed the lines; in ipython -
pylab, this
x = linspace(-10, 10, 101)
sub = subplot(111)
plot(x, x**2, label=x^2)
plot(x, x**3, label=x^3)
legend() #Two lines, two legend entries
sub.lines[0].remove() #One line, two legend entries
Hi All,
my program lets slow down my cpu. This only appears if i plot to much
points. I am not sure how many point i need to get this, normally i plot
3*14e6 + 8e3, that is round about 50million points. My system is a
dual core 2GHz cpu with 2Gbyte Ram.
Here is my method to plot,
def
Hi,
this must have been answered many times already, but I searched the
archives, online docs, but couldn't find anything.
If I do:
$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type help, copyright, credits or license for more information.
import pylab
I have a working system now. Here's what I did to fix it.
1. Installed libpng from source
2. Installed freetype2 from source
3. Installed pkg-config from source
4. Installed a new version of the Xcode developer tools for the mac.
During the build I still saw a few 'incompatible architecture'
Hi,
I am writing a script that uses pyplot.show() to show a plot, on which
the user has to ponder and decide a course of action (telling the script
what to do on a raw_input).
I would be happy if the pyplot window does not freeze python below,
i.e. if the window can somehow exist while the
On 6/30/2009 5:42 PM ms apparently wrote:
I am writing a script that uses pyplot.show() to show a plot, on which
the user has to ponder and decide a course of action (telling the script
what to do on a raw_input).
This is not how `show` is used. But
you could save the plot as a temporary file
I am trying to use imshow to plot some semi-large fits images.
Here is the code:
from math import *
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import cm as cm
import pyfits
cat = /Volumes/Sweden/PS1SC/Data/PS20090603-3/MD09/skycell.092/
fname =
Because the image is so large, and matplotlib carries out various
operations on the image (scaling, resampling, etc), it uses a lot of
memory. This is one area where a specialized display program will be
more efficient. If you need to use matplotlib, decide whether you
really only want to
That is what I was assuming, but it still seems a little odd that
matplotlib generates
that large of a memory footprint. Loading the fits file into the
program using pyfits,
with the code only uses 19MB of real memory and 600MB of virtual
memory (strangly
adding the line img = hdu[1].data,
On Jun 30, 2009, at 7:54 PM, Tommy Grav wrote:
That is what I was assuming, but it still seems a little odd that
matplotlib generates
that large of a memory footprint. Loading the fits file into the
program using pyfits,
with the code only uses 19MB of real memory and 600MB of virtual
18 matches
Mail list logo