Re: [Matplotlib-users] add_axes

2011-08-12 Thread Christopher Brown
Hi Ben, Eric and Paul, Paul's partial solution is actually exactly what I need. Thanks! -Chris On Friday, August 12, 2011 07:26:22 PM Benjamin Root wrote: > On Friday, August 12, 2011, Christopher Brown wrote: > > Thanks Ben, > > > > I should have been more clear. In fact I do want to create a

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Eric Firing
On 08/12/2011 03:58 PM, Christopher Brown wrote: > Thanks Ben, > > I should have been more clear. In fact I do want to create an entirely new > figure containing the already created axes. This might not be the best way to > do what I want to do, but the docs for add_axes states that passing an axes

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Eric Firing
On 08/12/2011 03:00 PM, Paul Ivanov wrote: > Christopher Brown, on 2011-08-12 16:56, wrote: >> I feel like I'm doing this right, but it doesn't work. Any clues? >> >> from matplotlib import pyplot as pp >> >> pp.plot((1,2,3)) >> ax = pp.gca() >> f = pp.figure(num=2) >> print 'first: %i' % ax.figur

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Benjamin Root
On Friday, August 12, 2011, Christopher Brown wrote: > Thanks Ben, > > I should have been more clear. In fact I do want to create an entirely new > figure containing the already created axes. This might not be the best way to > do what I want to do, but the docs for add_axes states that passing an

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Christopher Brown
Thanks Ben, I should have been more clear. In fact I do want to create an entirely new figure containing the already created axes. This might not be the best way to do what I want to do, but the docs for add_axes states that passing an axes instance will add that instance to the figure. I must

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Eric Firing
On 08/12/2011 01:56 PM, Christopher Brown wrote: > I feel like I'm doing this right, but it doesn't work. Any clues? > > from matplotlib import pyplot as pp > > pp.plot((1,2,3)) > ax = pp.gca() > f = pp.figure(num=2) > print 'first: %i' % ax.figure.number > print 'second: %i' % f.number > f.add_axe

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Paul Ivanov
Christopher Brown, on 2011-08-12 16:56, wrote: > I feel like I'm doing this right, but it doesn't work. Any clues? > > from matplotlib import pyplot as pp > > pp.plot((1,2,3)) > ax = pp.gca() > f = pp.figure(num=2) > print 'first: %i' % ax.figure.number > print 'second: %i' % f.number > f.add_ax

Re: [Matplotlib-users] add_axes

2011-08-12 Thread Benjamin Root
Yes, you are making it harder on yourself... On Friday, August 12, 2011, Christopher Brown wrote: > I feel like I'm doing this right, but it doesn't work. Any clues? > > from matplotlib import pyplot as pp > > pp.plot((1,2,3)) > ax = pp.gca() At this point, a figure is implicitly created because

[Matplotlib-users] add_axes

2011-08-12 Thread Christopher Brown
I feel like I'm doing this right, but it doesn't work. Any clues? from matplotlib import pyplot as pp pp.plot((1,2,3)) ax = pp.gca() f = pp.figure(num=2) print 'first: %i' % ax.figure.number print 'second: %i' % f.number f.add_axes(ax) yields: Traceback (most recent call last): File "", line

Re: [Matplotlib-users] Ordering contourf within a range

