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 it with a >> step response between each

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

2010-08-19 Thread Ryan May
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 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, t

[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

Re: [Matplotlib-users] grid lines at specific coordinates

2010-08-19 Thread Eric Firing
On 08/19/2010 01:20 PM, Benjamin Root wrote: > On Thu, Aug 19, 2010 at 5:05 PM, Bala subramanian > mailto:bala.biophys...@gmail.com>> wrote: > > Friends, > > I would like to place grid lines (precisely draw lines) at specific > (x,y) coordinates. If i am not wrong, grid() function will

Re: [Matplotlib-users] Installation of vers. 1.0.0

2010-08-19 Thread Nicholas Kinar
I have been unable to build/install Matplotlib 1.0.0 on a 64-bit Ubuntu 10.04 system for Python 2.6.5. The build process starts ok, but after sometime the following message *creating /usr/local/lib/python2.6/dist-packages/mpl_toolkits * is displayed and the build comes to a halt. I looked in

Re: [Matplotlib-users] grid lines at specific coordinates

2010-08-19 Thread Benjamin Root
On Thu, Aug 19, 2010 at 5:05 PM, Bala subramanian wrote: > Friends, > > I would like to place grid lines (precisely draw lines) at specific (x,y) > coordinates. If i am not wrong, grid() function will take only True/False > arguments. Someone kindly write me if there is any way to do this. > > T

[Matplotlib-users] grid lines at specific coordinates

2010-08-19 Thread Bala subramanian
Friends, I would like to place grid lines (precisely draw lines) at specific (x,y) coordinates. If i am not wrong, grid() function will take only True/False arguments. Someone kindly write me if there is any way to do this. Thanks, Bala ---

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Friedrich Romstedt
2010/8/19 Rob Schneider : > I'm sorry you took anything I said as "blame". Not intended that way. Just > stating that using figure() and close() resolved the issue.  As I look back > on the material I've used to learn how to use Matplotlib, they sometimes call > these functions and sometimes not

Re: [Matplotlib-users] polar plot

2010-08-19 Thread Friedrich Romstedt
2010/8/19 Michael Droettboom : > On 08/18/2010 06:03 PM, Friedrich Romstedt wrote: >> Is the attached issue with a plain polar axes already fixed?  I never >> encountered this before.  344 degrees happens to be 6.0 rad.  I'm on >> svn 8626. > > How are you creating that graph?  By default, polar pl

[Matplotlib-users] Installation of vers. 1.0.0

2010-08-19 Thread Virgil Stokes
I have been unable to build/install Matplotlib 1.0.0 on a 64-bit Ubuntu 10.04 system for Python 2.6.5. The build process starts ok, but after sometime the following message *creating /usr/local/lib/python2.6/dist-packages/mpl_toolkits * is displayed and the build comes to a halt. I looked in th

Re: [Matplotlib-users] Embedding matplotlib in wxPython embedded in wxGTK

2010-08-19 Thread Nicholas Kinar
> > Note that you can put a wx.Panel in a wx.Panel, which is what you may > want to do it your case. > > -Chris > > Hello Chris, Thank you for your response; I think this is what I would like to do. Once again, thank you. Nicholas -

Re: [Matplotlib-users] Embedding matplotlib in wxPython embedded in wxGTK

2010-08-19 Thread Christopher Barker
Nicholas Kinar wrote: > Chris, thank you very much for your response, and for the link. I've > taken a look at the wxMPL library and it looks extremely useful and > interesting. But how would I work with the class MyPanel(wx.Panel), and > embed wxMPL directly into MyPanel? Could you give an e

Re: [Matplotlib-users] Embedding matplotlib in wxPython embedded in wxGTK

2010-08-19 Thread Nicholas Kinar
On 10-08-19 10:08 AM, C M wrote: >> I've been following the sample code given in the wxPython distribution >> to embed a wxPython window in wxGTK. The following links to the >> wxPython SVN demonstrate this technique: >> >> http://svn.wxwidgets.org/viewvc/wx/wxPython/trunk/samples/embedded/embedde

Re: [Matplotlib-users] Embedding matplotlib in wxPython embedded in wxGTK

2010-08-19 Thread Nicholas Kinar
> As in embedding some wxPython in a C++ wxGTK program? > Yes, that is exactly what I am doing. > >> What I would like to do is embed >> matplotlib within a wxPanel of this wxPython script. >> > once you've got wxPython working, using MPL should be exactly t he same > as with a pu

Re: [Matplotlib-users] Embedding matplotlib in wxPython embedded in wxGTK

2010-08-19 Thread Christopher Barker
Nicholas Kinar wrote: > I've been following the sample code given in the wxPython distribution > to embed a wxPython window in wxGTK. As in embedding some wxPython in a C++ wxGTK program? > What I would like to do is embed > matplotlib within a wxPanel of this wxPython script. once you've go

[Matplotlib-users] Embedding matplotlib in wxPython embedded in wxGTK

2010-08-19 Thread Nicholas Kinar
Hello-- I've been following the sample code given in the wxPython distribution to embed a wxPython window in wxGTK. The following links to the wxPython SVN demonstrate this technique: http://svn.wxwidgets.org/viewvc/wx/wxPython/trunk/samples/embedded/embedded_sample.py?revision=47031&view=mark

Re: [Matplotlib-users] How to improve colorbar scaling?

2010-08-19 Thread Jeremy Conlin
On Wed, Aug 18, 2010 at 10:11 PM, Jae-Joon Lee wrote: > > Try > > > cbar.formatter.set_useOffset(False) > cbar.formatter.set_scientific(True) > cbar.formatter.set_powerlimits((0,2)) > > It gives me > > offsetText -> "x 10^3" > and tick labels = ["5.0002", "5.0004",...] Yes that is exactly what I

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Benjamin Root
On Thu, Aug 19, 2010 at 6:49 AM, Rob Schneider wrote: > > On Wed, Aug 18, 2010 at 3:32 PM, Friedrich Romstedt > > wrote: > >> 2010/8/14 Rob Schneider : > Agreed. The only thing I can think of is that the second figure is > reusing the first. You can try calling plt.figure() at the begin

Re: [Matplotlib-users] On a scatter plot demo

2010-08-19 Thread Michael Droettboom
It looks like you're running an earlier version of matplotlib from before the "get_sample_data" function existed. What does: >>> import matplotlib >>> matplotlib.__version__ give you? Mike On 08/19/2010 04:34 AM, Virgil Stokes wrote: >In the on-line Matplotlib documentation there is an

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Ryan May
On Thu, Aug 19, 2010 at 6:49 AM, Rob Schneider wrote: >> On Wed, Aug 18, 2010 at 3:32 PM, Friedrich Romstedt >> wrote: >>> 2010/8/14 Rob Schneider : > Agreed. The only thing I can think of is that the second figure is > reusing the first. You can try calling plt.figure() at the beginning

Re: [Matplotlib-users] polar plot

2010-08-19 Thread Michael Droettboom
On 08/18/2010 06:03 PM, Friedrich Romstedt wrote: > 2010/8/18 Michael Droettboom: > >> This bug (that the r-axis labels are in the wrong place) should now be fixed >> in r8651. This doesn't, unfortunately, address the original question about >> annular plots. >> > Is the attached issue w

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Rob Schneider
> > You know, we are all volunteering our time here on the list to help, > and I think blaming us to not be able to read hundred lines of code is > not productive at all. It's not our side of the task to track whole > parts of programs down. And, usually one has to play with the code > and to ru

Re: [Matplotlib-users] Sequential Calls to create bar charts jumbles output on second. first always ok.

2010-08-19 Thread Rob Schneider
> On Wed, Aug 18, 2010 at 3:32 PM, Friedrich Romstedt > wrote: >> 2010/8/14 Rob Schneider : Agreed. The only thing I can think of is that the second figure is reusing the first. You can try calling plt.figure() at the beginning of the functions to create a new figure, or call plt.fi

[Matplotlib-users] On a scatter plot demo

2010-08-19 Thread Virgil Stokes
In the on-line Matplotlib documentation there is an example: scatter_demo2.py which shows a very nice scatter plot --- one that I would like to be able to reproduce. However, I have been unsuccessful in getting it to execute on my system. I get the following error: AttributeError: 'module'