Re: [Matplotlib-users] changing appearance of legend line entries

2009-07-19 Thread Jae-Joon Lee
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=legend#matplotlib.pyplot.legend numpoints=1 is what you want. For font size and etc, check the similar question posted a few days ago. http://www.nabble.com/formatting-help-with-legend-for-stacked-bar-graph-with-many-categories-td24

Re: [Matplotlib-users] possible bug with linestyle='steps'

2009-07-19 Thread John Hunter
On Fri, Jul 17, 2009 at 5:15 PM, Paul Ray wrote: > > > Ryan Krauss-2 wrote: >> >> RTFM: >> >> plot(t,y, drawstyle='steps-post') >> >> > > Actually, 'steps-pre' (which is the default) and 'steps-post' seem to have > swapped definitions. > Here is what the docs say: >    *where*: [ 'pre' | 'post' | '

Re: [Matplotlib-users] plotting years and months

2009-07-19 Thread John Hunter
On Sun, Jul 19, 2009 at 7:03 AM, willemmerson wrote: > > This is such a noob question but I can't seem to find the answer anywhere. I > have a certain amount of something per month which I want to display on the > y axis, I want the x axis to show years and months, i.e. it runs from 2003 > to 2009.

[Matplotlib-users] griddata returns nan

2009-07-19 Thread plankton
Greetings all, I rotate a vector field and than I tried to interpolate it to a new grid using griddata. CODE: x_grid_unique = unique(x_grid) y_grid_unique = unique(y_grid) x_meshgrid, y_meshgrid = meshgrid(x_grid_unique, y_grid_unique) x_rot_meshgrid = reshap

Re: [Matplotlib-users] possible bug with linestyle='steps'

2009-07-19 Thread Paul Ray
Ryan Krauss-2 wrote: > > RTFM: > > plot(t,y, drawstyle='steps-post') > > Actually, 'steps-pre' (which is the default) and 'steps-post' seem to have swapped definitions. Here is what the docs say: *where*: [ 'pre' | 'post' | 'mid' ] If 'pre', the interval from x[i] to x[i+1] has le

[Matplotlib-users] plotting years and months

2009-07-19 Thread willemmerson
This is such a noob question but I can't seem to find the answer anywhere. I have a certain amount of something per month which I want to display on the y axis, I want the x axis to show years and months, i.e. it runs from 2003 to 2009. I have no problem with the python side, just the plotting sid

Re: [Matplotlib-users] Matplotlib+Qt. Problem with plot resizing

2009-07-19 Thread Sandro Tosi
2009/7/19 Alexander Bruy : > > I create a small example, see attachment. no attachment :) -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi --

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-19 Thread Lukas Hetzenecker
Hello, I've tried to resize the QTabWidget, I've searched for examples on the internet, added a QTabWidget and used this as the Mainwindows central widget - but exactly the same happened. It works if I replace the FigureCanvas with a Qt Widget - for example a text edit or a QWebView. Am Sonnt

Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-19 Thread projetmbc
Lukas Hetzenecker a écrit : > I tried to embed a Matplotlib FigureCanvas into a QTabWidget. > But at the first start of my script - the main.py in the attatched example - > the widget in the Tab is incorrectly sized. > If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I > p

Re: [Matplotlib-users] Matplotlib+Qt. Problem with plot resizing

2009-07-19 Thread Alexander Bruy
2009/17/07 Darren Dale wrote: > > Please post a short, complete, self-contained script demonstrating the > problem. > I create a small example, see attachment. There is a simple dialog with QWidget, at which matplotlib plot is drawn. When dialog resized the plot don't change it's size. I'm wou

Re: [Matplotlib-users] Russian labels without LaTeX

2009-07-19 Thread Alexander Bruy
> I'm not an expert on this issue, and I never used Russian language. > But here is my experience with unicode in matplotlib. > Many thanks for your answer, Jae-Joon Lee! It's work great. Thanks in advance! Regards, Alexander Bruy -- реклама --