Re: [Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-01 Thread Benjamin Root
Will do, thanks. Ben Root On Tue, Jun 1, 2010 at 5:26 PM, Jae-Joon Lee wrote: > this is supposed to be explained in > > http://matplotlib.sourceforge.net/trunk-docs/users/gridspec.html > > But the trunk documentation is failed to build at this moment. > > In short, in the svn version of matplo

Re: [Matplotlib-users] [mplot3d] change axis background color

2010-06-01 Thread Benjamin Root
Huh, how about that? I never noticed that before. I wonder if that is a bug or if it is intentional? Ben Root On Tue, Jun 1, 2010 at 5:28 PM, Denis Laxalde wrote: > Hi Ben, > > Thanks for your answer. > Actually, options for savefig seem to only operate on 2D axes whereas > I'm trying to chan

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Benjamin Root
Malte, You may want to look into Numpy's genfromtxt() or loadtxt() functions. They will make your life so much easier for loading data from a text file. Ben Root On Tue, Jun 1, 2010 at 6:47 PM, Malte Dik wrote: > Howard Sun > > Sorry for the newbie question, how do you plot one x with multip

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Eric Firing
On 06/01/2010 02:47 PM, Benjamin Root wrote: > Howard, > > Are you trying to plot 4 lines with the same y-axis or with two or more > y-axes? I only ask because the values of your 5th column are many > orders of magnitude smaller than the values of the other ys. > > If you want multiple y-axes on t

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Benjamin Root
Howard, Are you trying to plot 4 lines with the same y-axis or with two or more y-axes? I only ask because the values of your 5th column are many orders of magnitude smaller than the values of the other ys. If you want multiple y-axes on the same plot, then you might want to look at Parasite Axe

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Malte Dik
Howard Sun > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns: Many thanks! > Howard > > 2 1.e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 > 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 > 4 2.7590e-01 4.

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Angus McMorland
On 1 June 2010 19:05, Howard Sun wrote: > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns: > Many thanks! > You can make an x vector and a y array, so that the first dimension of y is the same length as x: import numpy

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Alan G Isaac
On 6/1/2010 7:05 PM, Howard Sun wrote: > Sorry for the newbie question, how do you plot one x with multiple ys. In > below data, x column is followed by 5 y columns > Matplotlib has excellent documentation: http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.plot hth, Ala

Re: [Matplotlib-users] multiple lines

2010-06-01 Thread Howard Sun
Sorry for the newbie question, how do you plot one x with multiple ys. In below data, x column is followed by 5 y columns: Many thanks! Howard 2 1.e+00 6.6232e-02 9.9392e-03 2.2992e-02 3.8111e-07 3 6.3664e-01 1.0269e-01 7.9107e-03 1.8254e-02 1.1391e-07 4 2.7590e-01 4.9783e-02 6.2644e-03 1.0

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-01 Thread Jae-Joon Lee
On Tue, Jun 1, 2010 at 2:22 PM, rugspin wrote: > That's doing it, thought there might be an internal way within matplotlib, > but I could figure one. If you need more hard-core way of doing this, a = np.arange(16384).reshape(128, 128) from matplotlib.colors import Normalize import matplotlib.cm

Re: [Matplotlib-users] [mplot3d] change axis background color

2010-06-01 Thread Denis Laxalde
Hi Ben, Thanks for your answer. Actually, options for savefig seem to only operate on 2D axes whereas I'm trying to change the color of 3D axes (x,y,z) which, by default, have a grid with a gray background. I manage to remove the grid lines but not the background color. (My initial question was no

Re: [Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-01 Thread Jae-Joon Lee
this is supposed to be explained in http://matplotlib.sourceforge.net/trunk-docs/users/gridspec.html But the trunk documentation is failed to build at this moment. In short, in the svn version of matplotlib, axes_grid is divided into two separate modules, axes_grid1 and axisartist (axes_grid is

Re: [Matplotlib-users] [mplot3d] change axis background color

2010-06-01 Thread Benjamin Root
Denis, There are probably other ways, but the one that I know off the top of my head is done at the savefig() function. If you want to remove the background entirely, you can specify the keyword argument transparent=True. You can change the color using the facecolor keyword argument. You can spe

[Matplotlib-users] [mplot3d] change axis background color

2010-06-01 Thread Denis Laxalde
Hi, Is there a way to change (and maybe remove) the background color (gray by default) of axis in mplot3d graphics ? Thanks, Denis -- ___ Matplotlib-users mailing list Mat

[Matplotlib-users] Difference between axes_grid and axes_grid1

2010-06-01 Thread Benjamin Root
Hello, Does anybody know what is the difference between mpl_toolkit.axes_grid and mpl_toolkit.axes_grid1? Thanks, Ben Root -- ___ Matplotlib-users mailing list Matplotlib-users

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-01 Thread Friedrich Romstedt
> That's doing it, thought there might be an internal way within matplotlib, > but I could figure one. I think you can use the agg backend and the corresponding Canvas'es method canvas.tostring_rgb() . Then you can load this in PIL by Image.fromstring. Well, I simply send you my PIL backend.

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-06-01 Thread Friedrich Romstedt
this list configuration got me again ... 2010/6/1 Oz Nahum : > the numbers on my figure's color bar range from 0 to 1.7, > but mpl writes the following numbers: > > 0., 0.000250,0.50,0.000750, > > etc. > > This is totally not somthing I can use, it looks horrible. What do you mean by > th

[Matplotlib-users] How to draw borders outside plot area

2010-06-01 Thread Avery Fay
Hello, I'm having trouble getting a multi-yaxis plot looks right. See: http://tesla.slu.edu/images/test.ps The red bars are associated with the left y-axis. The green and blue bars are associated with the right y-axis. If you zoom in close enough, you'll notice that the borders of the plot (the

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-01 Thread rugspin
Thanks Jae-Joo That's doing it, thought there might be an internal way within matplotlib, but I could figure one. I'm quite confused with the canvas, dpi, ... Regards Hans Jae-Joon Lee wrote: > > You may use StringIO. > > from scipy import * > from pylab import * > from PIL import Image >

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-06-01 Thread Jae-Joon Lee
As Eric told, you need to build it from the "svn". Unfortunately, no released version (I believe) includes this feature. http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn Anyhow, the patch for "box-forced" involves only a few lines of change. You may consider to apply it

Re: [Matplotlib-users] Is there a way to link axes of imshow plots?

2010-06-01 Thread Adam Fraser
Hi all, I updated to version 99.1.1 and I'm still getting the error "ValueError: argument must be "box", or "datalim" at set_adjustable..." from axes.py when I try to do ax.set_adjustable("box-forced") as you suggested. -Adam On Thu, May 27, 2010 at 3:08 PM, Adam Fraser wrote: > Thanks very

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-01 Thread Jae-Joon Lee
You may use StringIO. from scipy import * from pylab import * from PIL import Image import cStringIO a = arange(16384).reshape(128,128) f = cStringIO.StringIO() imsave(f, a, cmap=cm.summer,vmin=0,vmax=16383, format="png") # you'd better set the format explicitly. f.reset() b = Image.open(f) f.

Re: [Matplotlib-users] Legend size and markers

2010-06-01 Thread L1011
Thank you Jae-Joon Lee, it works just fine! L1011 wrote: > > Hello everyone! > > Here's my first (bout not last) post: > > I'm trying to customize one of my plot and I wondered if there was easy > way to: > -set the font size of the legend > -set the number of markers displayed in the legend.

Re: [Matplotlib-users] Legend size and markers

2010-06-01 Thread Jae-Joon Lee
On Tue, Jun 1, 2010 at 3:58 AM, L1011 wrote: > > Hello everyone! > > Here's my first (bout not last) post: > > I'm trying to customize one of my plot and I wondered if there was easy way > to: > -set the font size of the legend > -set the number of markers displayed in the legend. Indeed, I got by

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread Samuel Teixeira Santos
I will prefer update it very soon thanks for the response 2010/6/1 John Hunter > On Tue, Jun 1, 2010 at 9:09 AM, Samuel Teixeira Santos > wrote: > > I just want confirm because I new here > > > > on my server I have this scpy 0.7.2, numpy 1.4.1, matplotlib 0.99.1.1. > > You can, but I recomme

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread John Hunter
On Tue, Jun 1, 2010 at 9:09 AM, Samuel Teixeira Santos wrote: > I just want confirm because I new here > > on my server I have this scpy 0.7.2, numpy 1.4.1, matplotlib 0.99.1.1. You can, but I recommend upgrading mpl to 0.99.3 or setting 'path.simplify : False' in your matplotlibrc because there

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread Samuel Teixeira Santos
I just want confirm because I new here on my server I have this scpy 0.7.2, numpy 1.4.1, matplotlib 0.99.1.1. may I keep that? thanks 2010/6/1 John Hunter > On Tue, Jun 1, 2010 at 8:34 AM, Alan G Isaac wrote: > > On 6/1/2010 9:06 AM, John Hunter wrote: > > > For the binaries, what is the rec

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread John Hunter
On Tue, Jun 1, 2010 at 8:34 AM, Alan G Isaac wrote: > On 6/1/2010 9:06 AM, John Hunter wrote: > For the binaries, what is the recommended NumPy version? > I assume the current release (1.4.1)? Are you on windows? The windows binaries are build against numpy 1.3.0 so any and numpy since then sho

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread Tommy Grav
On Jun 1, 2010, at 9:34 AM, Alan G Isaac wrote: > PS Btw, it gets said often but once more won't hurt: > Matplotlib is wonderful! I just wanted to second this. Having suffered many years with super mongo, matplotlib (and python in general) has made my work so much easier. Tommy Grav +--

Re: [Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread Alan G Isaac
On 6/1/2010 9:06 AM, John Hunter wrote: > We have uploaded a bugfix release of the matplotlib-0.99 branch. > For the binaries, what is the recommended NumPy version? I assume the current release (1.4.1)? (Also wondering, not that it's any of my business, whether the current refactoring proje

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-01 Thread rugspin
Angus McMorland-2 wrote: > > On 31 May 2010 23:17, Angus McMorland wrote: > >> On 31 May 2010 19:49, rugspin wrote: >> >>> >>> I have a small problem how to convert an image from matplotlib to PIL >>> >>> right now doing somthing like this: >>> -- >>>

[Matplotlib-users] Legend size and markers

2010-06-01 Thread L1011
Hello everyone! Here's my first (bout not last) post: I'm trying to customize one of my plot and I wondered if there was easy way to: -set the font size of the legend -set the number of markers displayed in the legend. Indeed, I got by default to markers showing in my legend and I want to keep o

[Matplotlib-users] ANN: matplotlib-0.99.3

2010-06-01 Thread John Hunter
We have uploaded a bugfix release of the matplotlib-0.99 branch. Source and binaries are available for download from https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-0.99.3 This release fixes many minor and at least one critical bug in our path simplification algorithm.

Re: [Matplotlib-users] setting scientific number notation on colorbar

2010-06-01 Thread Vincent Schut
On 06/01/2010 02:56 AM, Oz Nahum wrote: > hi andre, > thanks for your reply, > > do you know where I can find more documentation about this ? check http://docs.python.org/library/stdtypes.html#string-formatting Regards, VS. ---

Re: [Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-06-01 Thread Mark Boorer
Hi Sandro, Thanks for the tip. In checking the HTTP logs, I found that the apache user couldn't create a ".matplotlib" directory (as it had no home dir) so i used the environment variable MPLCONFIGDIR to point to somewhere meaningful, then I found that to "import pylab" I needed a DISPLAY variabl