[Matplotlib-users] can't output emf/pdf/eps figure file corrently with my dataset.

2011-03-09 Thread hongleij
Win7SP1/ActivePython-2.7.1.3-win32-x86 matplotlib-1.0.1.win32-py2.7 from sourceforge I met the following with my dataset: Save emf Error: too many values to uppack Save pdf Error: Path lacks initial MOVETO Save eps: No Erro ,but cann't open it. Here is the code : import cPickle import

Re: [Matplotlib-users] Many basic questions i cant find solution

2011-03-09 Thread Muffles
Benjamin Root-2 wrote: Note that will not change the number of ticks already established for the axis. For that, you can use set_xticks(), which accepts a list of values where to set the tick marks (you should probably use set_xticklabels() after set_xticks()). Note that you will

Re: [Matplotlib-users] Multiline plot

2011-03-09 Thread Thorsten Kranz
Hi, I repeat my question, as nobody replied yet. Does anybody know the actual state of this feature? Greetings, Thorsten 2011/2/28 Thorsten Kranz thorstenkr...@googlemail.com: Hi, I usually plot my multichannel-EEG data using a constant offset for each channel and then setting the

[Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Mads Ipsen
Hi, I am using the Qt4 based back engine for displaying a 2D plot in a widget. The plot typically contains lots of line plots. Suppose I add a CirclePolygon to the plot like this: circle = CirclePolygon((x,y), radius=0.04, edgecolor='black', facecolor='red', zorder=1) axes.add_patch(circle)

Re: [Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Aman Thakral
Hi Mads, Did you add axis='equal' to you axes command? e.g. ax = fig.add_subplot(111, aspect='equal') -Aman On Wed, Mar 9, 2011 at 6:07 AM, Mads Ipsen madsip...@gmail.com wrote: Hi, I am using the Qt4 based back engine for displaying a 2D plot in a widget. The plot typically contains lots

Re: [Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Mads Ipsen
I tried that, but that will make the entire plot look very strange if xlim = [0;100] and ylim=[-1:1]. What I really want to do is add a scale free aspect ratio correct circle to the plot. Just like the circles that appear on a scatter plot. Best regards, Mads On 2011-03-09 14:44, Aman

Re: [Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Aman Thakral
Could you provide some sample code that recreates the problem (and shows what you're trying to accomplish)? On Wed, Mar 9, 2011 at 8:58 AM, Mads Ipsen madsip...@gmail.com wrote: I tried that, but that will make the entire plot look very strange if xlim = [0;100] and ylim=[-1:1]. What I

Re: [Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Warren Weckesser
On Wed, Mar 9, 2011 at 8:15 AM, Mads Ipsen madsip...@gmail.com wrote: Here is a script (below). I want the blue circle to appear as a circle with a 1:1 aspect ratio, making it look like a circle and not an ellipse. Just like the scale free circles making up the curve of the damped

Re: [Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Benjamin Root
On Wednesday, March 9, 2011, Mads Ipsen madsip...@gmail.com wrote: Hi, I am using the Qt4 based back engine for displaying a 2D plot in a widget. The plot typically contains lots of line plots. Suppose I add a CirclePolygon to the plot like this: circle = CirclePolygon((x,y), radius=0.04,

Re: [Matplotlib-users] Many basic questions i cant find solution

2011-03-09 Thread Benjamin Root
On Wednesday, March 9, 2011, Muffles dantares...@gmail.com wrote: Benjamin Root-2 wrote: Note that will not change the number of ticks already established for the axis.  For that, you can use set_xticks(), which accepts a list of values where to set the tick marks (you should probably use

Re: [Matplotlib-users] Many basic questions i cant find solution

2011-03-09 Thread Muffles
Benjamin Root-2 wrote: Could you please include your code? My code was merely a demonstration and not meant to be copy and pasted in it's entirety. Ben Root Thx, but I fixed that already, it was my error. Still dont cant fix the width of the window though... -- View this message

Re: [Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Mads Ipsen
Thanks. The intention is to make the added circle dragable by the mouse by listening to mouse press, move, and release. That means that I have to modify the data of the added scatter data. I believe that the axes.scatter() method returns a matplotlib.collections.CircleCollection object. How

Re: [Matplotlib-users] Many basic questions i cant find solution

2011-03-09 Thread Benjamin Root
On Wed, Mar 9, 2011 at 9:11 AM, Muffles dantares...@gmail.com wrote: Benjamin Root-2 wrote: Could you please include your code? My code was merely a demonstration and not meant to be copy and pasted in it's entirety. Ben Root Thx, but I fixed that already, it was my error.

Re: [Matplotlib-users] Many basic questions i cant find solution

2011-03-09 Thread Muffles
Benjamin Root-2 wrote: And, without the code, I can't help you. Please include a small script that I can run that demonstrates the problem. I can't reproduce your bug based on your description. Ben Root Here it is, i think this works fig=figure(figsize=(5,9))

Re: [Matplotlib-users] Aspect ratio of a circle

2011-03-09 Thread Jae-Joon Lee
You may use offsetbox module. Here is an complete example. Note that the circle always has a size of 25 point and also is draggable, Regards, -JJ import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import CirclePolygon, Circle x = np.arange(0, 10, 0.1) y =

Re: [Matplotlib-users] Many basic questions i cant find solution

2011-03-09 Thread Benjamin Root
On Wed, Mar 9, 2011 at 10:05 AM, Muffles dantares...@gmail.com wrote: Benjamin Root-2 wrote: And, without the code, I can't help you. Please include a small script that I can run that demonstrates the problem. I can't reproduce your bug based on your description. Ben Root

[Matplotlib-users] Axes formatting

2011-03-09 Thread Luciano Fleischfresser
Hello, i am trying to make time series plots with the date on the x axis. The python code I managed to work read a .csv file with entries like Date-Time,T2am,T2 11-Fev-11-14:44:56,31.2,26.8 11-Fev-11-14:59:56,33,26.9 11-Fev-11-15:14:56,28.5,27... Here is the main part of the code datafile =

[Matplotlib-users] how to change default font in eps?

2011-03-09 Thread Bin Hu
Hello, Can anyone show me how to change the default font used by Matplotlib in saving figures in EPS format? Thanks. I can change line BitstreamVeraSans-Roman findfont to Helvetica findfont in eps files to make the texts render correctly in Illustrator, but I don't want to do that every

Re: [Matplotlib-users] Multiline plot

2011-03-09 Thread Benjamin Root
On Wed, Mar 9, 2011 at 4:05 AM, Thorsten Kranz thorstenkr...@googlemail.com wrote: Hi, I repeat my question, as nobody replied yet. Does anybody know the actual state of this feature? Greetings, Thorsten Don't know about any plot_signal() functions, but I have tried to rework the

[Matplotlib-users] Plotting contour lines

2011-03-09 Thread Andrew Chapkowski
Can someone please explain how to coordinates need to be passed to contour for 3D graphs? I see all the examples use sample data, but I can't find any information on how the input points need to be formatted. Currently I have three array, one for the X, one for Y, and another for a Z value,

Re: [Matplotlib-users] Plotting contour lines

2011-03-09 Thread Benjamin Root
On Wed, Mar 9, 2011 at 8:25 PM, Andrew Chapkowski achapkow...@esri.comwrote: Can someone please explain how to coordinates need to be passed to contour for 3D graphs? I see all the examples use sample data, but I can't find any information on how the input points need to be formatted.