Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread butterw
bevan j wrote: > > Sorry if it has already been reported I searched in the bug reports for > qt4agg and didn't find anything. Although I may have been looking in the > wrong place. > I have also noticed that editing some parameters (or pressing apply > without any changes) alters others. For i

Re: [Matplotlib-users] "asynchronous" plots?

2010-09-20 Thread John Salvatier
Thanks! This was helpful. On Mon, Sep 20, 2010 at 5:43 PM, Benjamin Root wrote: > On Mon, Sep 20, 2010 at 5:01 PM, John Salvatier > wrote: > >> Hello, >> >> Is there a way to do "asynchronous" plots in matplotlib? By asynchronous I >> mean plots that simply spawn a new process and do not stop t

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Ryan May
On Mon, Sep 20, 2010 at 8:14 PM, Brian Blais wrote: > sure, but that take more effort, and I don't really care about a slow down, > because most of my time is spent in the busy loop.  I do > care about it displaying *at all*, which is the problem.  I am familiar with > the efficient way of anima

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 8:14 PM, Brian Blais wrote: > On Sep 20, 2010, at 7:43 PM, Benjamin Root wrote: > > > On Mon, Sep 20, 2010 at 5:12 PM, Brian Blais wrote: > > > I am trying to do some simple calculations in a loop, and draw a plot > periodically within the loop, and the drawing is not upd

Re: [Matplotlib-users] Sigmoid Curve Fitting

