[Matplotlib-users] Interactive with the plot, moving marker, etc

2009-07-15 Thread Northenlight
Hi, Is there a way to interactive with the plot? For example, draw a vertical marker on the plot, let user move the marker and shows x, y values of the point where the curve intersect with the marker? Thanks, J -- View this message in context: http://www.nabble.com/Interactive-with-the-plo

Re: [Matplotlib-users] Interactive with the plot, moving marker, etc

2009-07-15 Thread John Hunter
On Tue, Jul 14, 2009 at 12:48 PM, Northenlight wrote: > > Hi, > > Is there a way to interactive with the plot? For example, draw a vertical > marker on the plot, let user move the marker and shows x, y values of the > point where the curve intersect with the marker? See these examples and tutoria

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-15 Thread John [H2O]
I also recently posted an example that may do something similar to what you are after, you can have a look here: http://www.nabble.com/contribute-to-gallery--Or%2C-just-advice-on-changing-colors-automagically-td24419101.html#a24427781 per freem-2 wrote: > > Hi all, > > i would like to set

[Matplotlib-users] plotting problems in qt4agg backend on Mac OS X

2009-07-15 Thread Jan Strube
Hi matplotters, I am trying to create an image and save it to pdf. Unfortunately, the result is much different if I save it to pdf, eps or png. I am on Mac OS X 10.4, using qt4 4.5.0 and the qt4agg backend (but the problems also occur with -dmacosx). The plot I am trying to make is an overl

Re: [Matplotlib-users] The vertical part of y error bars. Where are they?

2009-07-15 Thread Jae-Joon Lee
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=errorbar#matplotlib.pyplot.errorbar As described in the doc, the errorbar command creates lines and line collections, where the errorbars are created as line collections. Axes.collections contains the list of collection artist that

Re: [Matplotlib-users] plot a line with an arrow

2009-07-15 Thread Jae-Joon Lee
Check the gallery where a few example shows you how to draw arrows. My recommendation is to use "annotate" with empty string. e.g., annotate("", (1,2), xytext=(5,2), arrowprops=dict(fc="b")) http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=annotate#matplotlib.pyplot.annotate How

Re: [Matplotlib-users] Creating new type of plot

2009-07-15 Thread Jae-Joon Lee
On Mon, Jul 13, 2009 at 4:56 PM, Uri Laserson wrote: > Hi everyone, > > I am trying to create some brand new types of plots for a unique data set > that I have.  My question basically boils down to getting some advice on > what is the proper way to set up a function that will act like one of the >

[Matplotlib-users] invisible plot

2009-07-15 Thread Dr. Phillip M. Feldman
I'm a newbie to matplotlib. When I try to generate a simple plot, nothing happens. Any advice will be appreciated. Here's my code: from numpy import * from matplotlib import * x= arange(0,10.,0.1) y= x**1.5 - 0.25*x**2 pyplot.figure(figsize=(9, 6), dpi=120) pyplot.plot(x, y) -- View this me

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Ryan May
On Wed, Jul 15, 2009 at 4:58 PM, Dr. Phillip M. Feldman < pfeld...@verizon.net> wrote: > > I'm a newbie to matplotlib. When I try to generate a simple plot, nothing > happens. Any advice will be appreciated. Here's my code: > > from numpy import * > from matplotlib import * > > x= arange(0,10.,

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Robert Kern
On 2009-07-15 16:58, Dr. Phillip M. Feldman wrote: > I'm a newbie to matplotlib. When I try to generate a simple plot, nothing > happens. Any advice will be appreciated. Here's my code: > > from numpy import * > from matplotlib import * > > x= arange(0,10.,0.1) > y= x**1.5 - 0.25*x**2 > > pyplot

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Eric Firing
Dr. Phillip M. Feldman wrote: > I'm a newbie to matplotlib. When I try to generate a simple plot, nothing > happens. Any advice will be appreciated. Here's my code: > > from numpy import * > from matplotlib import * > > x= arange(0,10.,0.1) > y= x**1.5 - 0.25*x**2 > > pyplot.figure(figsize=(9

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Alan G Isaac
On 7/15/2009 5:58 PM Dr. Phillip M. Feldman apparently wrote: > I'm a newbie to matplotlib. When I try to generate a simple plot, nothing > happens. Any advice will be appreciated. Here's my code: > from numpy import * > from matplotlib import * > x= arange(0,10.,0.1) > y= x**1.5 - 0.25*x**

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Damon McDougall
Hi Phillip, Don't you need to call pyplot.show() at the end of the script? Regards, --Damon On 15 Jul 2009, at 22:58, Dr. Phillip M. Feldman wrote: > > I'm a newbie to matplotlib. When I try to generate a simple plot, > nothing > happens. Any advice will be appreciated. Here's my code: >

[Matplotlib-users] setting axis limits

2009-07-15 Thread Dr. Phillip M. Feldman
One can set axis limits via a command like the following: pyplot.axis([0 10 0 1]) But, there are situations where I'd like to set limits only for the y-axis, leaving the x-axis alone, or vice versa, or set a lower limit for the y-axis but leave the upper limit alone. Is there a clean way of doin

Re: [Matplotlib-users] setting axis limits

2009-07-15 Thread Pierre GM
On Jul 15, 2009, at 6:54 PM, Dr. Phillip M. Feldman wrote: > leaving the x-axis alone, or vice versa, or set a lower limit for > the y-axis > but leave the upper limit alone. Is there a clean way of doing > this? (I > have not been able to find anything relevant in the Matplotlib Users > Gu

Re: [Matplotlib-users] setting axis limits

2009-07-15 Thread Chloe Lewis
Experimenting in ipython (run ipython --pylab) is excellent for this; not only do you see results promptly, but help(pylab) lists, for instance, the functions xlim and ylim, with which you can get and set any of the four axis limits. &C On Jul 15, 2009, at 3:54 PM, Dr. Phillip M. Feldman w

Re: [Matplotlib-users] The vertical part of y error bars. Where are they?

2009-07-15 Thread Jack Sankey
Thanks JJ, I'll give that a shot. The problem with making them invisible is they take up a lot of unnecessary overhead in my vector graphics program that already runs ridicuslow :) On Wed, Jul 15, 2009 at 11:58 AM, Jae-Joon Lee wrote: > > http://matplotlib.sourceforge.net/api/pyplot_api.html?hi