Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Matthias Michler
Hey Matt, Hello list, I'm sorry, I'm not an expert in eps-graphics. For me the final pics look good and I have no idea what is different between matplotlib eps-files and eps-files generated somewhere else. Maybe someone has an idea. Kind regards, Matthias On Thursday 21 January 2010

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Pierre de Buyl
I believe that MPL produces vector files. If you want to check by yourself I suggest that you zoom at will on an eps file. If you cannot observe rasterization artifacts it should be right. There is a rasterized option that will affect part of a plot but will leave the text and axes

[Matplotlib-users] transData.transform on 'log' plot

2010-01-21 Thread Cédrick FAURY
Hello, When I try to use transData.transform on a log plot, an error occurs : ... File E:\Python26\lib\site-packages\matplotlib\transforms.py, line 1895, in transform self._a.transform(points)) File E:\Python26\lib\site-packages\matplotlib\transforms.py, line 1723, in transform

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Sebastian Busch
Matthew Czesarski matthew.czesar...@gmail.com wrote: ... it seems that MPL rasterizes everything in the production of its EPS output. Is there any way to get around this ... hi matt, i think i know maybe what you mean: if i save a matplotlib figure as eps and then use pstoedit for further

Re: [Matplotlib-users] transData.transform on 'log' plot

2010-01-21 Thread Michael Droettboom
The `transform` method requires that its argument is a numpy array. You got lucky with duck typing in the non-log case, but there is an assumption in the transformation code that it can use Numpy array functionality on whatever is passed in. Unfortunately, the transforms code is so low-level

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Kurt Forrester
From: lee.j.j...@gmail.com Date: Wed, 20 Jan 2010 17:35:21 -0500 Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing To: kurtforres...@hotmail.com CC: matplotlib-users@lists.sourceforge.net On Wed, Jan 20, 2010 at 3:07 PM, Kurt Forrester kurtforres...@hotmail.com wrote:

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Alan G Isaac
http://matplotlib.sourceforge.net/users/usetex.html Postscript options In order to produce encapsulated postscript files that can be embedded in a new LaTeX document, the default behavior of matplotlib is to distill the output, which removes some postscript operators used by LaTeX that are

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 9:37 AM, Kurt Forrester kurtforres...@hotmail.com wrote: The first one reported None. The second one reported False. And the text is still not drawn with the second example? -JJ -- Throughout

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Kurt Forrester
From: lee.j.j...@gmail.com Date: Thu, 21 Jan 2010 10:46:00 -0500 Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing To: kurtforres...@hotmail.com CC: matplotlib-users@lists.sourceforge.net On Thu, Jan 21, 2010 at 9:37 AM, Kurt Forrester kurtforres...@hotmail.com wrote:

[Matplotlib-users] Top/Right Tick Labels

2010-01-21 Thread Andrew Kelly
Can someone point out how to simply label the ticks on the top and right of a plot? twinx() and twiny() are not necessary because I don't need independent scales and the mpl_toolkits.axes_grid.parasite_axes module is a bit too limiting for my purposes. (Part of my confusion stems from the fact

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 12:53 PM, Kurt Forrester kurtforres...@hotmail.com wrote: Sorry the text IS drawn in the second example. So the setting of the attribute after it is drawn (before it is shown) seems to do the trick. Kurt It seems that somehow the annotation_clip parameter is ignored

Re: [Matplotlib-users] Top/Right Tick Labels

2010-01-21 Thread Andrew Kelly
Turning label2On = true turned on the labels as directed. However, the function label2.set_text(New Tick Label) does not update the actual text. I can set_size(), etc and it works, but set_text() does not update. Any ideas why? -Andrew On Thu, Jan 21, 2010 at 10:32 AM, Jae-Joon Lee

[Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Gökhan Sever
Possibly a question for JJ: pary.axis[right].get_helper()._label_angles[right]=270 This lines complain in my script when I try to run it: Traceback (most recent call last): File /usr/local/bin/aerosol_plot.py, line 276, in module pary.axis[right].get_helper()._label_angles[right]=270

[Matplotlib-users] 3D output to pdf for animation?

2010-01-21 Thread Mark Bakker
Hello List, I know I may be hoping for too much, but is there a way to get the 3D figures into a file that may be converted to an animated pdf? Pdf now allows for inclusion of a 3D figure, and as far as I can see it needs to be in U3D or PRC format. Has anybody been successful converting any of

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Kurt Forrester
From: lee.j.j...@gmail.com Date: Thu, 21 Jan 2010 13:21:41 -0500 Subject: Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing To: kurtforres...@hotmail.com CC: matplotlib-users@lists.sourceforge.net On Thu, Jan 21, 2010 at 12:53 PM, Kurt Forrester kurtforres...@hotmail.com

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Jae-Joon Lee
Do you happen to use the svn version? Regards, -JJ On Thu, Jan 21, 2010 at 3:06 PM, Gökhan Sever gokhanse...@gmail.com wrote: Possibly a question for JJ:     pary.axis[right].get_helper()._label_angles[right]=270 This lines complain in my script when I try to run it: Traceback (most

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 4:13 PM, Kurt Forrester kurtforres...@hotmail.com wrote: Just to add one more query to the thread, do you consider a point on a vertex of the axes to be a candidate for annotation without clipping? That is to say if there is a point (0,0) I wish to annotate, and the

[Matplotlib-users] Font size on an axis

2010-01-21 Thread Brian Larsen
Hey all, wow, this seems like it should be an easy thing but I am not finding answers in the gallery or searching the documentation. How does one set the font size on ticklabels and labels for a figure? I would expect something like plot(arange(11), xfontsize=14) to work but I am not

[Matplotlib-users] Increasing axis label sizes

2010-01-21 Thread Michael Cohen
Hi all, I am trying to figure out how to increase the size of the numbers that label the tick marks on the axes. Increasing the size of the axis labels is easy, use xlabel and the option fontsize = # How do I make the numbers labelling the ticks bigger? I dont specify the ticks by hand, they

Re: [Matplotlib-users] Top/Right Tick Labels

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 2:31 PM, Andrew Kelly ndruke...@gmail.com wrote: Turning label2On = true turned on the labels as directed.  However, the function  label2.set_text(New Tick Label)     does not update the actual text.  I can set_size(), etc and it works, but set_text() does not

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Gökhan Sever
Yes, it is running from the latest trunk check-out. On Thu, Jan 21, 2010 at 3:27 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: Do you happen to use the svn version? Regards, -JJ On Thu, Jan 21, 2010 at 3:06 PM, Gökhan Sever gokhanse...@gmail.com wrote: Possibly a question for JJ:

Re: [Matplotlib-users] Increasing axis label sizes

2010-01-21 Thread Gökhan Sever
On Thu, Jan 21, 2010 at 4:16 PM, Michael Cohen mco...@caltech.edu wrote: Hi all, I am trying to figure out how to increase the size of the numbers that label the tick marks on the axes. Increasing the size of the axis labels is easy, use xlabel and the option fontsize = # How do I make the

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 6:16 PM, Gökhan Sever gokhanse...@gmail.com wrote: Yes, it is running from the latest trunk check-out. The internals of how ticks, ticklables work in the svn version have significantly changed, which I hope is an improvement. Unfortunately, _label_angles is deprecated and

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Gökhan Sever
JJ, One thing is still little mysterious. My top xticks are reversed. See in the saved image: http://img46.imageshack.us/img46/3849/imagevp.png The code that produces that script: http://code.google.com/p/ccnworks/source/browse/trunk/dccn_plot.py Any ideas? On Thu, Jan 21, 2010 at 5:45 PM,

Re: [Matplotlib-users] modifying colorbar ticklabels

2010-01-21 Thread Eric Firing
Jae-Joon Lee wrote: On Wed, Jan 20, 2010 at 2:04 PM, Eric Firing efir...@hawaii.edu wrote: The reason for this fudge in contour is that contourf fills lower z = upper for each consecutive pair of contour levels. When the minimum value of z coincides with the lowest level, then regions with

Re: [Matplotlib-users] '_label_angles' attribute missing

2010-01-21 Thread Jae-Joon Lee
The rotation of the ticklabels are now measured relative to the direction of the ticks. While I understand this can be confusing at first, this is kind of necessary to support axis along an arbitrary path. For example, the default rotation for the ticklabels in the top axis is 180, not 0 (but it

Re: [Matplotlib-users] modifying colorbar ticklabels

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 9:24 PM, Eric Firing efir...@hawaii.edu wrote: I changed my mind and decided you are correct in thinking the change should be made in contour.py.  I now make the bottom boundary adjustment at the last possible time, and in such a way that it does not change the  levels

Re: [Matplotlib-users] Font size on an axis

2010-01-21 Thread Pierre de Buyl
Hello, What I do is to set it _before_ plotting through the rcParams. rcParams['xtick.labelsize']=24 There is also the possiblity to change that property afterwards with an argument to xticks. xticks(fontsize=24) Pierre Le 21 janv. 10 à 22:36, Brian Larsen a écrit : How does one set the

[Matplotlib-users] Importing pyplot crashes python

2010-01-21 Thread Brendan Barnwell
Hi, I decided to upgrade to matoplotlib 0.99.1. I'm on Windows XP. I downloaded matplotlib-0.99.1.win32-py2.5.exe and ran it. It seemed to install. Now when I try from matplotlib import pyplot, Python crashes with one of those pythonw has encountered a problem and needs to close

Re: [Matplotlib-users] Assigning k key for xscaling

2010-01-21 Thread Matthias Michler
Hi Gökhan, Hi list members, This is really a missing feature in matplotlib in my opinion and it's great that you took the time to make an suggestion, but I would prefer capital L for the xaxis-scaling like gnuplot although I'm not sure this is possible. What do you and other list members