[Matplotlib-users] matshow unequal element sizes

2013-06-06 Thread Michiel de Hoon
Hi all, I am trying to draw a heatmap using matshow, which I then save as a PDF. If I then zoom in in the PDF, I notice that different rows have different sizes, and different columns have different sizes. It seems that some rows/columns have twice the height/width as other rows/columns.

Re: [Matplotlib-users] matshow unequal element sizes

2013-06-06 Thread Michael Droettboom
By default (when interpolation=nearest) matplotlib is performing nearest neighbor interpolation on the image to the request PDF dpi before storing it in the file. This results in rows and columns of unequal size because the ratio from the original image to the destination resolution is likely

Re: [Matplotlib-users] matshow unequal element sizes

2013-06-06 Thread Michiel de Hoon
: Friday, June 7, 2013 1:40 AM Subject: Re: [Matplotlib-users] matshow unequal element sizes On Thu, Jun 6, 2013 at 10:14 AM, Michael Droettboom md...@stsci.edu wrote: By default (when interpolation=nearest) matplotlib is performing nearest neighbor interpolation on the image to the request PDF

[Matplotlib-users] matshow / imshow with date-axis

2010-03-29 Thread Atomfried
Hi, is it possible to perform a surface plot a NxM matrix with date-axes? Similar to plot_date for 1D-Plots. The dates are available as an N-sized (or M-sized) array of float values. At the moment, I am using imshow or matshow for the color plots, but the only way I found to manipulate the axes

Re: [Matplotlib-users] matshow / imshow with date-axis

2010-03-29 Thread Matthias Michler
On Monday 29 March 2010 13:56:51 Atomfried wrote: Hi, is it possible to perform a surface plot a NxM matrix with date-axes? Similar to plot_date for 1D-Plots. The dates are available as an N-sized (or M-sized) array of float values. At the moment, I am using imshow or matshow for the color

Re: [Matplotlib-users] matshow / imshow with date-axis

2010-03-29 Thread Atomfried
Hi Matthias, Thanks for the help. The problem is, however, that the 'extent' parameter only manipulates the range of the (integer) values on the axis. Before setting the *axis_date property, I need to set the axes data to arrays of (non-equidistant) floats. Best Regards, Micha Matthias

Re: [Matplotlib-users] matshow

2009-09-18 Thread Jae-Joon Lee
On Thu, Sep 17, 2009 at 2:49 AM, Bala subramanian bala.biophys...@gmail.com wrote: Friends, I have a matrix data and i used matshow() function to plot. The plot is attached. 1) After plotting the data, i used xticks() function to change the x-axis tick labels from x1 to x12 ( figure

[Matplotlib-users] matshow

2009-09-17 Thread Bala subramanian
Friends, I have a matrix data and i used matshow() function to plot. The plot is attached. 1) After plotting the data, i used xticks() function to change the x-axis tick labels from x1 to x12 ( figure attached). Similarly I want to change the y-axis tick labels into as A,B and C, instead of

Re: [Matplotlib-users] matshow?

2007-03-26 Thread Suresh Pillai
Thanks again Eric for the updated matshow(). I apologise for repeating: Since it has been decided (has it?) that matshow will retain the feature that a new figure is created (with aspect ratio matching the matrix), then if one adds a colorbar (a typical thing to do), the matrix height is

Re: [Matplotlib-users] matshow?

2007-03-19 Thread Eric Firing
Fernando Perez wrote: [...] Frankly, I don't care how it's done: I wrote matshow long ago, back when axis('scaled') didn't exist in the first place. If the same result can be achieved by other means that are cleaner, I'm sure John will accept a patch. One of the matshow anomalies is that it

[Matplotlib-users] matshow?

2007-03-16 Thread Bill Baxter
Why does pylab.matshow() create a new figure by default when no other standard pylab function I know of does that? It seems very inconsistent for no particular gain, since as always figure();matshow(m) will achieve that result if that is what is desired. --bb

Re: [Matplotlib-users] matshow?

2007-03-16 Thread Bill Baxter
On 3/17/07, Bill Baxter [EMAIL PROTECTED] wrote: A pox on matplotlib's default reply-to-sender! Resending my reply that went to Fernando alone below. On 3/17/07, Fernando Perez [EMAIL PROTECTED] wrote: On 3/16/07, Bill Baxter [EMAIL PROTECTED] wrote: Why does pylab.matshow() create a new