[Matplotlib-users] callback ideas (artist.Artist, mostly)

2010-10-22 Thread David Carmean
Would others find it useful to have most/all of the artist.Artist subclasses updated to use the new (weak-ref) cbook.CallbookRegistry callbacks? I'm working on a tool to tweak matplotlib figure styles/colors, etc, and I find it very useful to selectively enable "auto-updating" in my own toolk

[Matplotlib-users] getting minor ticks by default

2010-10-22 Thread Jonathan Slavin
Is there some way to get minor tick marks on plots by default? I can do: plt.minorticks_on() easily enough, but it seems that there is no setting I can put in my matplotlibrc file that will give me them by default. Is that right? Jon

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 11:31 AM, Maarten Sneep wrote: > On Fri, 2010-10-22 at 11:12 -0500, Ryan May wrote: >> On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck >> >> > If there are only 7 possible values of the data, which are >> evenly-spaced, it should probably not go in and create more t

Re: [Matplotlib-users] merge two axes

2010-10-22 Thread Stan West
> From: Ruggero [mailto:giurr...@gmail.com] > Sent: Thursday, October 21, 2010 17:59 > > I want to merge axes from f1 and f2 in a unique axes (withou splitting > the figure). For example if f1 produces a line and f2 produces another > line I want to see two lines in the same plot at the end. If

Re: [Matplotlib-users] stem plots:

2010-10-22 Thread Alan G Isaac
On 10/22/2010 12:39 PM, Stan West wrote: > markerline.set_zorder(markerline.get_zorder() + 0.1) Nice idea. Thanks, Alan -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Maarten Sneep
On Fri, 2010-10-22 at 11:12 -0500, Ryan May wrote: > On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck > > > If there are only 7 possible values of the data, which are > evenly-spaced, it should probably not go in and create more than 6 > bins as the default behavior. I know I can specify bin

Re: [Matplotlib-users] stem plots:

2010-10-22 Thread Stan West
> From: Alan G Isaac [mailto:ais...@american.edu] > Sent: Thursday, October 14, 2010 19:12 > > ax.stem(x, y, '-.') draws the stem second, > so that it is visible on top of the dot. > > Is this intentional? > (I think it looks better with the dot on top.) > How to reverse? I would usually place

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-22 Thread Gökhan Sever
On Fri, Oct 22, 2010 at 6:26 AM, Jae-Joon Lee wrote: > On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever wrote: >> How could I change the appearance of the legend symbol in this case? >> It auto-uses a patch object (rectangle in this case). >> I would like to get a straight line instead. > > You may

Re: [Matplotlib-users] Not seeing middle mouse button events

2010-10-22 Thread Stan West
> From: Brian J. Soher [mailto:bso...@briansoher.com] > Sent: Thursday, October 14, 2010 10:27 > > I'm using matplotlib 0.98.5.2, wxPython version 2.8-msw-unicode, on > Windows XP Professional x64 at work (and 32bit at home). At work I > have a plain old Dell 2 button mouse with a scroll wheel

Re: [Matplotlib-users] matplotlib.delauney with periodic boundary conditions

2010-10-22 Thread Robert Kern
On 10/22/10 6:28 AM, Matthew Matic wrote: > > I'm trying to get a delaunay triangulation of a set of points on the surface > of the torus. I'm using matplotlib.delaunay, but it seems to only give the > triangulation for a flat surface. Is there any way to tell it to take the > periodic boundary con

Re: [Matplotlib-users] matplotlib.delauney with periodic boundary conditions

2010-10-22 Thread Robert Kern
On 10/22/10 6:28 AM, Matthew Matic wrote: > > I'm trying to get a delaunay triangulation of a set of points on the surface > of the torus. I'm using matplotlib.delaunay, but it seems to only give the > triangulation for a flat surface. Is there any way to tell it to take the > periodic boundary con

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 9:40 AM, Christopher Fonnesbeck wrote: > On Oct 22, 2010, at 9:13 AM, Ryan May wrote: >> >> On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck >> wrote: >>> I notice that when the number of bins in a histogram is sparse, the spacing >>> between the bins can be irregu

Re: [Matplotlib-users] Too long tick labels

2010-10-22 Thread Gökhan Sever
On Fri, Oct 22, 2010 at 1:47 AM, Dmitry Vinokurov wrote: > Hello, > > When I plot graph with values 10^5 and more at y axis, the labels are > too long and run out of the picture borders. So I get "60" instead > of "160" at y axis or something like this. Tried to use > > majorFormatter

[Matplotlib-users] Plot Minor Tweaking

2010-10-22 Thread Lorenzo Isella
Dear All, Please consider the snippet at the end of the email. Admittedly, I am still quite cumbersome with the matplotlib pipeline (I am a bit unsure about how to manipulate objects and their properties). The snippet below produces two plots. I have some questions (1) for both plots: how do I add

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Christopher Fonnesbeck
On Oct 22, 2010, at 9:13 AM, Ryan May wrote: > > On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck > wrote: >> I notice that when the number of bins in a histogram is sparse, the spacing >> between the bins can be irregular. For example: >> >> http://cl.ly/7e0ad7039873d5446365 >> http://c

Re: [Matplotlib-users] range in the colorbar

2010-10-22 Thread Alexander Dietz
Hi Eric, thanks a lot, that was exactly I was looking for... Alex On Thu, Oct 21, 2010 at 20:23, Eric Firing wrote: > On 10/20/2010 11:41 PM, Alexander Dietz wrote: > > Hi, > > > > I am generating a scatter plot with a colorbar, and want to pass on the > > colorbar to some function to do some

Re: [Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Ryan May
On Fri, Oct 22, 2010 at 8:47 AM, Christopher Fonnesbeck wrote: > I notice that when the number of bins in a histogram is sparse, the spacing > between the bins can be irregular. For example: > > http://cl.ly/7e0ad7039873d5446365 > http://cl.ly/c7cb20b567722928ac3c > > Is there a way of normalizin

[Matplotlib-users] inconsistent spacing in histograms

2010-10-22 Thread Christopher Fonnesbeck
I notice that when the number of bins in a histogram is sparse, the spacing between the bins can be irregular. For example: http://cl.ly/7e0ad7039873d5446365 http://cl.ly/c7cb20b567722928ac3c Is there a way of normalizing this, and better, can the default behavior result in something more consi

[Matplotlib-users] matplotlib.delauney with periodic boundary conditions

2010-10-22 Thread Matthew Matic
I'm trying to get a delaunay triangulation of a set of points on the surface of the torus. I'm using matplotlib.delaunay, but it seems to only give the triangulation for a flat surface. Is there any way to tell it to take the periodic boundary conditions into account, or alter the points I input s

Re: [Matplotlib-users] contour plot in semi-circle domain

2010-10-22 Thread Jae-Joon Lee
Kenshi, I'm sorry that I completely forgot about this issue. I just took a look and it seems to be due to a bug in clabel routine. The fix is easy and I'll commit it soon. Meanwhile, here is a work around. Basically, you need to draw a contour in "ax3", not in "aux_ax3". First of all, you can po

Re: [Matplotlib-users] Question about legend on histogram plot

2010-10-22 Thread Jae-Joon Lee
On Thu, Oct 21, 2010 at 4:31 AM, Gökhan Sever wrote: > How could I change the appearance of the legend symbol in this case? > It auto-uses a patch object (rectangle in this case). > I would like to get a straight line instead. You may use proxy artists. http://matplotlib.sourceforge.net/users/le