[Matplotlib-users] How to remove white space

2010-04-01 Thread yogesh karpate
Dear All, I have one .png image of 940X780 and i am plotting waveforms on it. When I save this plot as .png , matp[lotlib gives image in 800X600 that too with white space. I dont want to keep the white space and i want the same resolution as original image.How should I go ahead?

Re: [Matplotlib-users] How to remove white space

2010-04-01 Thread Matthias Michler
On Thursday 01 April 2010 09:41:06 yogesh karpate wrote: Dear All, I have one .png image of 940X780 and i am plotting waveforms on it. When I save this plot as .png , matp[lotlib gives image in 800X600 that too with white space. I dont want to keep the white space and i want

[Matplotlib-users] Change axis's scale

2010-04-01 Thread timothee cezard
Hi all, I have several graph to create and the position on the x axis can vary quite a lot. Most of the time I'm quite happy with the default behavior but when my x values are very high matplotlib automatically change the ticks and set a scale on the axis (see screenshot)

Re: [Matplotlib-users] Change axis's scale

2010-04-01 Thread Matthias Michler
On Thursday 01 April 2010 12:27:59 timothee cezard wrote: Hi all, I have several graph to create and the position on the x axis can vary quite a lot. Most of the time I'm quite happy with the default behavior but when my x values are very high matplotlib automatically change the ticks and set

[Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Mauro Cavalcanti
Dear ALL, Long time no see Well, I have recently upgraded from Ubuntu Intrepid to Jaunty (sure, I know that I'm a couple of versions delayed, but keeping a working system stable is essential). I did not a fresh install of Ubuntu, just upgraded using the system's facility for that. Previously

Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Sandro Tosi
On Thu, Apr 1, 2010 at 13:53, Mauro Cavalcanti mauro...@gmail.com wrote: Dear ALL, Long time no see Well, I have recently upgraded from Ubuntu Intrepid to Jaunty (sure, I know that I'm a couple of versions delayed, but keeping a working system stable is essential). I did not a fresh

Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Darren Dale
On Thu, Apr 1, 2010 at 7:53 AM, Mauro Cavalcanti mauro...@gmail.com wrote: Dear ALL, Long time no see Well, I have recently upgraded from Ubuntu Intrepid to Jaunty (sure, I know that I'm a couple of versions delayed, but keeping a working system stable is essential). I did not a fresh

Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Mauro Cavalcanti
Dears Sandro Darren, First of all, thank you *very much* for the fast reply! Let's see... I have the same problem (no graphics display) with either Python and IPython. BTW, in previous versions of Python which I'v used (2.3, 2.4, and 2.5) Matplotlib graphic backends always worked quite well. I

Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Sandro Tosi
I will check the matplotlibrc, but why should the Agg default backend not work? Because 'Agg' is a file-based backend, that you use when you want to generate a file as output (a PNG, f.e.), so savefig() works while show() not. You are looking for a GUI backend, something like TkAgg, GTKAgg or

Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6

2010-04-01 Thread Scott Sinclair
On 1 April 2010 13:53, Mauro Cavalcanti mauro...@gmail.com wrote: Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for more information. from pylab import randn, hist x = randn(1) hist(x, 100) Instead of a nice

[Matplotlib-users] How to overlay an image on a multi plot?

2010-04-01 Thread Josh Hemann
Hi All, I used the http://matplotlib.sourceforge.net/examples/pylab_examples/scatter_hist.html scatter_hist example from the Gallery to create the following visualization: http://old.nabble.com/file/p28111498/Full5%252B8%252B2_vs_Bulk1%252B2.png What I would like to do is overlay some

Re: [Matplotlib-users] Changing the font

2010-04-01 Thread Jeff Klukas
On Thu, Apr 1, 2010 at 11:21 AM, Alex S schmitt.happ...@gmail.com wrote: Hi there, I'm trying to change the font default on my graph to New Century Schoolbook. I'm trying to do this by editing the matplotlibrc file.  Unfortunately, although I'm able to change the font.family, I can't figure

Re: [Matplotlib-users] Problems with Matplotlib and Python 2.6 - SOLVED

2010-04-01 Thread Mauro Cavalcanti
Dear ALL, I finally solved the problems with displying graphics in Matplotib with Python 2.6 under Ubuntu Jaunty. It just turned out that, when upgrading from Intrepid to Jaunty, several required development packages were removed from the system. I just discovered that when trying to build and

Re: [Matplotlib-users] How to overlay an image on a multi plot?

2010-04-01 Thread Alan G Isaac
On 4/1/2010 1:26 PM, Josh Hemann wrote: What I would like to do is overlay some http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR sparklines so in one visualization I can see - The correlation between two variables - The marginal densities of the variables

Re: [Matplotlib-users] Animated quiver

2010-04-01 Thread Eric Firing
Fiocco Davide wrote: Dear all, I'm trying to plot a 2D vector field. It's a function of time so I would like to display an animation. For single frames I used quiver and I'm happy with it... is there any way to update a quiver with time? If the vectors will always be at the same

Re: [Matplotlib-users] Changing the font

2010-04-01 Thread Alex S
Hi, sorry I wasn't too clear... I changed that, but I don't seem to be able to choose between the different serif fonts, it just always gives me the default... Alex S wrote: Hi there, I'm trying to change the font default on my graph to New Century Schoolbook. I'm trying to do this by

Re: [Matplotlib-users] manual placement of a colorbar

2010-04-01 Thread Jeff Whitaker
On 4/1/10 1:24 PM, Mathew Yeates wrote: Hi I have a Basemap and I want to manually add a colorbar to the side. As you can see in the attached image, the colorbar is not correctly positioned. Here is a snippet of code ax=fig.add_axes([0.1,0.1,0.8,.8]) m =

Re: [Matplotlib-users] manual placement of a colorbar

2010-04-01 Thread Mathew Yeates
This doesn't work for what I'm doing. Unless I call contour or something similar, this will fail. I am only using m.plot and this doesn't set things up properly to call colorbar. On Thu, Apr 1, 2010 at 12:40 PM, Jeff Whitaker jsw...@fastmail.fm wrote: On 4/1/10 1:24 PM, Mathew Yeates wrote:

Re: [Matplotlib-users] manual placement of a colorbar

2010-04-01 Thread Jae-Joon Lee
If you're not afraid of contaminating your code with axes_grid toolkit, instead cax = fig.add_axes([0.9, 0.1, 0.1, 0.8]) # setup colorbar axes. try from mpl_toolkits.axes_grid import make_axes_locatable import matplotlib.axes as maxes divider = make_axes_locatable(ax) cax =

Re: [Matplotlib-users] How to save file in to image in desired resolution in matplotlib?

2010-04-01 Thread Friedrich Romstedt
The list config got me, so to the list too ... 2010/3/31 Matthias Michler matthiasmich...@gmx.net: On Wednesday 31 March 2010 09:24:10 yogesh karpate wrote: Dear All, I am using one image of 235X130 and plotting the curve on it, now when i save it it goes in the resoltuion of

Re: [Matplotlib-users] manual placement of a colorbar

2010-04-01 Thread Mathew Yeates
Thanks a bunch JJ. I've been trying to figure that one out all day! Mathew On Thu, Apr 1, 2010 at 1:04 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: If you're not afraid of contaminating your code with axes_grid toolkit, instead cax = fig.add_axes([0.9, 0.1, 0.1, 0.8]) # setup colorbar

Re: [Matplotlib-users] a quick way to plot 3D surface with point coordination?

2010-04-01 Thread Friedrich Romstedt
2010/4/1 ericyosho ericyo...@gmail.com: And we know that for points with coordination, scatter must be the simplest way to visualize them. Is there any trick to convert a scatter graph into a surface picture directly? I'm afraid not, because one needs an algorithm to infer the connectivity :-(

[Matplotlib-users] Cmap creation

2010-04-01 Thread Bruce Ford
I'm running into walls trying to create a custom cmap. Running the example custom_cmap.py unchanged, I get : AttributeError: 'module' object has no attribute 'register_cmap' args = ('module' object has no attribute 'register_cmap',) I've included custom_cmap.py below. It's a major

[Matplotlib-users] speed up imports?

2010-04-01 Thread Andrew Kelly
Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot as plt ( or from matplotlib.figure import Figure) takes 6 full seconds to load. That seems excessive. Any ideas? -Andy -- Download

Re: [Matplotlib-users] Cmap creation

2010-04-01 Thread Friedrich Romstedt
You forgot about the attachment? Friedrich -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance.

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread Friedrich Romstedt
Hmm, I wrote one time a lazy-import module, you create objects and use their attributes, but the object imports the module not earlier than the first attribute access. Thus these objects are used like the module via import module. I.e., module = Lazy('matplotlib.module'). There are also

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread Eric Firing
Andrew Kelly wrote: Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot as plt ( or from matplotlib.figure import Figure) takes 6 full seconds to load. That seems excessive. Any ideas? Unless you have a very old machine, it sounds like something is

Re: [Matplotlib-users] Cmap creation

2010-04-01 Thread Chloe Lewis
The example works for me; Python 2.6.4 (recent Enthought install). Can you use your new colormap without registering it? C On Apr 1, 2010, at 1 Apr, 2:14 PM, Bruce Ford wrote: I'm running into walls trying to create a custom cmap. Running the example custom_cmap.py unchanged, I get :

[Matplotlib-users] EPS files with LaTeX are invalid

2010-04-01 Thread Thomas Robitaille
Hello, I upgraded to the latest svn version of matplotlib today, and found that eps files produced with the system latex now seem to be invalid. For example, if I run the following script import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as mpl mpl.rc('text', usetex=False) fig

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread Eric Firing
Andrew Kelly wrote: Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot as plt ( or from matplotlib.figure import Figure) takes 6 full seconds to load. That seems excessive. Any ideas? -Andy Andy, A couple replies came back directly to me (probably

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread Andrew Kelly
Eric, I am running it on a windows 7 machine and a windows XP machine. Odd that it does this only on win32. -Andy On Thu, Apr 1, 2010 at 4:17 PM, Eric Firing efir...@hawaii.edu wrote: Andrew Kelly wrote: Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot

[Matplotlib-users] downloadable docs?

2010-04-01 Thread Stuart McGraw
I live in a third world part of the US where internet access is via modem so reading the matplotlib docs via the internet very painful. A full afternoon trying to build the docs was unsuccessful. Is there anyplace where I can download pre-built HTML of all the docs (not just the User Manual)?

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread C M
On Thu, Apr 1, 2010 at 7:17 PM, Eric Firing efir...@hawaii.edu wrote: Andrew Kelly wrote: Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot as plt ( or from matplotlib.figure import Figure) takes 6 full seconds to load.  That seems excessive.  Any ideas?

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread Gökhan Sever
On Thu, Apr 1, 2010 at 7:57 PM, C M cmpyt...@gmail.com wrote: On Thu, Apr 1, 2010 at 7:17 PM, Eric Firing efir...@hawaii.edu wrote: Andrew Kelly wrote: Has anyone had any success in speeding up the mpl imports? import matplotlib.pyplot as plt ( or from matplotlib.figure import Figure)

Re: [Matplotlib-users] downloadable docs?

2010-04-01 Thread Gökhan Sever
On Thu, Apr 1, 2010 at 6:04 PM, Stuart McGraw smcg4...@frii.com wrote: I live in a third world part of the US where internet access is via modem so reading the matplotlib docs via the internet very painful. A full afternoon trying to build the docs was unsuccessful. Is there anyplace where

Re: [Matplotlib-users] downloadable docs?

2010-04-01 Thread Stuart McGraw
On 04/01/2010 08:09 PM, Gökhan Sever wrote: On Thu, Apr 1, 2010 at 6:04 PM, Stuart McGraw smcg4...@frii.com mailto:smcg4...@frii.com wrote: I live in a third world part of the US where internet access is via modem so reading the matplotlib docs via the internet very painful. A