[Matplotlib-users] Build issue under windows

2009-07-17 Thread william ratcliff
I have recently been trying to build matplotlib from source under Vista using mingw32. I have downloaded the win32static library from the matplotlib page. Here is the error: writing build\temp.win32-2.5\Release\src\ft2font.def c:\Program Files\pythonxy\mingw\bin\g++.exe -mno-cygwin -mdll

[Matplotlib-users] Build problems under Linux - swig_runtime.h error

2009-07-17 Thread Johann Rohwer
After upgrading to the latest Mandriva Linux I can no longer compile Matplotlib. The following error occurs: In file included from src/backend_agg.cpp:37: src/swig_runtime.h: In function 'void SWIG_Python_AddErrorMsg(const char*)': src/swig_runtime.h:859: error: format not a

[Matplotlib-users] Axes position is changed during rendering

2009-07-17 Thread Andrei Kopats
Hello I have a little problem. On figure I have 2 Axes created by fig = plt.figure(figsize = (16, 10), facecolor='w') ax1 = fig.add_axes([0, 0, 1, 0.1]) ax2 = fig.add_axes([0.1, 0.19, 0.8, 0.72], autoscale_on=True) There are some text and images on it: ...

[Matplotlib-users] Axes position is changed during rendering

2009-07-17 Thread Andrei Kopats
Hello I have a little problem. On figure I have 2 Axes created by fig = plt.figure(figsize = (16, 10), facecolor='w') ax1 = fig.add_axes([0, 0, 1, 0.1]) ax2 = fig.add_axes([0.1, 0.19, 0.8, 0.72], autoscale_on=True) There are some text and images on it: ...

[Matplotlib-users] Axes position is changed during rendering

2009-07-17 Thread Andrei Kopats
Hello I have a little problem. On figure I have 2 Axes created by fig = plt.figure(figsize = (16, 10), facecolor='w') ax1 = fig.add_axes([0, 0, 1, 0.1]) ax2 = fig.add_axes([0.1, 0.19, 0.8, 0.72], autoscale_on=True) There are some text and images on it: ... drawing

[Matplotlib-users] non interactive runs keep crashing due to DISPLAY

2009-07-17 Thread John [H2O]
Hello, I am trying to run a plotting script. I have my imports as such: from matplotlib import interactive interactive(False) import matplotlib.pyplot as plt But I am getting this error repeatedly: fig=figure(1,figsize=(8,6)) File /usr/lib/python2.6/dist-packages/matplotlib/pyplot.py,

Re: [Matplotlib-users] non interactive runs keep crashing due to DISPLAY

2009-07-17 Thread John [H2O]
John [H2O] wrote: My $DISPLAY variable does change from time to time, but as I have it set to interactive, why should this matter? I wanted to explain a little further. I have it set to interactive(False) sorry if there is confusion in my above statement. The reason my DISPLAY

Re: [Matplotlib-users] Axes position is changed during rendering

2009-07-17 Thread Jae-Joon Lee
imshow sets aspect=1 unless you changed your rcparams. Unless aspect=auto, the axes position changes during the drawing time. call imshow with aspect=auto or use set_aspect method. http://matplotlib.sourceforge.net/api/axes_api.html?highlight=aspect#matplotlib.axes.Axes.set_aspect Regards,

Re: [Matplotlib-users] grouping several line types together in legend of plots

2009-07-17 Thread Jae-Joon Lee
On Thu, Jul 16, 2009 at 10:49 PM, per freemperfr...@gmail.com wrote: hi all, suppose i have am plotting several lines using 'plot', some are dashed (using '--') and some are ordinary solid lines. i am plotting several solid and several dashed lines, all in different colors, as in: for n in

Re: [Matplotlib-users] formatting help with legend for stacked bar graph with many categories

2009-07-17 Thread Jae-Joon Lee
To change the legend font size, you may change the legend.fontsize in rcParams. The change will be global. If you want to change the font size of some particular legend, use the appropriate font property as the prop keyword.

Re: [Matplotlib-users] problem using subplots with ion()

2009-07-17 Thread Jae-Joon Lee
On Wed, Jul 15, 2009 at 3:23 PM, Louise Loudermilklouise.louderm...@gmail.com wrote: Hi.  I am trying to output multiple 2D graphs (subplots) in one figure (using pylab) for each time-step that the python code runs - basically an interactive graphs.  We use the 'ion()' and 'imshow()' functions

Re: [Matplotlib-users] Problems with autofmt_xdate()

2009-07-17 Thread Jae-Joon Lee
Please post a simple, standalone script that reproduces your problem, so that we can track down what is causing the problem. I don't think there has been any report of a similar issue (but not sure). As far as I know, autofmt_xdata only adjusts the alignment and rotation of the ticklabels and does

[Matplotlib-users] Annotation on an axis

