Re: [Matplotlib-users] change default format of ticks on vertical axis

2011-03-08 Thread Eric Firing
On 03/08/2011 09:53 AM, Mark Bakker wrote: > Works great Eric. > Is this in the documentation somewhere? Probably only in the change notes and in the docstrings. http://matplotlib.sourceforge.net/_static/CHANGELOG Eric > Thanks, > Mark > > > From: Eric Firing mailto:efir...@hawaii.edu>> >

[Matplotlib-users] specifying exact position and size of axisartist axes

2011-03-08 Thread Kornél Jahn
Hi! I would greatly appreciate if you could give me some advice. I would like to make a Cartesian axes with a polar grid shown, just as here in this example: http://matplotlib.sourceforge.net/examples/axes_grid/demo_curvelinear_grid.html I have studied this example, I don't even need ParasiteAxes

Re: [Matplotlib-users] pyplot.figure() memory leak?

2011-03-08 Thread Goyo
2011/3/8 Paul Anton Letnes : > Hi! > > This simple loop: import time import pylab for i in range(100): > ...     time.sleep(0.1) > ...     pylab.figure() > ... > will have python use more and more memory. While this is not technically a > memory leak, it becomes one in practice, if

[Matplotlib-users] pyplot.figure() memory leak?

2011-03-08 Thread Paul Anton Letnes
Hi! This simple loop: >>> import time >>> import pylab >>> for i in range(100): ... time.sleep(0.1) ... pylab.figure() ... will have python use more and more memory. While this is not technically a memory leak, it becomes one in practice, if I want to create a large number of figure

Re: [Matplotlib-users] change default format of ticks on vertical axis

2011-03-08 Thread Mark Bakker
Works great Eric. Is this in the documentation somewhere? Thanks, Mark From: Eric Firing > On 03/07/2011 11:51 AM, Mark Bakker wrote: > > My values on the vertical axis are large, but the range is small: > > plot([3004,3005,3006]) > > By default this plots 0,1,2 as tickmarks along the vertical a

Re: [Matplotlib-users] Problem generating pdf file with LaTeX fonts

2011-03-08 Thread Jouni K . Seppänen
Pål Gunnar Ellingsen writes: > I know there was a post on the mail liste a couple of days ago ( Bug > in `dviread.py'), but I'm not sure if this is the same error, which it > shouldn't be as I'm using the latest svn revision. Not the same error - it is showing a warning message generated by the

Re: [Matplotlib-users] Problem generating pdf file with LaTeX fonts

2011-03-08 Thread Benjamin Root
On Tue, Mar 8, 2011 at 12:05 PM, Pål Gunnar Ellingsen wrote: > Hi > > I'm trying to make a plot as a pdf file (or any vector format) with LaTeX > fonts. I can make it output the file using show, but not with savefig (unless > it is raster graphics). > > > My setup is Fedora 13 64 bit with the la

[Matplotlib-users] Plotting Coarse Data Question

2011-03-08 Thread Andrew Chapkowski
Hello, I am trying to plot elevation data, and I am looking for recommendation on visualization of the data? My main concern is that the data I am extracting my elevation data from is coarse and there the line graphs I am producing look jagged. Is there a way to smooth the data also? Thank

[Matplotlib-users] Problem generating pdf file with LaTeX fonts

2011-03-08 Thread Pål Gunnar Ellingsen
Hi I'm trying to make a plot as a pdf file (or any vector format) with LaTeX fonts. I can make it output the file using show, but not with savefig (unless it is raster graphics). My setup is Fedora 13 64 bit with the latest TexLive: texlive-2011-0.1.20110227.fc13.x86_64 and matplotlib from svn, re

Re: [Matplotlib-users] Text box adaptable

2011-03-08 Thread Benjamin Root
On Tue, Mar 8, 2011 at 4:51 AM, Andrea Crotti wrote: > Goyo writes: > > > > > As Ben explained you need to draw first. So the usual path is: > > 1. Draw > > 2. Figure out the size of potentially problematic things (labels, > > titles...) and the space you need. > > 3. Adjust subplots or whatever

Re: [Matplotlib-users] Text box adaptable

2011-03-08 Thread Mike Kaufman
Is there an easy way to draw a piece of text (or whatever) to an off-screen or off-canvas buffer, figure out the size from that, and then use that to draw to the plot? M On 3/8/11 5:51 AM, Andrea Crotti wrote: > Goyo writes: > >> >> As Ben explained you need to draw first. So the usual path is

Re: [Matplotlib-users] Issue with imshow and usetex

2011-03-08 Thread Jae-Joon Lee
With current master at git repo, I cannot reproduce this. Both test_1.eps and test_2.eps are ~4M in size. Can you check if the file size varies significantly with rc parameters ps.usedistiller? I'm not sure how text setting can affect the images. Regards, -JJ On Tue, Mar 1, 2011 at 7:23 AM, T

Re: [Matplotlib-users] imshow only half of each unit

2011-03-08 Thread Jae-Joon Lee
The easiest would be using a masked array. arr = np.arange(100).reshape((10,10)) iny, inx = np.indices(arr.shape) mymask=inx+iny>=10 imshow(np.ma.array(arr, mask=mymask), cmap="gray") imshow(np.ma.array(arr, mask=~mymask), cmap="jet") However, I recommend you to use the clippath. http://matplot

Re: [Matplotlib-users] demo_curvelinear_grid.py and lines over 100 points?

2011-03-08 Thread Jae-Joon Lee
This is a bug and I just pushed a fix to the git repo. Meanwhile, a workaround is l1, = ax2.plot(range(150),[10.]*150,color='g') l1._transformed_path = None l1._subslice = False Regards, -JJ On Tue, Mar 8, 2011 at 6:48 AM, Hatch, Sara J (343D) wrote: > Matlplotlib folks, > > > > I copied th

Re: [Matplotlib-users] Text box adaptable

2011-03-08 Thread Andrea Crotti
Goyo writes: > > As Ben explained you need to draw first. So the usual path is: > 1. Draw > 2. Figure out the size of potentially problematic things (labels, > titles...) and the space you need. > 3. Adjust subplots or whatever needs adjustment to fit. > 4. Draw again. > > Sort of weird but it wo

Re: [Matplotlib-users] savefig bbox_inches='tight' does not consider suptitle

2011-03-08 Thread Yuri D'Elia
On Mon, 7 Mar 2011 13:41:49 -0600 Benjamin Root wrote: > > I've > > been using matplotlib a lot the last few months and was totally > > unaware that pyplot was "required". Good thing I read this message! :-) I'm glad I'm not the only one :) > > > The interface should create the figure objects

[Matplotlib-users] imshow only half of each unit

2011-03-08 Thread T J
imshow fills an entire "unit" in the grid. I'd like to overlay two imshow's on top of each other, but in a non-destructive manner. One way of doing this would be to modify the behavior of imshow so that it only fills a portion of each "unit" in the grid. For example, in the first imshow, I'd fil

Re: [Matplotlib-users] Legend outside the plot

2011-03-08 Thread Yuri D'Elia
On Tue, 8 Mar 2011 02:35:52 +0900 Jae-Joon Lee wrote: > On Mon, Mar 7, 2011 at 8:22 PM, Yuri D'Elia wrote: > > With matplotlib, I have to do the following: > > > > legend(bbox_to_anchor=(1, 1 + ?), loc=2) > > > > but how do I calculate the vertical location? > > Maybe you want to try something