2010-09-20 Thread Chris Spencer
Thank you. I'll try investigating Scipy further. I've already tried applying some least-squares code for Numpy (http://pingswept.org/2009/01/24/least-squares-polynomial-fitting-in-python/) to my sigmoid data, but it only seems to fit parabolas. I had already encountered zunzun.com while Googling t

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Brian Blais
On Sep 20, 2010, at 7:43 PM, Benjamin Root wrote: > On Mon, Sep 20, 2010 at 5:12 PM, Brian Blais wrote: > I am trying to do some simple calculations in a loop, and draw a plot > periodically within the loop, and the drawing is not updating. I'm using the > Enthought Python Distribution which

Re: [Matplotlib-users] "asynchronous" plots?

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 5:01 PM, John Salvatier wrote: > Hello, > > Is there a way to do "asynchronous" plots in matplotlib? By asynchronous I > mean plots that simply spawn a new process and do not stop the program while > the plot is visible? For example, I would like to be able to run a script

Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 6:44 PM, bevan j wrote: > > > Benjamin Root-2 wrote: > > > > On Sun, Sep 19, 2010 at 5:23 PM, bevan j wrote: > > > >>selindex = value.pop(0) > >> AttributeError: 'tuple' object has no attribute 'pop' > >> > > > > Didn't we just have a bug report/fix for this one? > >

Re: [Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 5:12 PM, Brian Blais wrote: > Hello, > > I am trying to do some simple calculations in a loop, and draw a plot > periodically within the loop, and the drawing is not updating. I'm using > the Enthought Python Distribution which is using Matplotlib 0.99.3 with > python 2.6

Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread bevan j
Benjamin Root-2 wrote: > > On Sun, Sep 19, 2010 at 5:23 PM, bevan j wrote: > >>selindex = value.pop(0) >> AttributeError: 'tuple' object has no attribute 'pop' >> > > Didn't we just have a bug report/fix for this one? > > Sorry if it has already been reported I searched in the bug repor

[Matplotlib-users] plot not updating in snow leopard

2010-09-20 Thread Brian Blais
Hello, I am trying to do some simple calculations in a loop, and draw a plot periodically within the loop, and the drawing is not updating. I'm using the Enthought Python Distribution which is using Matplotlib 0.99.3 with python 2.6.5 on Snow Leopard, OSX 10.6.4, and am running it in ipython w

Re: [Matplotlib-users] Sigmoid Curve Fitting

2010-09-20 Thread Gökhan Sever
On Mon, Sep 20, 2010 at 3:36 PM, Chris Spencer wrote: > Hi, > > Does Matplotlib/Numpy/Scipy contain the ability to fit a sigmoid curve > to a set of data points? > You could also experiment at zunzun.com. Choose 2D sigmoidal from the 2D function scroll list. -- Gökhan -

Re: [Matplotlib-users] Sigmoid Curve Fitting

2010-09-20 Thread Gökhan Sever
On Mon, Sep 20, 2010 at 3:36 PM, Chris Spencer wrote: > Hi, > > Does Matplotlib/Numpy/Scipy contain the ability to fit a sigmoid curve > to a set of data points? > > Regards, > Chris > I am very curious to know how this is done. I have seen in many Cloud Condensation Nuclei (CCN) counter calibra

[Matplotlib-users] "asynchronous" plots?

2010-09-20 Thread John Salvatier
Hello, Is there a way to do "asynchronous" plots in matplotlib? By asynchronous I mean plots that simply spawn a new process and do not stop the program while the plot is visible? For example, I would like to be able to run a script that plots something and have the program end with the plot still

Re: [Matplotlib-users] Sigmoid Curve Fitting

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 3:36 PM, Chris Spencer wrote: > Hi, > > Does Matplotlib/Numpy/Scipy contain the ability to fit a sigmoid curve > to a set of data points? > > Regards, > Chris > > That question would probably be better asked on the scipy-users list. I believe there is something for that,

[Matplotlib-users] Sigmoid Curve Fitting

2010-09-20 Thread Chris Spencer
Hi, Does Matplotlib/Numpy/Scipy contain the ability to fit a sigmoid curve to a set of data points? Regards, Chris -- Start uncovering the many advantages of virtual appliances and start using them to simplify applicatio

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Jouni K . Seppänen
Eli Brosh writes: > I need to prepare two versions of figures: color and BW(Black&White). > Is there an easy way to produce just the colored version and than use some > command or script to turn it to BW or grayscale? For some really simple plots, and for pdf output only, you can try rc('pdf',

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 1:01 PM, Eli Brosh wrote: > OK, > This worked for me for turning the figure to black and white: > After saving the figure in colors I write > > fig=gcf() > > for o in fig.findobj(matplotlib.lines.Line2D): > o.set_color('k') > > for o in fig.findobj(matplotlib.text.Text

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Eli Brosh
OK, This worked for me for turning the figure to black and white: After saving the figure in colors I write fig=gcf() for o in fig.findobj(matplotlib.lines.Line2D): o.set_color('k') for o in fig.findobj(matplotlib.text.Text): o.set_color('k') Than I save it as black and white. It is be

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 11:13 AM, Eli Brosh wrote: > Hello Friedrich, > I tried your second solution: > > figure = matplotlib.figure.Figure() > ... do plotting ... > ... save as colour ... > figure.set_gray(True) > ... save as b/w ... > > but it gives me an error message: > fig.set_gray(True) >

Re: [Matplotlib-users] textured bar-chart

2010-09-20 Thread Eli Brosh
Thank you John and Ryan, I like the hatching solution very much. Eli On Mon, Sep 20, 2010 at 3:48 PM, John Hunter wrote: > On Mon, Sep 20, 2010 at 8:43 AM, Ryan May wrote: > > > It's not what one would call a turn-key solution, but it is possible: > > > > > http://matplotlib.sourceforge.net/ex

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Eli Brosh
Hello Friedrich, I tried your second solution: figure = matplotlib.figure.Figure() ... do plotting ... ... save as colour ... figure.set_gray(True) ... save as b/w ... but it gives me an error message: fig.set_gray(True) AttributeError: 'Figure' object has no attribute 'set_gray' I got the same

Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread Benjamin Root
On Sun, Sep 19, 2010 at 5:23 PM, bevan j wrote: >selindex = value.pop(0) > AttributeError: 'tuple' object has no attribute 'pop' > Didn't we just have a bug report/fix for this one? Ben Root -- Start uncovering the

Re: [Matplotlib-users] Adding a Legend

2010-09-20 Thread Joe Kington
On Sun, Sep 19, 2010 at 10:40 PM, Kelson Zawack wrote: > Is there a way to put the legend for a graph inside the margin instead > of on the graph, in other words to put the legend where excel would? Look into either "figlegend

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Benjamin Root
On Mon, Sep 20, 2010 at 9:22 AM, Jonathan Slavin wrote: > A non-matplotlib way to do this is to use ImageMagick or GraphicsMagick: > gm convert -colorspace Gray color_image.png bw_image.png > in GraphicsMagick or using the ImageMagick routine "convert": > convert -colorspace Gray color_image.png b

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Jonathan Slavin
A non-matplotlib way to do this is to use ImageMagick or GraphicsMagick: gm convert -colorspace Gray color_image.png bw_image.png in GraphicsMagick or using the ImageMagick routine "convert": convert -colorspace Gray color_image.png bw_image.png I think it works on a wide variety of image formats.

Re: [Matplotlib-users] textured bar-chart

2010-09-20 Thread John Hunter
On Mon, Sep 20, 2010 at 8:43 AM, Ryan May wrote: > It's not what one would call a turn-key solution, but it is possible: > > http://matplotlib.sourceforge.net/examples/pylab_examples/demo_ribbon_box.html There is also hatching http://matplotlib.sourceforge.net/examples/pylab_examples/hatch_de

Re: [Matplotlib-users] textured bar-chart

2010-09-20 Thread Ryan May
On Sun, Sep 19, 2010 at 11:32 PM, Eli Brosh wrote: > Hello, > I need to prepare a black&white bar chart with several sets of bars. > Now, I have white bars and black bars but I need more colorings that are > distinguishable in black&white. > Is it possible to make bars filled with some texture or

[Matplotlib-users] Adding a Legend

2010-09-20 Thread Kelson Zawack
Is there a way to put the legend for a graph inside the margin instead of on the graph, in other words to put the legend where excel would? I have a stacked bar graph with many categories and so the legend is vary large and there is little dead space on the graph. As a result if the legend

Re: [Matplotlib-users] convert figure from color to BW/grayscale

2010-09-20 Thread Friedrich Romstedt
2010/9/20 Eli Brosh : > Hello, > I need to prepare two versions of figures: color and BW(Black&White). > Is there an easy way to produce just the colored version and than use some > command or script to turn it to BW or grayscale? > I thought that converting from color to BW really means: "in all o

Re: [Matplotlib-users] Plotting 3D, Irregularly Triangulated Surfaces - An Example

2010-09-20 Thread Ian Thomas
On 17 September 2010 16:26, Simon S. Clift wrote: > I have a data set that is in the form of an irregular 2D grid with > associated values, one for each node. I would like to plot this as a > raised surface, with colours that indicate the z-value. Somehow I > didn't find just quite the example