2009-07-17 Thread Christophe Dupre
Hello, I am trying to add some annotations onto an axis as shown in the attached picture. Is that do-able? If yes, any pointers on how to achieve this are welcome. Thanks, Christophe attachment: AxisAnnotation.jpg--

[Matplotlib-users] Russian labels without LaTeX

2009-07-17 Thread Alexander Bruy
Hi, list! I want to use Russian or Ukrainian language in text within matplotlib plot. There is solution, which I know - it is possible when text rendered with external LaTeX: from matplotlib import rc rc('font',**{'family':'serif'}) rc('text', usetex=True) rc('text.latex',unicode=True)

Re: [Matplotlib-users] Matplotlib+Qt. Problem with plot resizing

2009-07-17 Thread Darren Dale
2009/7/17 Alexander Bruy volt...@ua.fm Hi, list! I have a problem with embedding matplotlib in Qt based GUI. I read manual and look at example embedding_in_qt4.py. I create GUI with QtDesigner. For matplotlib plot I create a QWidget. Then in runtime I embed a matplotlib plot im my GUI,

[Matplotlib-users] plotting lines in the background of other lines

2009-07-17 Thread per freem
hi all, i am plotting several lines together in a plot. i'd like some of the lines to be behind the other ones -- i.e., when the two lines intersect, i want the most recently plotted line to be on top of the previously plotted lines. in general, this is true but it seems to be violated by

Re: [Matplotlib-users] Build problems under Linux - swig_runtime.h error

2009-07-17 Thread Eric Firing
Johann Rohwer wrote: After upgrading to the latest Mandriva Linux I can no longer compile Matplotlib. The following error occurs: In file included from src/backend_agg.cpp:37: src/swig_runtime.h: In function 'void SWIG_Python_AddErrorMsg(const char*)':

[Matplotlib-users] ANN: SciPy 2009 early registration extended to July 22nd

2009-07-17 Thread Jarrod Millman
The early registration deadline for SciPy 2009 has been extended until Wednesday, July 22, 2009. Please register ( http://conference.scipy.org/to_register ) by this date to take advantage of the reduced early registration rate. Since we just announced the conference schedule, I was asked to

Re: [Matplotlib-users] plotting lines in the background of other lines

2009-07-17 Thread Jouni K . Seppänen
per freem perfr...@gmail.com writes: then the horizontal line appears ON TOP of the other two lines -- i want it to be the opposite, i want the horizontal line to be in the background. how can i do this? Use the zorder keyword.

Re: [Matplotlib-users] plotting problems in qt4agg backend on Mac OS X

2009-07-17 Thread Jouni K . Seppänen
Jan Strube curious...@gmail.com writes: The png roughly looks like I would expect (although I can't figure out how to plot a straight black horizontal line at y=0. pylab.plot doesn't seem to do what I want) How about axhline? The eps doesn't get filled with the correct colors, and the pdf

Re: [Matplotlib-users] Annotation on an axis

2009-07-17 Thread Jae-Joon Lee
Drawing box around a text is quite easy. http://matplotlib.sourceforge.net/examples/pylab_examples/fancytextbox_demo.html To place a text in a way like ticklabels, you need to use blended transform. The short example may give you some starting point. -JJ from matplotlib.transforms import

Re: [Matplotlib-users] Russian labels without LaTeX

2009-07-17 Thread Jae-Joon Lee
I'm not an expert on this issue, and I never used Russian language. But here is my experience with unicode in matplotlib. Matplotlib's own font rendering engine (based on truetype) does support unicode rendering. But I don't think there is any support for things like a fontset. And, as far as

Re: [Matplotlib-users] Annotation on an axis

2009-07-17 Thread Christophe Dupre
That's great, thanks. -Original Message- From: Jae-Joon Lee [mailto:lee.j.j...@gmail.com] Sent: Fri 17/07/2009 15:33 To: Christophe Dupre Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Annotation on an axis Drawing box around a text is quite easy.

[Matplotlib-users] changing appearance of legend line entries

2009-07-17 Thread per freem
hi all, i am plotting two distinct lines, one of the format '-o' the other of the format '-s' -- i.e. one line with circular markers the other with a square marker. when i add a legend to the figure, it gives a legend that looks like this: o---o label of circular marker line s---s label of

[Matplotlib-users] plotting 100's of figures, mpl slows and consumes memory!

2009-07-17 Thread John [H2O]
I have a script looping through and plotting 100's of figures. It runs fine, but after the first few plots, the loop considerably slows down and the memory usage keeps going up. The script is quite complicated, so can't really paste it here, but I am trying to pass figure instances around and I

Re: [Matplotlib-users] plotting 100's of figures, mpl slows and consumes memory!

2009-07-17 Thread John Hunter
On Fri, Jul 17, 2009 at 7:02 PM, John [H2O]washa...@gmail.com wrote: I have a script looping through and plotting 100's of figures. It runs fine, but after the first few plots, the loop considerably slows down and the memory usage keeps going up. The script is quite complicated, so can't