This would only meaningful if you set contour levels manually.
plt.figure()
levels = [-1, 0, 1]
fmt = {-1.:"-1",
0.:"0",
1.:"+1"}
CS = plt.contour(X, Y, Z, levels)
plt.clabel(CS, inline=1, fontsize=10, fmt=fmt)
Regards,
-JJ
On Wed, Dec 2, 2009 at 6:32 AM, Momme Butenschön wrote:
On Tue, Dec 1, 2009 at 8:48 AM, Jorge Scandaliaris
wrote:
> How difficult would be to extend the Rectangle class so besides its permimeter
> it draws lines showing halfs or thirds of the width and height?
It depends on your mileage.
However, a patch in matplotlib usually means a closed path. If
This happens because, when the AxesGrid is created, gca() is set to the last
axes, which is the last colobar axes.
If you use axes_grid toolkit, you'd better not use pyplot command that works
on axes. Instead, use axes method directly.
For example, instead of "pyplot.pcolor(..)" , use "ax.pcolor
On Sun, Nov 22, 2009 at 11:16 AM, per freem wrote:
> is there an existing parameter that just controls the distance between
> the xticks and the label?
As you first tried (with your example with axes_grid), labelpad
parameter does what you want.
plt.xlabel("xlabel", labelpad=0)
or
ax.xaxis.lab
Christopher Barker wrote:
> The diskimage is usually built for the python binary supplied by
> python.org -- that is what the message means by the "system version". I
> tried to submit a patch to change that message a year or two ago, but I
> guess it never got applied -- maybe I'll try again.
Lisa M Winter wrote:
> 1) The diskimage installation: When I open the installer, I am told
> that I can not install matplotlib on my disk because I do not have a
> system version of python 2.6. I do not understand this error since I
> am running the default version (which is 2.6.1).
The dis
You're right--that's pretty simple. I ran that exact code and it worked
fine.
Don't know what to say except that this is above my competence level to dig
into the guts of tk. Looks like a problem for John Hunter.
Sorry I couldn't help more,
Bill
On 12/2/09 2:49 PM, "Lisa M Winter" wrote:
> fr
Sure. This is all that it is:
from pylab import *
plot([1,2,3])
show()
On Dec 2, 2009, at 3:42 PM, William Carithers wrote:
> Hi Lisa,
>
> Hmm. I also use TKAgg with no problems. Looking at your code, it
> looks like
> you are trying the first example in the tutorial. Just to be sure,
> co
Hi Lisa,
Hmm. I also use TKAgg with no problems. Looking at your code, it looks like
you are trying the first example in the tutorial. Just to be sure, could you
post/send a full listing of your simple_plot.py?
Thanks,
Bill
On 12/2/09 2:01 PM, "Lisa M Winter" wrote:
> Thanks for the pointers,
On Dec 2, 2009, at 3:53 PM, Tony S Yu wrote:
> Hi,
>
> I'm having hard time understanding some of the differences between functions
> used to plot color patches (not sure what to call them).
>
> I'm trying to fill a curve with a nonuniform color patch (like fill or
> fill_between but the colo
Thanks for the pointers, Bill.
I tried installing from source as you suggested, but I am getting the
same errors when I try to plot. What backend are you using?
Here is what I get when I try using TkAgg:
casa98-125-dhcp:.matplotlib lisa$ python simple_plot.py --verbose-
helpful
$HOME=/Users/
On Wed, Dec 2, 2009 at 3:20 PM, Michael Cohen wrote:
> Hi,
> To add more information. I am trying this on two separate installs of
> matplotlib 0.99, both using TkAgg as the backend. One produces an
> unreadable file, the other does produce a readable EPS. However, even
> in this case, zooming
Hi,
To add more information. I am trying this on two separate installs of
matplotlib 0.99, both using TkAgg as the backend. One produces an
unreadable file, the other does produce a readable EPS. However, even
in this case, zooming in on the image shows that what is being saved is
bitmapped,
Hi Lisa,
I had lots of trouble installing on 10.6 as well. What finally worked for me
is to use the (recommended) file make.osx that comes with the matplotlib
download. You have to edit that file to point to the versions of Python (you
want 2.6) and OSX (you want 10.6). I'm attaching a version tha
Hi,
I'm having hard time understanding some of the differences between functions
used to plot color patches (not sure what to call them).
I'm trying to fill a curve with a nonuniform color patch (like fill or
fill_between but the color in the patch varies). I've attached code that almost
does
Hi all,
I made a typical plot, and tried to save it to EPS. The resulting file
is un-openable in gimp, the gnome thumbnail viewer, evince, and anything
else I have tried.
Is there any problem saving a plot to EPS at the moment?
Cheers
Mike
--
Hello.
I am finding it very difficult to install matplotlib with snow
leopard. I have the Apple XCODE installed along with numpy (which I
have tested and works) and am running the python 2.6 version that
comes with the Mac.
I have run into the following problems:
1) The diskimage installat
Hello,
I'm trying to use AxesGrid but I'm running into a problem:
I can plot a single pcolor plot:
[image: 58dFK.png]
But when I try to use AxesGrid, my pcolor plot is ending up where I expect
my colorbar to be.
[image: mEbTA.png]
I want to have up to 6 of these plots stacked vertically, sharing
xiaoni wrote:
> Jeff,
> Just to be safe because I am going to operate on the root:
> 1) ls -l /usr/local/lib:
> libgeos-3.2.0.so
> libgeos.so -> libgeos-3.2.0.so
Xianoi: I'm assuming you installed libgeos 3.2.0rc1 yourself in
/usr/local, and nothing is linked against it besides your non-wo
Dear matplotlibbers,
I am currently trying to convince matplotlib using LaTeX for text
processing. Unfortunately, it seems to hang up at some point in the
minimal example script from the user's guide (also posted below)
without throwing any warning or error. As I am new to python and
matplotlib, I
xiaoni wrote:
> Jeff,
> Many thanks !
>
> ldd /usr/local/lib/python2.6/dist-packages/_geoslib.so
> The results are:
>linux-gate.so.1 => (0x00cf2000)
> libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00944000)
> libgeos-3.1.0.so => /usr/lib/libgeos-3.1.0.so (0x00
xiaoni wrote:
> Jeff,
>Many thanks for your help ! The problem was : there was a
> segmentation error when I call Basemap. I applied the following steps,
> and then tried to launch ipython, it still has the same problem.
>
> --add export GEOS_DIR=/usr/local/lib
> --download basemap 099.4 to
Hi Matthias,
I have a similar patch lying around somewhere, and I will try to apply
it soon. I've been terribly busy lately, but I expect some nice
mplot3d enhancements in the very near future.
Regards,
Reinier
On Wed, Dec 2, 2009 at 4:22 PM, Matthias Michler
wrote:
> Hi Andrew,
>
> do you have
Matthias Michler writes:
> ./root/article.cls.tex: Permission denied
> ./root/article.cls: Permission denied
> ./lost+found/article.cls.tex: Permission denied
> ./lost+found/article.cls: Permission denied
> ./root/article.cls.tex: Permission denied
> ./root/article.cls: Permission denied
> ./lost
Hi Brian,
does
ax.fill_between(np.linspace(0.0, 2*np.pi,100), np.ones(100))
do what you are after?
Kind regards
Matthias
On Wednesday 02 December 2009 16:42:16 Brian Larsen wrote:
> Hello,
>
> this seems like it should be easy but I am beating my head on the wall
> here.
>
> I am trying to fill
xiaoni wrote:
> Hello, all,
> I have some problem with basemap and geos, and can not use Basemap。
> In the below I list the information about basemap and geos in my
> computer. Hope someone would help me to figure out why it does not
> work. Many thanks in adance !
>
> 1) I type:
> ---from m
Hello,
this seems like it should be easy but I am beating my head on the wall here.
I am trying to fill in everything rad<=1 in a polar plot (this is a spacecraft
orbit trace and the circle is the Earth) and can't seem to get it.
from pylab import *
from matplotlib.patches import Circle
fig=fi
Hi Andrew,
do you have any idea if the patch (or a part of it) may get a part of
matplotlib-svn some day?
Kind regards,
Matthias
On Friday 09 October 2009 23:25:28 Andrew Straw wrote:
> Matthias Michler wrote:
> > Hello list,
> >
> > I'm not an expert in axes3d, but in case the feature which Ni
Hi Darren,
thanks for your reply. The point is that saving pdf, jpg, etc. works fine but
in case I use ps or eps I get the long error output. Therefore I expected a
problem in the ps-backend.
Kind regards,
Matthias
On Wednesday 02 December 2009 15:57:31 Darren Dale wrote:
> On Mon, Nov 16, 20
On Wed, Dec 2, 2009 at 9:57 AM, Michael Droettboom wrote:
> I can confirm that this "works for me", so it is probably some sort of
> configuration difference.
>
> Can you provide the error output? It would be useful to know what
> specifically it is being denied permission for.
He had attached i
On Mon, Nov 16, 2009 at 9:45 AM, Matthias Michler
wrote:
> Hello list,
>
> I encounter some strange error output including several "Permission denied"
> when using usetex=True and saveing eps-pictures. My example is quite easy and
> the output is attached. (Please notice the resulting figure looks
I can confirm that this "works for me", so it is probably some sort of
configuration difference.
Can you provide the error output? It would be useful to know what
specifically it is being denied permission for.
Mike
Matthias Michler wrote:
> Hello list,
>
> may be the last message got lost am
Hello list,
may be the last message got lost among the lots of mpl-mails. So I'd like to
ask you once more for comments. Can anyone confirm this behaviour or should
it be due to some wrong configuration on my computer?
Kind regards,
Matthias
On Monday 16 November 2009 15:45:08 Matthias Michle
Hi John, Hello list,
I added the patch to the tracker (ID 2907509).
Kind regards
Matthias
On Wednesday 02 December 2009 13:40:29 John Hunter wrote:
> On Wed, Dec 2, 2009 at 4:02 AM, Matthias Michler
>
> wrote:
> > Hi Jason, Hi list,
> >
> > First of all let me say I like the EngFormatter of Ja
Hello, all,
I have some problem with basemap and geos, and can not use Basemap。
In the below I list the information about basemap and geos in my computer. Hope
someone would help me to figure out why it does not work. Many thanks in adance
!
1) I type:
---from mpl_toolkits.basemap import Ba
On Wed, Dec 2, 2009 at 4:02 AM, Matthias Michler
wrote:
> Hi Jason, Hi list,
>
> First of all let me say I like the EngFormatter of Jason.
> Are there plans to incorparate it into matplotlib?
> I cannot find any indication for this in current svn, but I would like to see
> the EngFormatter in matp
in the help for the countour plot labeling it says:
*fmt*:
a format string for the label. Default is '%1.3f'
Alternatively, this can be a dictionary matching contour
levels with arbitrary strings to use for each contour level
(i.e., fmt[level]=string)
can someb
Hi Jason, Hi list,
First of all let me say I like the EngFormatter of Jason.
Are there plans to incorparate it into matplotlib?
I cannot find any indication for this in current svn, but I would like to see
the EngFormatter in matplotlib. Therefore I tried to include Jasons proposal
into the tic
Hi Wayne,
you are right all these function use the sample-data and not the pdf /
frequency of occurence-histogram, because typically the data is available and
not the pdf. Maybe the scipy mailing list could give you a solution to your
problem.
In case that your freqency of occurence are intege
39 matches
Mail list logo