[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, exten

[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(). Howe

Re: [Matplotlib-users] tick label hiding problem

2006-08-31 Thread Michael Fitzgerald
On Aug 31, 2006, at 2:56 PM, John Hunter wrote: >>>>>> "Michael" == Michael Fitzgerald <[EMAIL PROTECTED]> writes: > > Michael> Is there a way to force some sort of pseudo-draw event, > Michael> such that the sizing is done and the ticks a

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 ScalarFormat

Re: [Matplotlib-users] tick label hiding problem

2006-08-30 Thread Michael Fitzgerald
the first tick label on the x axis 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 chan

[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 tick

[Matplotlib-users] No marker fill?

2006-07-18 Thread Michael Fitzgerald
Hi all, I would like a way to set the marker face color to 'None' so that I may see overlapping markers. I am aware of the workaround using scatter() to set alpha, but alas that's no good for PS output: http://sourceforge.net/mailarchive/message.php?msg_id=12261949 Is this currentl

[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() xtl[0].set_vis

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 cha