Re: [Matplotlib-users] Add some explanatory text to the legend

2012-01-25 Thread Ethan Swint
On 1/25/2012 1:32 PM, Neal Becker wrote: > I have a legend that is going to have some abbreviations to compactly indicate > the properties of different lines in a graph. I'd like to add a little 'key' > to > explain what the notation means. Any suggestion? I was thinking of the annotate functi

Re: [Matplotlib-users] Eye patterns (Heat plot?)

2012-01-23 Thread Ethan Swint
On 1/23/2012 1:55 PM, Russ Dill wrote: > On Mon, Jan 23, 2012 at 11:17 AM, Stan West wrote: >>> From: Russ Dill [mailto:russ.d...@gmail.com] >>> Sent: Saturday, January 21, 2012 16:31 >>> >>> I'm using matplotlib from pylab to generate eye patterns for signal >>> simulations. >> ... >> >>> Is th

Re: [Matplotlib-users] MQMQ: How to adjust the size and scale of the x-y axis of the graph.Thanks.

2012-01-23 Thread Ethan Swint
On 1/20/2012 5:31 PM, MQMQ wrote: > Dear all, > > Could you guys share your experience on: > How to adjust the size and scale of the x-y axis of the plot (e.g. how to > resize the "0 1 2" on x axis ), Thanks? > And special commands in matplotlib? > > Thank you so much in advanced. > MQMQ You can ch

Re: [Matplotlib-users] xlabel cut off in the example embeding_in_qt4.py

2012-01-21 Thread Ethan Swint
On 1/21/2012 9:12 PM, Forest Yang wrote: > Hi, > > I am embedding a plot in Qt4 application, following the matplotlib > example embeding_in_qt4.py, however I found that the xlabel is cut > off, although the label shows more if I resize the window, still it is > not the right one. Is it because

Re: [Matplotlib-users] xlabel cut off in the example embeding_in_qt4.py

2012-01-21 Thread Ethan Swint
On 1/21/2012 9:12 PM, Forest Yang wrote: > Hi, > > I am embedding a plot in Qt4 application, following the matplotlib > example embeding_in_qt4.py, however I found that the xlabel is cut > off, although the label shows more if I resize the window, still it is > not the right one. Is it becaus

Re: [Matplotlib-users] How to tell savefig() image size in pixels

2012-01-17 Thread Ethan Swint
It's a bit of a pain: xPix = 900 yPix = 600 xSize = 3 #inches ySize = xSize/xPix*yPix gcf().set_inches_size(xSize,ySize) gcf().savefig('test.png',dpi=xSize/xPix) You can also chance pyplot.rcParams - it's a dictionary of default values. On 1/17/2012 12:10 PM, Keith Hughitt wrote: I'd also be i

[Matplotlib-users] Bug in griddata

2012-01-10 Thread Ethan Swint
Hi- I was working off of the example listed at http://matplotlib.sourceforge.net/examples/pylab_examples/griddata_demo.html, adapting it to my own data, and encountered the following error on MLAB 1.1.0, Python 2.7.2: from numpy.random import uniform, seed from matplotlib.mlab import griddata

Re: [Matplotlib-users] exact figure size frustration

2012-01-08 Thread Ethan Swint
On 1/8/2012 2:29 AM, Eric Firing wrote: > On 01/07/2012 07:01 PM, Ethan Swint wrote: >> Hi, list- >> >> This question has been asked before, but all of my search results don't >> address my problem: >> >> fig = figure(1, figsize=(3.25, 3)) >> pl

[Matplotlib-users] exact figure size frustration

2012-01-07 Thread Ethan Swint
Hi, list- This question has been asked before, but all of my search results don't address my problem: fig = figure(1, figsize=(3.25, 3)) plot([0,1,5,2,9]) title('title') xlabel('xAxis') ylabel('yAxis') fig.savefig('test.png',dpi=600) The resulting figure is 2040x1890 pixels, or 3.4"x3.15", and

Re: [Matplotlib-users] Noob assist: trailing value graph

2010-08-19 Thread Ethan Swint
Aha! I knew it must be that simple, I just yet hadn't hit on step. Thanks, Ethan On 08/19/2010 09:14 PM, Ryan May wrote: > On Thu, Aug 19, 2010 at 5:03 PM, Ethan Swint wrote: > >> Hi- >> >> I'm trying to plot an XY line graph with discrete XY pairs in

[Matplotlib-users] Noob assist: trailing value graph

2010-08-19 Thread Ethan Swint
Hi- I'm trying to plot an XY line graph with discrete XY pairs in it with a step response between each pair. In other words, on the range [X1,X2), it should have a horizontal line at Y1, at X2, the line goes vertical from Y1 to Y2, then on the range [X2,X3), it should have a horizontal line a