Re: [Matplotlib-users] how do I specify the line join and cap style?

2010-12-13 Thread gary ruben
Thanks for the workaround JJ. I've filed a feature request, Gary On Mon, Dec 13, 2010 at 9:54 PM, Jae-Joon Lee wrote: > It seems that there is no option to change join and cap style for > patches (only lines have them). > While there could be other ways, one workaround is to use patheffect. > >

[Matplotlib-users] x-axis display

2010-12-13 Thread Xunchen Liu
Hello, I'm plotting some experimental data and found my x axis variable are displayed like 1, 2, 3, +1000. It seems depend on how you set a stopper or something. I'm wondering how to make it display just 1001, 1002, 1003? thanks! ---

Re: [Matplotlib-users] Problems installing MPL on OS X 10.6 Snow Leopard with python2.7

2010-12-13 Thread Uri Laserson
> > > Well, on my Linux system, when I get that error, it happens when I do > an update of numpy, but fail to rebuild mpl. Here is the order how I > build things: numpy, scipy, matplotlib. I would imagine ipython goes > last. > > That has been my order as well. How can I track down why the impor

Re: [Matplotlib-users] Problems installing MPL on OS X 10.6 Snow Leopard with python2.7

2010-12-13 Thread Benjamin Root
On Monday, December 13, 2010, Uri Laserson wrote: > > Can you try importing pyplot from a regular python prompt?  If that > works, then the issue is with ipython messing up the import process of > mpl. > >  I get exactly the same problem... > > > laser...@hobbes:~$ pythonPython 2.7.1 (r271:86832,

Re: [Matplotlib-users] Problems installing MPL on OS X 10.6 Snow Leopard with python2.7

2010-12-13 Thread Uri Laserson
> > > Can you try importing pyplot from a regular python prompt? If that > works, then the issue is with ipython messing up the import process of > mpl. > > I get exactly the same problem... laser...@hobbes:~$ python Python 2.7.1 (r271:86832, Dec 13 2010, 14:21:05) [GCC 4.2.1 (Apple Inc. build 5

Re: [Matplotlib-users] Problems installing MPL on OS X 10.6 Snow Leopard with python2.7

2010-12-13 Thread Benjamin Root
On Monday, December 13, 2010, Uri Laserson wrote: > Hi all, > I am trying to install matplotlib on a MacMini Intel Core 2 Duo with a clean > install of Mac OS X 10.6.  I am using python 2.7 that I built from source > using the homebrew package installer.  I also installed numpy 1.5.1 from > sou

Re: [Matplotlib-users] Taylor diagram

2010-12-13 Thread mdekauwe
Here is a solution which doesn't really use matplotlib, however it is a work around by interfacing with the R library. Personally I didn't like some of the colour choices which are hardwired in the R code so I adjusted the R code and re-compiled, however this assumes the code is as it comes from

[Matplotlib-users] Problems installing MPL on OS X 10.6 Snow Leopard with python2.7

2010-12-13 Thread Uri Laserson
Hi all, I am trying to install matplotlib on a MacMini Intel Core 2 Duo with a clean install of Mac OS X 10.6. I am using python 2.7 that I built from source using the homebrew package installer. I also installed numpy 1.5.1 from source, using the following environment variables: export MACOSX_D

Re: [Matplotlib-users] Possible to get variable spacing between certain subplots?

2010-12-13 Thread Friedrich Romstedt
2010/12/13 Will Grover : > A belated thank you to Ben and Friedrich for your suggestions!  I'm getting > good results shifting subplots around using Axes.set_position() as Friedrich > suggested, but I've noticed that whenever I shift a subplot into the region > where another subplot would be, the s

[Matplotlib-users] Matplotlib 1.0 upgrade breaks latex functionality?

2010-12-13 Thread Steve Nicholes
Hello, I recently upgraded matplotlib v0.98.5 to 1.0.  Now when I try to plot data using latex for the figure labels my scripts fail.  I have not changed my code so I'm not sure where the error is coming from.  I have tried reinstalling and updating MikTex and Ghostscript but that has not helpe

Re: [Matplotlib-users] AttributeError subplot2grid

2010-12-13 Thread Benjamin Root
On Mon, Dec 13, 2010 at 2:13 PM, Ryan May wrote: > On Mon, Dec 13, 2010 at 2:07 PM, vt603800 wrote: > > I get this error: > > AttributeError: 'module' object has no attribute 'subplot2grid' > > > > Are some modules not installed? or is there another problem, I'm a newby > in > > matplotlib, it m

Re: [Matplotlib-users] AttributeError subplot2grid

2010-12-13 Thread Ryan May
On Mon, Dec 13, 2010 at 2:07 PM, vt603800 wrote: > I get this error: > AttributeError: 'module' object has no attribute 'subplot2grid' > > Are some modules not installed? or is there another problem, I'm a newby in > matplotlib, it might be something very obvious... > > Running Matplotlib version

[Matplotlib-users] AttributeError subplot2grid

2010-12-13 Thread vt603800
Hello, Everytime I try to run this script from the doc page of the matplotlib site : import matplotlib.pyplot as plt def make_ticklabels_invisible(fig): for i, ax in enumerate(fig.axes): ax.text(0.5, 0.5, "ax%d" % (i+1), va="center", ha="center") for tl in ax.get_xticklabels() + ax.get_

Re: [Matplotlib-users] using plot(single_object)

2010-12-13 Thread Benjamin Root
On Sun, Dec 12, 2010 at 11:51 AM, Jose Guzman wrote: > I was wondering if there is an easy way to combine two vectors (x and y) > into a single object to be ploted with the plot() method in matplotlib. > > Untill now, I did something like: > > import matplotlib.pyplot as plt > x = np.nplinspace(0

Re: [Matplotlib-users] Updating tick labels on animated plot

2010-12-13 Thread Russell E. Owen
In article , Søren Nielsen wrote: > Hi, > > I have an animated plot and I'm having trouble updating the tick labels > after I blit new data to the canvas. I've looked through the documentation > and it's not clear to me how I can update the x and y axis ticks during an > animation. Anyone he

Re: [Matplotlib-users] Memory leak; user error or bug?

2010-12-13 Thread Russell Owen
I just tried calling subplot.clear() just before calling canvas.draw(). Interestingly enough it increases the memory leak rate by roughly 50%! By the way, the minimal script is available here if you want to try it:

[Matplotlib-users] Bug in NonUniformImage?

2010-12-13 Thread Nicolas Bigaouette
Hi all, I'm using matplotlib.image.NonUniformImage() to plot a 2D rectilinear grid (non uniform spacing between points): > im = matplotlib.image.NonUniformImage(grid, extent=extent, origin='lower', > cmap = matplotlib.cm.jet, interpolation = "nearest") im.set_data(x, y, z) ax.images.append(im)

Re: [Matplotlib-users] how do I specify the line join and cap style?

2010-12-13 Thread Jae-Joon Lee
It seems that there is no option to change join and cap style for patches (only lines have them). While there could be other ways, one workaround is to use patheffect. Below is a modified version of your example. Meanwhile, I think the situation needs to be fixed, i.e., Patches should implement s