[Matplotlib-users] Can I change pixel aspect with axes_grid

2011-08-19 Thread gru...@bigpond.net.au
Usually imshow(arr, aspect='auto') or imshow(arr, aspect=2.0) will display the image with pixels having some aspect ratio other than 1:1 However, I cannot get this to work when using imshow within an AxesGrid axis. Is there a way to get an array shown with imshow() within an AxesGrid axis to have a

Re: [Matplotlib-users] How to set the data for an existing pcolormesh image?

2011-08-19 Thread Eric Firing
On 08/15/2011 11:10 PM, Till Stensitzki wrote: > Hello, > for a interactive gui program i want to change the shown data without changing > the rest of the figure. For normal plots, there is a set_xdata/set_ydata > methods. For QuadMesh, there is a set_array method, which i don't get to work. You h

Re: [Matplotlib-users] Bug in scatter

2011-08-19 Thread Eric Firing
On 08/19/2011 09:19 AM, Andre' Walker-Loud wrote: >> >> I agree that this is a bug. (I suspect it is a malign side-effect of >> some attempt to make bar plots work with a log scale, but I haven't >> tracked it down.) What is less clear is the desired behavior. Raise an >> exception? Silently dele

Re: [Matplotlib-users] Bug in scatter

2011-08-19 Thread Andre' Walker-Loud
> > I agree that this is a bug. (I suspect it is a malign side-effect of > some attempt to make bar plots work with a log scale, but I haven't > tracked it down.) What is less clear is the desired behavior. Raise an > exception? Silently delete the points that are invalid with a log scale? >

Re: [Matplotlib-users] Bug in scatter

2011-08-19 Thread Eric Firing
On 08/18/2011 10:03 PM, Richard Neher wrote: > Hi folks, > > it seems to me that there is a bug in scatter when using log scale. Have > a look at the output of the following script: > > frompylab import* > > print matplotlib.__version__ > x=arange(10) > plot(x, exp(-x)) > ax=gca() > ax.set_yscale('

Re: [Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread Eric Firing
On 08/18/2011 10:57 PM, James McMurray wrote: > I made this standalone script here: http://pastebin.com/AnKeCwiU and > this does not suffer from the issue. For comparison here is the plotting > function in my program: http://pastebin.com/7xxtPQYb The problem is that the Gtk backend does not suppor

[Matplotlib-users] Connecting an arbitrary list of points

2011-08-19 Thread Benjamin Root
I have an arbitrary list of coordinates that I know represent the boundary of a polygon. Is there some sort of function from the contouring or path codes that would allow me to pass in that list and get back the resorted list with the path codes with it? Thanks, Ben Root -

Re: [Matplotlib-users] determining of a line segment is a Line2D

2011-08-19 Thread Benjamin Root
On Mon, Aug 15, 2011 at 4:56 PM, Mathew Yeates wrote: > Hi > Is there a simple way to do the following > > l1=Line2D(xdata=[1,2,3],ydata=[4,5,6]) > > l2=Line2D(xdata = [1].ydata=[3]) > > if l2 in l1 #error, Line2D not iterable > > > -Mathew > > Haven't tried it, but you might want to look at matp

[Matplotlib-users] Symmetrical Log Scale on Axis

2011-08-19 Thread Jonny Milliken
Hi, I am having some trouble establishing how to use matplotlib.scale.SymmetricalLogScale() to draw a log scale on the positive and negative axis of a plot. Assuming of course that is the correct way to go about it The code at the moment I am looking at goes something like this, with arbitrary da

Re: [Matplotlib-users] Define minimum precision for tick labels

2011-08-19 Thread Warren Weckesser
On Fri, Aug 19, 2011 at 3:12 AM, André Dankert wrote: > Hi, > > I have a minor style problem, but, nevertheless, I can't solve it with > googles help. I want to have a minimum precision displayed on my ticks, i.e. > if the ticks are -1,-0.5,0,0.5,1 it should be displayed this way instead of > -1.

[Matplotlib-users] Define minimum precision for tick labels

2011-08-19 Thread André Dankert
Hi, I have a minor style problem, but, nevertheless, I can't solve it with googles help. I want to have a minimum precision displayed on my ticks, i.e. if the ticks are -1,-0.5,0,0.5,1 it should be displayed this way instead of -1.0,-0.5,0.0,0.5,1.0. With the tick formatter I can set the tick prec

Re: [Matplotlib-users] Bug in scatter

2011-08-19 Thread Marcel Zemp
Hi Richard, I've submitted this a while ago to the mailing list [1] as well, but nobody answered. :-( Hopefully, somebody knows an answer this time. - Marcel [1] http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg20684.html Am 19

Re: [Matplotlib-users] mathtext in eps figures doesn't come out in pdf

2011-08-19 Thread Jonathan Slavin
I did have success converting my ps file to pdf with an online converter at http://www.ps2pdf.com/ -- so it seems it's ghostscript 8.70 bug (though one that I've only seen with eps files created by matplotlib). Jon On Fri, 2011-08-19 at 11:48 +0900, Jae-Joon Lee wrote: > When I converted the ps f

Re: [Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread James McMurray
After some testing, it appears to be caused by the use of LaTeX in the labels which then prevents it from being rotated (but only inside the GTK application). I have no idea why this is only occurring when it is not in interactive mode, but I guess for the time being I can just try not to use LaTeX

Re: [Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread James McMurray
I made this standalone script here: http://pastebin.com/AnKeCwiU and this does not suffer from the issue. For comparison here is the plotting function in my program: http://pastebin.com/7xxtPQYb The only major difference is the use of the interactive display in the script, against the use of Figur

Re: [Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread Eric Firing
On 08/18/2011 09:53 PM, James McMurray wrote: > Hi, > > I am having a problem where the colorbar labels will never appear > vertically, even when their rotation is specified as "vertical". As you > can see in the screenshot here: http://minus.com/lbOJyOljH this creates > problems when the labels a

[Matplotlib-users] Bug in scatter

2011-08-19 Thread Richard Neher
Hi folks,it seems to me that there is a bug in scatter when using log scale. Have a look at the output of the following script:from pylab import *print matplotlib.__version__x=arange(10)plot(x, exp(-x))ax=gca()ax.set_yscale('log')scatter(x, exp(-x), label= 'works fine')scatter(x, zeros(10), marker=

[Matplotlib-users] Colorbar labels never appear vertically

2011-08-19 Thread James McMurray
Hi, I am having a problem where the colorbar labels will never appear vertically, even when their rotation is specified as "vertical". As you can see in the screenshot here: http://minus.com/lbOJyOljH this creates problems when the labels are cut off and generally looks unprofessional. I am crea