[Matplotlib-users] Function in edit box

2010-03-10 Thread David Arnold
All, Anyone have a small (short) example using Matplotlib and possibly wxPython where the user enters a function in an edit box and Matplotlib responds by sketching the graph over a domain? David. -- Download Intel® Par

[Matplotlib-users] legend: dash pattern length

2010-03-10 Thread Alan G Isaac
I need a longer sample of the dash pattern in the legend. Possible? (numpoints does not work.) Thanks, Alan Isaac -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs

[Matplotlib-users] turn off tick reflection

2010-03-10 Thread Matthew MacLeod
Dear matplotlib users, I'm trying to make a plot that shares the x axis, but that have two different y scales. I can do this, almost, I say almost because I don't know how to turn off the reflection of my y ticks, so they are reflected and obscure the scale on the other side, if the scales aren

Re: [Matplotlib-users] Making tick marks of a secondary axis line up with the primary axis

2010-03-10 Thread Alex S
Ah, that worked fine. Thanks a lot. Alex -- View this message in context: http://old.nabble.com/Making-tick-marks-of-a-secondary-axis-line-up-with-the-primary-axis-tp27854166p27855043.html Sent from the matplotlib - users mailing list archive at Nabble.com. ---

Re: [Matplotlib-users] Making tick marks of a secondary axis line up with the primary axis

2010-03-10 Thread PHobson
> -Original Message- > From: Alex S [mailto:schmitt.happ...@gmail.com] > Hi there, > I'm trying to make a plot with two y axes. I'm able to do that no > problem, > but what I'd really like to do now is make the tick marks line up for > them > both so that they both use the same grid. Is

Re: [Matplotlib-users] plot a lambda function?

2010-03-10 Thread Roban Hultman Kramer
How about this (though it is getting a little clunky): plot(*transpose(map(lambda x:(x,sin(x**2)/x**3), arange(3,6, 0.01 On Wed, Mar 10, 2010 at 7:57 PM, Chloe Lewis wrote: > ...although > >  >>plot(map(lambda x:x**2, range(5,15))) > > probably doesn't do exactly what you want; is the

Re: [Matplotlib-users] plot a lambda function?

2010-03-10 Thread Chloe Lewis
...although >>plot(map(lambda x:x**2, range(5,15))) probably doesn't do exactly what you want; is the idea that >>plot(range(5,15),lambda x:x**2) #DOESN'T WORK should automatically work like >>plot(range(5,15), map(lambda x:x**2, range(5,15))) by recognizing that the second argument is a f

Re: [Matplotlib-users] plot a lambda function?

2010-03-10 Thread Chloe Lewis
You'd always have to specify the domain, so plot(map(lambda x:x**2, range(1,10))) shouldn't be much longer than the minimal command. &C On Mar 10, 2010, at 10:12 AM, max ulidtko wrote: > Hi. > > Is it possible to plot arbitrary lambda function with matplotlib? > Say, if i have f = lambda x:

[Matplotlib-users] Making tick marks of a secondary axis line up with the primary axis

2010-03-10 Thread Alex S
Hi there, I'm trying to make a plot with two y axes. I'm able to do that no problem, but what I'd really like to do now is make the tick marks line up for them both so that they both use the same grid. Is there a simple way to do this? Basically, I want to force the number of tick marks on the

Re: [Matplotlib-users] Making an Axis Label like a legend

2010-03-10 Thread Alex S
Ah, perfect, I wasn't seeing the labels when I was calling it with ax because I was still using .5, .5 for the location and that was off the screen. Thanks a lot! Alex Matthias Michler wrote: > > On Tuesday 09 March 2010 21:10:49 Alex S wrote: >> Hmm I think I could do this with TextWithDash, b

Re: [Matplotlib-users] GTK+ config on Fedora 12.... change in filesystem structure?

2010-03-10 Thread Johann Cohen-Tanugi
I will go to bed early tonight disregard this thread, wrong version of matplotlib anyway. things are now ok. Johann On 03/10/2010 06:45 PM, Johann Cohen-Tanugi wrote: > Hi there, I am not sure whether I am the only one to experience that but > on my new FEDORA 12 box GTK+ is shipped with

[Matplotlib-users] plot a lambda function?

2010-03-10 Thread max ulidtko
Hi. Is it possible to plot arbitrary lambda function with matplotlib? Say, if i have f = lambda x: x*sin(x), can i just plot it without building argument-value arrays? It would be a very convenient and useful feature. -- Sincerely, max ulidtko

[Matplotlib-users] GTK+ config on Fedora 12.... change in filesystem structure?

2010-03-10 Thread Johann Cohen-Tanugi
Hi there, I am not sure whether I am the only one to experience that but on my new FEDORA 12 box GTK+ is shipped with the following structure for the headers : /usr/include/gtk-1.2/gtk/gtk.h This does not seem to be expected by matplotlib setup.cfg , or am I missing something? thanks, Johann -

Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2010-03-10 Thread Anton Vasilescu
You're right, the lons was getting overwritten! Thanks again for the help! Anton From: Jeff Whitaker To: Anton Vasilescu Cc: matplotlib-users@lists.sourceforge.net Sent: Wed, March 10, 2010 8:57:16 AM Subject: Re: [Matplotlib-users] shiftgrid 'cyclic point no

Re: [Matplotlib-users] shiftgrid 'cyclic point not included' error

2010-03-10 Thread Jeff Whitaker
Anton Vasilescu wrote: > Hi Jeff, > > Thank you for looking at the code for me! It works perfect for the > first image but when it tries to do the second it errors out saying: > "lon0 outside of range of lonsin". Any idea why is that happening? Is > it happening for you too? > > Thanks, > Anton

Re: [Matplotlib-users] grey scale line plots

2010-03-10 Thread Chloe Lewis
> [...] I deduce from your approach that there is nothing > built in. I am surprised [...] When you mentioned it, so was I. From axes.py: def set_default_color_cycle(clist): """ Change the default cycle of colors that will be used by the plot command. This must be called

[Matplotlib-users] Can't show grid on subplotzero???

2010-03-10 Thread Pribadi, Krishna
I was running this example, but would like to show the grid. For some reason, the plt.grid("on") does not work. Any thoughts? http://matplotlib.sourceforge.net/examples/axes_grid/simple_axisline2.html Thanks, Krishna Adrianto Pribadi Test Engineer Desk (TTF): 256.480.4450 Cell: 412.401.1477 Harl

Re: [Matplotlib-users] Doc suggestion

2010-03-10 Thread Michael Droettboom
Thanks. That's a good suggestion. It's been applied to SVN, and will make it on to the website the next time the website is updated. Mike David Arnold wrote: > All, > > The linebuilder program on: > http://matplotlib.sourceforge.net/users/event_handling.html > > Needs two extra lines, one at

Re: [Matplotlib-users] grey scale line plots

2010-03-10 Thread Alan G Isaac
> On Mar 9, 2010, at 9 Mar, 1:52 PM, Alan G Isaac wrote: > > I need a figure containing color line plots to > > be changed to grayscale, cycling through line > > styles instead of colors. How? On 3/9/2010 10:45 PM, Chloe Lewis wrote: > Here's a skeleton, for a series of lines that get darker an

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-10 Thread Ian Thomas
Chris Barker wrote: > I think it would be great to have in MPL. > > What code are you using for the triangulation? Does it do constrained > delauney? My code only does the contouring; you have to input the triangulation. In the examples included with the code I used matplotlib.delaunay to do the