2011-08-12 Thread Eric Firing
On 08/12/2011 08:07 AM, Benjamin Root wrote: > > > On Fri, Aug 12, 2011 at 12:47 PM, Yoshi Rokuko > wrote: > > you mean something like that? > > m.contourf(x, y, var, np.linspace(-100,100,33)) > > best regards > > > In addition to that (which would provide cont

Re: [Matplotlib-users] Ordering contourf within a range

2011-08-12 Thread Bruce Ford
That's exactly it! Thanks guys! Bruce --- Bruce W. Ford Clear Science, Inc. br...@clearscienceinc.com http://www.ClearScienceInc.com http://www.facebook.com/clearscience http://www.twitter.com/ROVs_rule Phone: (904) 796-8101 Fax: (904) 379-9704 8241 Parkridge

[Matplotlib-users] Building with python 3

2011-08-12 Thread R. Padraic Springuel
I installed freetype2 to the default location: /usr/local Typing "freetype-config --ftversion" on the command line in any directory yields the freetype version number installed (2.4.6), which implies to me that its in the system search path, and thus should be available to distutils, right? --

Re: [Matplotlib-users] Building with python 3

2011-08-12 Thread Darren Dale
On Fri, Aug 12, 2011 at 2:12 PM, R. Padraic Springuel wrote: > I just downloaded and installed freetype2 in order to fix that potential > problem and I still get the same error (can't find the headers) in the > build output. Where did you install the headers? Is this location included in distutil

Re: [Matplotlib-users] Building with python 3

2011-08-12 Thread R. Padraic Springuel
I just downloaded and installed freetype2 in order to fix that potential problem and I still get the same error (can't find the headers) in the build output. -- R. Padraic Springuel, PhD -- FREE DOWNLOAD - uberSVN with

Re: [Matplotlib-users] Ordering contourf within a range

2011-08-12 Thread Benjamin Root
On Fri, Aug 12, 2011 at 12:47 PM, Yoshi Rokuko wrote: > you mean something like that? > > m.contourf(x, y, var, np.linspace(-100,100,33)) > > best regards > > In addition to that (which would provide control over the contouring), one can create a Normalization object, and supply that to the conto

Re: [Matplotlib-users] saving PdfPages figure before closing

2011-08-12 Thread Benjamin Root
On Fri, Aug 12, 2011 at 12:33 PM, Alex Flint wrote: > I'm using the approach described the FAQ to save multiple figures to a > multi-page PDF: > > http://matplotlib.sourceforge.net/faq/howto_faq.html#save-multiple-plots-to-one-pdf-file > > The figures are produced at consecutive iterations of my

Re: [Matplotlib-users] first step display a 3d volume

2011-08-12 Thread Benjamin Root
On Fri, Aug 12, 2011 at 12:21 PM, WALTER Alain wrote: > Hello, > I've developped an application that displays volume by using Axes3d module > and plot() method. It runs well. > Volumes are expressed in axes x,y,z that represents respectively the > latitude,longitude and altitude. > Taking a simpl

Re: [Matplotlib-users] Ordering contourf within a range

2011-08-12 Thread Yoshi Rokuko
you mean something like that? m.contourf(x, y, var, np.linspace(-100,100,33)) best regards -- FREE DOWNLOAD - uberSVN with Social Coding for Subversion. Subversion made easy with a complete admin console. Easy to use, e

[Matplotlib-users] saving PdfPages figure before closing

2011-08-12 Thread Alex Flint
I'm using the approach described the FAQ to save multiple figures to a multi-page PDF: http://matplotlib.sourceforge.net/faq/howto_faq.html#save-multiple-plots-to-one-pdf-file The figures are produced at consecutive iterations of my algorithm, and since each iteration takes a long time I'd like to

[Matplotlib-users] RE : where to download module mpl_toolkits.mplot3d.art3d

2011-08-12 Thread WALTER Alain
My purpose is explain by a new post more explicitely. Alan De : ben.v.r...@gmail.com [ben.v.r...@gmail.com] de la part de Benjamin Root [ben.r...@ou.edu] Date d'envoi : vendredi 12 août 2011 16:14 À : WALTER Alain Cc : matplotlib-users@lists.sourceforge.net

[Matplotlib-users] first step display a 3d volume

2011-08-12 Thread WALTER Alain
Hello, I've developped an application that displays volume by using Axes3d module and plot() method. It runs well. Volumes are expressed in axes x,y,z that represents respectively the latitude,longitude and altitude. Taking a simple volume : a parallelepiped is defined by 2 series of points : A1

[Matplotlib-users] How to set resolution / number of ticks on bar graph

2011-08-12 Thread Lars Fiedler
It seems I can only have a max of 7 labels displayed on my graph how do I increase that? self.axes.clear() vals = self.plotInfo.getYValues() self.axes.set_xticks = range(len(vals)) self.axes.set_xticklabels(self.plotInfo.getXValues()) self.axes.bar(

[Matplotlib-users] Ordering contourf within a range

2011-08-12 Thread Bruce Ford
In plotting the figure in the below code, I need to set the colorbar and contourf scale to a specific value range (e.g., -100 to 100). When plotting similar items, I need to ensure the scale is the same across multiple images for comparison and overide the autoscaling. Any ideas? Seems like it s

Re: [Matplotlib-users] Forcing the size of a figure

2011-08-12 Thread Benjamin Root
On Fri, Aug 12, 2011 at 10:04 AM, David Just wrote: > Now that I’m pre-building all my enlarged interpolated images to scroll > through, I’m having trouble forcing the figure/FigureCanvas to be the size > I want. > > I’m trying: > fig.set_size_inches(768 / 72.0, 768 / 72.0), but it ends up the

[Matplotlib-users] Forcing the size of a figure

2011-08-12 Thread David Just
Now that I¹m pre-building all my enlarged interpolated images to scroll through, I¹m having trouble forcing the figure/FigureCanvas to be the size I want. I¹m trying: fig.set_size_inches(768 / 72.0, 768 / 72.0), but it ends up the same size as the default plot. Thanks, Dave ---

[Matplotlib-users] Plotting arrows in a wxPython frame

2011-08-12 Thread Stefanie Lück
Hello! I'm using matplotlib in my wx.Frame to draw some arrows and text at a certain position. The number and position of the arrows is based on previously created data. I do some calculations but basically it's like this: arrow = primer for each primer: draw one arrow at position y - 0.05 to the

Re: [Matplotlib-users] where to download module mpl_toolkits.mplot3d.art3d

2011-08-12 Thread Benjamin Root
On Friday, August 12, 2011, WALTER Alain wrote: > Hello > I 've made some test so as to display a rectangle in a 3d view by using matplotlib methods. > I get examples from address http://nullege.com/codes/show/src%40m%40a%40matplotlib-HEAD%40matplotlib%40lib%40mpl_toolkits%40mplot3d%40axes3d.py/88

Re: [Matplotlib-users] unable to draw text at angles other than 0 or 90

2011-08-12 Thread Michael Droettboom
I wonder if it's worthwhile throwing a warning when mplot3d is used in conjunction with the Gtk backend? Mike On 08/12/2011 02:47 AM, Benjamin Root wrote: On Friday, August 12, 2011, WALTER Alain > wrote: > You're right I'm not clear. You thought I' am us

[Matplotlib-users] Plotting arrows in a wxPython frame

2011-08-12 Thread Stefanie Lück
Hello! I'm using matplotlib in my wx.Frame to draw some arrows and text at a certain position. The number and position of the arrows is based on previously created data. I do some calculations but basically it's like this: arrow = primer for each primer: draw one arrow at position y - 0.05 to the

[Matplotlib-users] where to download module mpl_toolkits.mplot3d.art3d

2011-08-12 Thread WALTER Alain
Hello I 've made some test so as to display a rectangle in a 3d view by using matplotlib methods. I get examples from address http://nullege.com/codes/show/src%40m%40a%40matplotlib-HEAD%40matplotlib%40lib%40mpl_toolkits%40mplot3d%40axes3d.py/881/art3d.Line3DCollection/python import warnings from

[Matplotlib-users] foreground color versus background color

2011-08-12 Thread WALTER Alain
Hello, I have a graphic, that is built with matpotlib facilities. I display some texts with a color for the text and a color for the corresponding background. I want to optimize the lisibility of such texts, then I shall adapted the background color to the foreground color. For example, when bac