[Matplotlib-users] Axes frame lineweights

2011-09-09 Thread Adam Davis
Is there a way to reduce the lineweight of the axes frame edge? Alternatively, is there a way to hide the edge of the frame without turning the frame off? Thanks, Adam -- Why Cloud-Based Security and Archiving Make

Re: [Matplotlib-users] 1-10^-1 Custom Log Ticker

2011-09-09 Thread Jeffrey Spencer
import matplotlib.ticker as tick def showOnlySomeTicks(x, pos): s = str(int(x)) if x == 5000: return'5e3'#'%.0e' % x return '' ax = plt.axes([0.165,0.2,0.95-0.24,0.95-0.2]) ax.xaxis.set_minor_formatter(tick.FuncFormatter(showOnlySomeTicks)) Then in the code something

Re: [Matplotlib-users] one pixel white border : bug ?

2011-09-09 Thread Yves Revaz
On 09/08/2011 06:09 PM, Benjamin Root wrote: On Thu, Sep 8, 2011 at 10:30 AM, Yves Revaz yves.re...@epfl.ch mailto:yves.re...@epfl.ch wrote: Dear List, when I'm saving a plot with the option facecolor='k', around my image, there is still a one pixel white border. How is it

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2011-09-09 Thread Jakob Malm
2011/9/8 Jeff Whitaker jsw...@fastmail.fm: On 9/8/11 1:51 AM, Jakob Malm wrote: Picking up on an old thread. Hopefully Jeff is still listening in... On 2010-04-04 23:24, Jeff Whitaker wrote: On 4/4/10 11:06 AM, Will Hewson wrote: Hi again Jeff et al... I've had a play around with the

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-09 Thread Scott Sinclair
On 8 September 2011 19:20, Matt Funk matze...@gmail.com wrote: Hi, sorry that it has taken me so long to reply. Anyway, i could be wrong, but i don't think that the code:     xi = np.linspace(llcrnlon,urcrnlon,1000)     yi = np.linspace(llcrnlat,urcrnlat,1000) will produce a grid which

[Matplotlib-users] exception in hit testing with log scale axes

2011-09-09 Thread Daniel Hyams
I was trying to implement something where the user could change the properties of an artist by right clicking on it...so I needed to find out what artists are under the cursor at the time of the click. It is possible that the method that I'm using isn't the recommended one; if not, I would

Re: [Matplotlib-users] it is possible to use basemap to create regular spaced lat/lon grids?

2011-09-09 Thread Matt Funk
On 9/9/2011 6:42 AM, Scott Sinclair wrote: On 8 September 2011 19:20, Matt Funk matze...@gmail.com wrote: Hi, sorry that it has taken me so long to reply. Anyway, i could be wrong, but i don't think that the code: xi = np.linspace(llcrnlon,urcrnlon,1000) yi =

Re: [Matplotlib-users] one pixel white border : bug ?

2011-09-09 Thread Benjamin Root
On Fri, Sep 9, 2011 at 3:49 AM, Yves Revaz yves.re...@epfl.ch wrote: ** On 09/08/2011 06:09 PM, Benjamin Root wrote: On Thu, Sep 8, 2011 at 10:30 AM, Yves Revaz yves.re...@epfl.ch wrote: Dear List, when I'm saving a plot with the option facecolor='k', around my image, there is still a

[Matplotlib-users] 2 x-axes

2011-09-09 Thread Neal Becker
I have a semilog plot. I'd like to add a second x axis (maybe below the existing one, or else maybe on top of graph). This second x axis is simply describing the same existing data, in different units. For example imagine a plot of x - time in seconds y - velocity x2 - time in minutes

[Matplotlib-users] exception in hit testing with log scale axes [resend]

2011-09-09 Thread Daniel Hyams
[resend: apologies for the html mail]. I was trying to implement something where the user could change the properties of an artist by right clicking on it...so I needed to find out what artists are under the cursor at the time of the click.  It is possible that the method that I'm using isn't the

Re: [Matplotlib-users] one pixel white border : bug ?

2011-09-09 Thread Paul Hobson
Ben and Yves, Might this be behavior defined in the matplotlibrc file? In [21]: import matplotlib as mpl In [22]: mpl.rcParams['figure.edgecolor'] Out[22]: 'w' -paul On Fri, Sep 9, 2011 at 9:37 AM, Benjamin Root ben.r...@ou.edu wrote: On Fri, Sep 9, 2011 at 3:49 AM, Yves Revaz

Re: [Matplotlib-users] 2 x-axes

2011-09-09 Thread Neal Becker
Neal Becker wrote: I have a semilog plot. I'd like to add a second x axis (maybe below the existing one, or else maybe on top of graph). This second x axis is simply describing the same existing data, in different units. For example imagine a plot of x - time in seconds y - velocity

Re: [Matplotlib-users] 2 x-axes

2011-09-09 Thread Gökhan Sever
Hi, The code below should create a properly placed 2nd x-axis. You might need to adjust the placement of the figure canvas to match into the window. import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.parasite_axes import SubplotHost fig = plt.figure(figsize=(10,8))

[Matplotlib-users] canvas.draw() memory issue? (PyQt4)

2011-09-09 Thread Matt Earnshaw
Hi all, I am encountering a memory leak type issue when running the following, for example. http://codepad.org/TNuCLT3k Matplotlib version: 0.99.3 PyQt4 Version: 4.8.5 I found a thread in the archive relating to this issue which supposedly disappeared upon updating to PyQt 4.8.4 (I trust it