Re: [Matplotlib-users] Arrows that shimmy

2008-01-10 Thread Norman Davis
On Jan 9, 2008 11:53 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Jan 9, 2008 9:11 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > > > You could comment out these two lines: > > > > x = (int)x + 0.5; > > y = (int)y + 0.5; > > > > and see if that corrects your wiggliness problem, ju

[Matplotlib-users] Pixel coordinates and plot_date()

2008-01-10 Thread Erik Cederstrand
Hi! I'm trying to make a clickable plot_date() plot (using the Pylons framework). What I need is the pixel coordinates of the data points I give to plot_date(), but the trans.seq_x_y() function doesn't like Datetime: >> xcoords, ycoords = trans.seq_x_y(x, y) float() argument must be a

Re: [Matplotlib-users] Can't run matplotlib without "tk" backend on windows?

2008-01-10 Thread Darren Dale
On Wednesday 09 January 2008 10:15:54 am Francesco Pretto wrote: > 2008/1/9, Darren Dale <[EMAIL PROTECTED]>: > > setup.py attempts to select the appropriate backend for you, based on > > what backends were available at build time. That selection is written > > into the default matplotlibrc file, w

Re: [Matplotlib-users] screen colors invert with matplotlib

2008-01-10 Thread Dan Karipides
Just to follow up: Mike was indeed correct. I never found the qt4 demos but I did find some simple pyqt4 sample code. http://zetcode.com/tutorials/pyqt4/firstprograms/ The first example on this page causes the same problem. It really isn't a color inversion. It seems to be more of a messed up

Re: [Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Michael Droettboom
You're right. It's a bug. The parser (when it was re-written) was changed to not accept '[' as a literal symbol, since it is meaningful in certain situations. This turned out to be overly cautious. This is fixed in svn r4854. Manuel Metz wrote: > Michael Droettboom wrote: >> You need to esc

Re: [Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Manuel Metz
Michael Droettboom wrote: > You need to escape the [: > >mpl_pp.xlabel(r"$\[$") > > [] and {} have special meanings in math syntax, so to use them > "literally", they need to be escaped. Really? Note that Matthias had text.usetex=False. I tried various configurations: text.usetex=True

Re: [Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Michael Droettboom
You need to escape the [: mpl_pp.xlabel(r"$\[$") [] and {} have special meanings in math syntax, so to use them "literally", they need to be escaped. Cheers, Mike Matthias Michler wrote: > Hello list, > > the little example below leads to an error on my system (output is attached). > I use

[Matplotlib-users] rectangular bracket in mathtext

2008-01-10 Thread Matthias Michler
Hello list, the little example below leads to an error on my system (output is attached). I used this some time ago and it worked. Now I'm using the release 0.91.2. Is there a reason to use rectangular brackets not in mathtext? (same problem occur with '{' for me.) best regards and thanks in adva

[Matplotlib-users] show() not returning when figure closed if function called from another module

2008-01-10 Thread Henry Proudhon
Hi Matplotlib users, I'm experiencing some problems when closing a figure (I'm using matplotlib 0.91.0). the function is working correctly when invoked inside the module where it is defined: from pylab import * def test(): t = arange(0.0, 1.0+0.01, 0.01) s = cos(2*2*pi*t) plot(t, s,

Re: [Matplotlib-users] problem with ticker and mathtext

2008-01-10 Thread Michael Droettboom
Sorry I didn't notice this right away. This is actually a bug. I made a change so the offset (in scientific notation) is written in the same font as the other tick values, which unfortunately broke with the default fonts. I have attached a patch against 0.91.2. This will make it into the ne

Re: [Matplotlib-users] [matplotlib] gscatter

2008-01-10 Thread Manuel Metz
[EMAIL PROTECTED] wrote: > matalb has a gscatter command that work like this" > > GSCATTER(X,Y,G) creates a scatter plot of the vectors X and Y > grouped by G. Points with the same value of G are shown with > the same color and marker. G is a grouping variable defined as > a vector,

Re: [Matplotlib-users] [matplotlib] gscatter

2008-01-10 Thread Manuel Metz
[EMAIL PROTECTED] wrote: > Thanks ! i didn't know that. > Do you know also if it is possible to have something similar to a scatter > group ? Sorry, but what do you mean by "scatter group" ? > Thanks > Giorgio - Check out

Re: [Matplotlib-users] problem with ticker and mathtext

2008-01-10 Thread Matthias Michler
Hello Mike, Hello list, thanks for your reply. On Wednesday 09 January 2008 17:58, Michael Droettboom wrote: > The default mathtext font should have the "times" symbol. Are you > making any other changes that would affect the selection of mathtext > fonts? I don't think that I changed anything

Re: [Matplotlib-users] [matplotlib] gscatter

2008-01-10 Thread Manuel Metz
Hi, you are limited to 10 "named" symbols. But you can use much more symbols with scatter !!! Have a look at examples/scatter_star_symbols.py. You can use: pylab.scatter(x,y,marker=(5,0)) produces a 5-sided regular polygon. pylab.scatter(x,y,marker=(5,1)) produces a starlike polygon

[Matplotlib-users] [matplotlib] gscatter

2008-01-10 Thread Giorgio . Luciano
I was wondering if there exist a functino like Matlab (TM) gscatter in matplot lib but I coulnd't find one. I also seen that in matplot lib we are "limited" to 10 symbols in scatter while in MT we have 13 (and I have to plot 12 :))) is it possible to implement the new function (gscatter) and othe