[Matplotlib-users] bug in imshow for PDF, EPS output

2009-08-19 Thread Michael Fitzgerald
Hi all, I've come across an apparent bug in imshow when outputting to PDF and EPS files. (I haven't tested other vector formats.) It manifests as a small scaling error between the raster image and the axes coordinates. I have attached a test script to illustrate the problem. The (correct) PNG

[Matplotlib-users] images on log axes: bug

2007-04-07 Thread Michael Fitzgerald
Hi all, In June '06, there was a short discussion on getting images displayed on log axes (thread: showing an image on log axes?). John Hunter posted this example code: from pylab import figure, show, nx fig = figure() ax = fig.add_subplot(111) im = nx.mlab.rand(500,500) ax.imshow(im,

[Matplotlib-users] axis elements and zorder

2006-09-02 Thread Michael Fitzgerald
Hi all, I have a question about zorder and Axis elements. I read in the thread titled zorder not working for grid lines?? that since grid lines are Axis elements, they don't respect the zorder. It's possible to set grid lines below other plot elements with Axis.set_axisbelow().

Re: [Matplotlib-users] tick label hiding problem

2006-08-31 Thread Michael Fitzgerald
On Aug 31, 2006, at 4:36 AM, John Hunter wrote: So: how do you solve your problem, of making the first tick invisible? What I do when I need to solve this problem, which comes up a lot with multiple axes where ticks can overlap, is the following from matplotlib.ticker import ScalarFormatter

Re: [Matplotlib-users] tick label hiding problem

2006-08-30 Thread Michael Fitzgerald
xtl = ax.get_xticklabels() xtl[0].set_visible(False) print len(xtl) ax.set_xlabel('foo') show() Thanks in advance, Mike On Aug 24, 2006, at 7:16 PM, Michael Fitzgerald wrote: Hi all, Sometime in the past couple months, there's been a change in SVN that's causing me problems when trying

[Matplotlib-users] tick label hiding problem

2006-08-24 Thread Michael Fitzgerald
Hi all, Sometime in the past couple months, there's been a change in SVN that's causing me problems when trying to hide tick labels. I think the problem is related to the get_xticklabels()/get_yticklabels() methods of the Axes class, in that they only return a list consisting of a single

[Matplotlib-users] tick and axis label hiding

2006-07-18 Thread Michael Fitzgerald
Hi all, I'm seeing some unexpected behavior when trying to hide a tick label, which I like to do with ganged plots. When I attempt this, however, it seems the axis label is no longer drawn. For example, x = arange(5) ax = subplot(111) ax.plot(x, x) xtl = ax.get_xticklabels()

Re: [Matplotlib-users] bivariate normal distribution function buggy?

2006-07-09 Thread Michael Fitzgerald
Hello, It looks like there are a couple of typos in the equations used in the function. On Friday 07 July 2006 12:17, Faheem Mitha wrote: I think the bivariate normal probability distribution function implementation in Matplotlib is buggy. See the example code below, and note that the