Re: [Matplotlib-users] trailing space in text string stripped, making it impossible to right-pad my text

2009-10-02 Thread Stan West
> From: Christopher Barrington-Leigh > [mailto:cpblpublic+nab...@gmail.com] > Sent: Sunday, September 27, 2009 21:58 > > Hello. My problem is as follows: > (ipython --pylab) > > from pylab import * > pp=plot([0,0],[1,1]) > text(xlim()[0],1,'Need padding ',horizontalalignment='left') > tex

[Matplotlib-users] Two 3D surface plots where colors represent same value on both surfaces

2009-10-02 Thread Sammo
How do I draw two 3D surface plots where the surface patch colors have consistent meaning? Hope this makes sense ... Currently, I'm just doing two plot_surface commands, each of which has cmap=cm.jet. The two surfaces have different shapes and sizes and have different highest/lowest points. It se

Re: [Matplotlib-users] Fwd: legend 'boxoff'?

2009-10-02 Thread David Warde-Farley
On 2-Oct-09, at 2:54 PM, Jae-Joon Lee wrote: > I just noticed that there IS a public method. > You may use > > leg.draw_frame(False) Great! On a related note, I just submitted a patch to fix the box() command in pyplot to accept the 'off' argument like axis() does. I thought I was going a l

Re: [Matplotlib-users] placing a plot on top of an imshow

2009-10-02 Thread Jae-Joon Lee
On Fri, Oct 2, 2009 at 7:30 AM, rafa5 wrote: > > I had to change the inset_locater.py file a little though. In your suggested > code below : > > axins1 = inset_axes(ax, width="100%", height="20%", >                   loc=3, borderpad=0, >                   axes_kwargs=dict(frameon=False) >        

Re: [Matplotlib-users] Fwd: legend 'boxoff'?

2009-10-02 Thread Jae-Joon Lee
I just noticed that there IS a public method. You may use leg.draw_frame(False) -JJ On Fri, Oct 2, 2009 at 2:45 PM, Jae-Joon Lee wrote: > While it is not possible to toggle the box off during the > initialization, you can turn it off after the legend is created. > > leg = legend() > leg._drawF

Re: [Matplotlib-users] Fwd: legend 'boxoff'?

2009-10-02 Thread Jae-Joon Lee
While it is not possible to toggle the box off during the initialization, you can turn it off after the legend is created. leg = legend() leg._drawFrame=False public methods and initialization option will be added in the future release. Regards, -JJ On Fri, Oct 2, 2009 at 2:02 PM, David Ward

Re: [Matplotlib-users] Getting Matplotlib to Recognize OSX Fonts

2009-10-02 Thread Michael Droettboom
matplotlib should pick up your installed fonts on OS-X --- but matplotlib only supports TrueType (and some OpenType) fonts. It won't work with Type 1 fonts -- it that what those particular ones are? Are you not able to use any of your installed fonts, or only some of them? Cheers, Mike On 10

Re: [Matplotlib-users] Axes3D - size of the Z axe

2009-10-02 Thread Nicolas Bigaouette
I was looking for something similar. It seems Axes3D() takes the angle as argument: import matplotlib.pyplot as plt import mpl_toolkits.mplot3d as m3d fig = plt.figure() ax = m3d.Axes3D(fig, elev = 20.0, azim = 45) in degrees. 2009/10/2 German Ocampo > Hello > > After search in google, I found

[Matplotlib-users] legend 'boxoff'?

2009-10-02 Thread David Warde-Farley
Is there a simple way to turn off the border of an inset legend? Regards, David -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart yo

[Matplotlib-users] Fwd: legend 'boxoff'?

2009-10-02 Thread David Warde-Farley
Hmm, that's odd, I still haven't seen my question go up. I suppose I will re-ask it, then: turning the border off of the legend. Is there an easy way, like MATLAB's legend('boxoff')? David Begin forwarded message: > Is there a simple way to turn off the border of an inset legend? > > Regards

Re: [Matplotlib-users] placing a plot on top of an imshow

2009-10-02 Thread Jae-Joon Lee
On Fri, Oct 2, 2009 at 11:52 AM, Jae-Joon Lee wrote: > The attachment is missing. My bad. There IS an attachment. Again, this is bug is already fixed in svn. Also, If you can, please post a diff file which makes the job a lot easier. Regards, -JJ ---

[Matplotlib-users] Getting Matplotlib to Recognize OSX Fonts

2009-10-02 Thread Buz Barstow
Dear All, I'm trying to get matplotlib to use some of my MacOSX fonts (Helvetica and Times) so that I can produce plots with these two fonts. I'm using matplotlib installed with fink on MacOSX 10.5.8, and using XQuartz 2.4.0. Has anyone tried to do this, and can they point me to a procedure

Re: [Matplotlib-users] Images and memory management

2009-10-02 Thread Michael Droettboom
If you assign each figure to a new number, it will keep all of those figures around in memory (because pyplot thinks you may want to use it again.) The best route is to call close('all') or fig.close() with each loop iteration. 40MB per image doesn't sound way out of reason to me. How big ar

Re: [Matplotlib-users] Axes3D - size of the Z axe

2009-10-02 Thread German Ocampo
Hello After search in google, I found a solution changing the initial point of view of the plot, using a function which control the angle and elevation of the initial view: ax.view_init(elevation, azimuth) and tried and works ax = Axes3D(fig) ax.view_init(64, -30) Question: Is it possible to

Re: [Matplotlib-users] Axes3D - size of the Z axe

2009-10-02 Thread Matthias Michler
On Friday 02 October 2009 14:24:17 German Ocampo wrote: > Hello everybody > > How can I control the size of the Z axis in a 3D plot using Axes3D in > matplotlib? I think for an axes like "ax = Axes3D(fig)" you can use "ax.set_zlim3d( ... )" Kind regards, Matthias

[Matplotlib-users] Labelling Rectangles

2009-10-02 Thread marcog
Hi there I am plotting a bar graph and would like to label the bars (rectangles) with their quantities. If a bar represents 12 items I want a "12" on the top-end of the bar, preferable on the edge of the bar and not off the chart as with a table. Is this possible? Thanks Marco -- View this mes

[Matplotlib-users] Axes3D - size of the Z axe

2009-10-02 Thread German Ocampo
Hello everybody How can I control the size of the Z axis in a 3D plot using Axes3D in matplotlib? regards german -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need

Re: [Matplotlib-users] placing a plot on top of an imshow

2009-10-02 Thread rafa5
I had to change the inset_locater.py file a little though. In your suggested code below : axins1 = inset_axes(ax, width="100%", height="20%", loc=3, borderpad=0, axes_kwargs=dict(frameon=False) ) the kwarg 'borderpad' was not doing anythin

Re: [Matplotlib-users] Best way to plot a 2d histogram?

2009-10-02 Thread Ernest Adrogué
Hi, 1/10/09 @ 18:17 (-0700), thus spake Matthew Neeley: > Here is a snippet that might get you started: > > > import numpy as np > from matplotlib import pyplot as plt > from matplotlib import cm > import mpl_toolkits.mplot3d as plt3 > > data = np.random.random((8,8))**4 > cmap = cm.RdBu > >

Re: [Matplotlib-users] Best way to plot a 2d histogram?

2009-10-02 Thread Ernest Adrogué
Hi, 1/10/09 @ 19:23 (-0500), thus spake Gökhan Sever: > Although it is not an exact histogram, if you are you looking for a > Pythonic alternative you might consider using Mayavi. It has ready > barchart plotting functionality. Probably with some effort a 2D > histogram as you linked might be cre