Re: [Matplotlib-users] How to do million data-point plots with Matplotlib?

2011-12-15 Thread Michael Droettboom
On 12/10/2011 01:12 PM, David Smith wrote: > I have been working on a program that uses Matplotlib to plot data > consisting of around one million points. Sometimes the plots succeed but > often I get an exception: OverFlowError: Agg rendering complexity exceeded. Are you sure path simplification

Re: [Matplotlib-users] Plot Fill with Jacobian Coordinates

2011-12-15 Thread Benjamin Root
On Thu, Dec 15, 2011 at 3:18 PM, Alex Naysmith wrote: > > > On Tue, Dec 13, 2011 at 7:12 PM, Alex Naysmith wrote: > >> >> >> On Mon, Dec 12, 2011 at 7:03 PM, Benjamin Root wrote: >> >>> On Sat, Dec 10, 2011 at 10:36 AM, Alex Naysmith >> > wrote: >>> Hello, I'm trying to plot the st

Re: [Matplotlib-users] Plot Fill with Jacobian Coordinates

2011-12-15 Thread Alex Naysmith
On Tue, Dec 13, 2011 at 7:12 PM, Alex Naysmith wrote: > > > On Mon, Dec 12, 2011 at 7:03 PM, Benjamin Root wrote: > >> On Sat, Dec 10, 2011 at 10:36 AM, Alex Naysmith >> wrote: >> >>> Hello, >>> >>> I'm trying to plot the stresses in colour of a strained isoparametric >>> element. >>> >>> I have

[Matplotlib-users] How can I place a table on a plot in Matplotlib?

2011-12-15 Thread David Grudoski
I'm not having any success in getting the matplotlib table commands to work. Here's an example of what I'd like to do: Can anyone help with the table construction code? Thanks import pylab as plt plt.figure() ax=plt.gca() y=[1,2,3,4,5,4,3,2,1,1,1,1,1,1,1,1] plt.plot([10,10,14,14,10],[2,4,4,2,2]

Re: [Matplotlib-users] Non-interactive plotting to window?

2011-12-15 Thread Goyo
2011/12/15 John Thorstensen : > So my question:  Is there a simple way of getting matplotlib to display a > plot in a window and then surrender control to the main program, without > destroying the plot?  Something like a method to kill mainloop would be > ideal. Just make sure you use interactiv

Re: [Matplotlib-users] Endpoint of a text string in a plot?

2011-12-15 Thread Keld Lundgaard
Thank you Benjamin. Yes, I understand the problem. Thank you for the help. I am able to use Annotate for my specific problem: I want to have a line starting from the end of the text to make the tick labels with a left alignment. However, a feature to get the boundary box would be useful for this

Re: [Matplotlib-users] Incorrect latex rendering for \hat{x} and \vec{x}

2011-12-15 Thread Alejandro Weinstein
On Wed, Dec 14, 2011 at 10:20 AM, Peter Liebetraut wrote: > Hi > > Latex rendering looks OK here. > >> In [9]: matplotlib.__version__ >> Out[9]: '1.0.0' Just updated to the last version from github, and now works OK. --

Re: [Matplotlib-users] how to surpress figure pop out within interactive ipython shell?

2011-12-15 Thread Justin McCann
On Thu, Dec 15, 2011 at 12:33 PM, Chao YUE wrote: > Dear matplotlib users, > > How can I surpress the figure pop out when I make plot within the ipython > interactive shell? > suppose I make a figure first and I want to save it: > > fig=plt.figure() > ax=fig.add_subplot(111) > ax.plot(np.arange(1

[Matplotlib-users] how to surpress figure pop out within interactive ipython shell?

2011-12-15 Thread Chao YUE
Dear matplotlib users, How can I surpress the figure pop out when I make plot within the ipython interactive shell? suppose I make a figure first and I want to save it: fig=plt.figure() ax=fig.add_subplot(111) ax.plot(np.arange(10)) fig.savefig('fig1.png') ###actually above is only an example and

Re: [Matplotlib-users] Blitting with qt4

2011-12-15 Thread David Hoese
Eric, Good news I think I got it to work. So using the same code I sent you originally, I applied the following changes: 1. Install matplotlib from git (this did fix things that I wasn't noticing) 2. Add c.draw() before "c.copy_from_bbox" 3. Copy "f.bbox" instead of "a.bbox" (I think this makes

Re: [Matplotlib-users] my pie charts gotta pop!

2011-12-15 Thread Benjamin Root
On Wed, Dec 14, 2011 at 11:34 PM, Benjamin Root wrote: > > > On Wednesday, December 14, 2011, Jason Grout > wrote: > > On 12/14/11 6:33 PM, Justin wrote: > > > >> Any suggestions or places to find a gorgeous pie chart, let me know... > > > > I'd probably use Excel or OpenOffice if I were you. >

Re: [Matplotlib-users] Blitting with qt4

2011-12-15 Thread David Hoese
Oops forgot to change subject. On 12/15/11 10:02 AM, David Hoese wrote: > Eric, > > I installed mpl from git ("git clone > git://github.com/matplotlib/matplotlib.git", unless I was suppose to > use one of the branches) and same problem. I looked at my code again > and thought there should be a

Re: [Matplotlib-users] Matplotlib-users Digest, Vol 67, Issue 23

2011-12-15 Thread David Hoese
Eric, I installed mpl from git ("git clone git://github.com/matplotlib/matplotlib.git", unless I was suppose to use one of the branches) and same problem. I looked at my code again and thought there should be a canvas.draw() before calling "c.copy_from_bbox(a.bbox)", but still the same proble

Re: [Matplotlib-users] plotting 3D

2011-12-15 Thread Benjamin Root
On Tue, Dec 13, 2011 at 1:12 PM, Martella, C. wrote: > Hello, > > I have 2D array where each (x, y) cell represents the height of that point > on the Z axis (you can think of it as the map of some mountain chain). > I'd like to get the plot_surface() of this data. What I don't understand > in par

Re: [Matplotlib-users] my pie charts gotta pop!

2011-12-15 Thread Fabien Lafont
This software can be intersting for you: http://www.sofastatistics.com/home.php 2011/12/15 Benjamin Root : > > > On Wednesday, December 14, 2011, Jason Grout > wrote: >> On 12/14/11 6:33 PM, Justin wrote: >> >>> Any suggestions or places to find a gorgeous pie chart, let me know... >> >> I'd p

Re: [Matplotlib-users] Incorrect latex rendering for \hat{x} and \vec{x}

2011-12-15 Thread Peter Liebetraut
Hi Latex rendering looks OK here. > In [9]: matplotlib.__version__ > Out[9]: '1.0.0' However, synaptic tells me: 1.0.1-rc1-1ubuntu5. System Ubuntu 10.10 with ppa (http://ppa.launchpad.net/bgamari/matplotlib-unofficial/ubuntu) for matplotlib 1.0.1. Best, Peter Am 07.12.2011 23:06, schrieb Alej

[Matplotlib-users] plotting 3D

2011-12-15 Thread Martella, C.
Hello, I have 2D array where each (x, y) cell represents the height of that point on the Z axis (you can think of it as the map of some mountain chain). I'd like to get the plot_surface() of this data. What I don't understand in particular is the content of the X, Y ,Z array parameter in my par

[Matplotlib-users] Non-interactive plotting to window?

2011-12-15 Thread John Thorstensen
I have a sizeable number of python data-inspection scripts that work as follows: - read some data, or do something with it - plot the data - query the user on the command line and get a response - do what the user commands. These use the venerable PGPLOT package for the graphics, but this has be