Re: [Matplotlib-users] padding when saving to a file

2009-03-30 Thread Ken Schutte
On Tue, Mar 31, 2009 at 2:16 AM, Jouni K. Seppänen wrote: > Use fig.add_axes([0,0,1,1],frameon=False) instead - add_subplot reserves > some space for a title, axis labels, etc. > Great, that works. I have noticed that when I use ticks and labels, the border sometimes cuts things off (for small i

Re: [Matplotlib-users] padding when saving to a file

2009-03-30 Thread Jouni K . Seppänen
Ken Schutte writes: > Is it possible to control (actually remove) the amount of white space > padded to a figure when saving to a file? For example, the white > border found on the output of something like the following: [...] > ax = fig.add_subplot(111,frameon=False) Use fig.add_axes([0,0,1,1]

[Matplotlib-users] padding when saving to a file

2009-03-30 Thread Ken Schutte
Is it possible to control (actually remove) the amount of white space padded to a figure when saving to a file? For example, the white border found on the output of something like the following: import matplotlib.pyplot as plt import matplotlib.patches as mpatches fig = plt.figure() ax = fig.add

Re: [Matplotlib-users] grab more points from a database when panning?

2009-03-30 Thread Ryan May
On Mon, Mar 30, 2009 at 1:34 PM, C M wrote: > I've got the NavigationToolbar2 going nicely on my app > (OO, embedded in wx, mpl 0.98.5), and was wondering > how difficult it might be to change how the pan works, > in the following way... > > Right now, when I show a plot, I am grabbing a subset >

[Matplotlib-users] We are on the Home strech and NEED help

2009-03-30 Thread Deltarodigy
Me and my team are almost to the finishing point. Our final problem is getting the graph to update. When we run the graph the get the following issue: " Traceback (most recent call last): File "/home/gnelson/scc08whole/branch/realistic2d/gtkgui.py", line 100, in update self.ax.draw_artist

[Matplotlib-users] Warning from pylab.plot on Linux

2009-03-30 Thread sigeti
Dear Matplotlib Folks, When I run pylab.plot, I get a weird warning: ** (python:20754): WARNING **: Couldn't connect to system bus ** (python:20754): WARNING **: Couldn't connect to system bus (Note that this was copied by hand because the system on which I run Matplotlib is currently unable

Re: [Matplotlib-users] Basemap data installation

2009-03-30 Thread Michael Hearne
Jeff - Copying the rest of the files solved the problem. Thanks! --Mike Jeff Whitaker wrote: > Michael Hearne wrote: >> I am experimenting with the Enthought Python Distribution (EPD) on >> MacOS 10.5, which includes BaseMap version 0.99.1. I have existing >> modules that use the 'full' resolu

Re: [Matplotlib-users] Basemap data installation

2009-03-30 Thread Jeff Whitaker
Michael Hearne wrote: > I am experimenting with the Enthought Python Distribution (EPD) on MacOS > 10.5, which includes BaseMap version 0.99.1. I have existing modules > that use the 'full' resolution data. These modules are currently > failing with the error message below. > > I have tried co

[Matplotlib-users] Basemap data installation

2009-03-30 Thread Michael Hearne
I am experimenting with the Enthought Python Distribution (EPD) on MacOS 10.5, which includes BaseMap version 0.99.1. I have existing modules that use the 'full' resolution data. These modules are currently failing with the error message below. I have tried copying what looked like the full r

[Matplotlib-users] grab more points from a database when panning?

2009-03-30 Thread C M
I've got the NavigationToolbar2 going nicely on my app (OO, embedded in wx, mpl 0.98.5), and was wondering how difficult it might be to change how the pan works, in the following way... Right now, when I show a plot, I am grabbing a subset of data from the database. Panning within that plot allow

Re: [Matplotlib-users] histogram

2009-03-30 Thread Roban Hultman Kramer
As Darren said, normed=1 means that the integral of the histogram is normalized to one, not the height. In other words, the total area under the histogram curve is set to one. Imagine a histogram with a single bin. If the width of the bin is less than one, the height must be greater than one in or

Re: [Matplotlib-users] histogram

2009-03-30 Thread Bala subramanian
There was a typo in my previous mail. y axis goes scale is more than one when i use normed=1. I am not getting why this happens. On Mon, Mar 30, 2009 at 6:10 PM, Bala subramanian wrote: > > > > Darren, >> But y axis goes scale is than one when i use normed=1. I am not getting >> why this happen

Re: [Matplotlib-users] histogram

2009-03-30 Thread Bala subramanian
Darren, > But y axis goes scale is than one when i use normed=1. I am not getting why > this happens. > > > On Mon, Mar 30, 2009 at 5:39 PM, Darren Dale wrote: > >> On Mon, Mar 30, 2009 at 11:25 AM, Bala subramanian < >> bala.biophys...@gmail.com> wrote: >> >>> Friends, >>> >>> I tried to plot a h

Re: [Matplotlib-users] Why would this happen?

2009-03-30 Thread Tyler B
that fixed it.. thanks! On Mon, Mar 30, 2009 at 11:02 AM, John Hunter wrote: > > > On Mon, Mar 30, 2009 at 8:22 AM, Tyler B wrote: > >> My graph, which had been working just fine, randomly decided to stop >> filling the width of the x-axis:http://screencast.com/t/vr3AaXIq >> >> Here's the

Re: [Matplotlib-users] histogram

2009-03-30 Thread Darren Dale
On Mon, Mar 30, 2009 at 11:25 AM, Bala subramanian < bala.biophys...@gmail.com> wrote: > Friends, > > I tried to plot a histogram and pdf of my data (data file attached 1.dat). > When i see the figure (attached file test.png) , i see y axis more than 1 > (although it should not when i use normed=1

Re: [Matplotlib-users] Why would this happen?

2009-03-30 Thread John Hunter
On Mon, Mar 30, 2009 at 8:22 AM, Tyler B wrote: > My graph, which had been working just fine, randomly decided to stop > filling the width of the x-axis:http://screencast.com/t/vr3AaXIq > > Here's the code I'm using (nothing fancy.. I took out all unnecessary > formatting and it didn't help):

[Matplotlib-users] Why would this happen?

2009-03-30 Thread Tyler B
My graph, which had been working just fine, randomly decided to stop filling the width of the x-axis:http://screencast.com/t/vr3AaXIq Here's the code I'm using (nothing fancy.. I took out all unnecessary formatting and it didn't help): fig = plt.figure(facecolor ='w', frameon=False) ax = plt.