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 thi

[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] 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

Re: [Matplotlib-users] modifying colorbar ticklabels

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 9:24 PM, Eric Firing 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 > array at all.  

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 Eric Firing
Jae-Joon Lee wrote: > On Wed, Jan 20, 2010 at 2:04 PM, Eric Firing 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 that m

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, Ja

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 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 should not be used

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 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 numbers label

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 wrote: > Do you happen to use the svn version? > Regards, > > -JJ > > > On Thu, Jan 21, 2010 at 3:06 PM, Gökhan Sever > wrote: > > Possibly a question for JJ: > > > > pary.axis["right"].get_hel

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 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 > update.  Any ideas

[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 ar

[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 finding

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 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 origin of > the axes contai

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 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 recent call las

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 > wrote: > > Sorry the te

[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

[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 pary.axis["right"].get_helper()._label_angles["right"]=2

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] Assigning "k" key for xscaling

2010-01-21 Thread Gökhan Sever
Hello, "l" key does the log - linear scaling for y-axis. I have made a minor change to use "k" for x-axis scaling. Patch added. Feel free to add if you find it useful. -- Gökhan xscale.patch Description: Binary data -

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

2010-01-21 Thread Jae-Joon Lee
On Thu, Jan 21, 2010 at 1:16 PM, Andrew Kelly wrote: > (Part of my confusion stems from the fact that I can access the Tick > instances on the Axis but when I call Tick.set_label2("New Label") the label > does not get drawn.  Perhaps I am being daft.) > http://matplotlib.sourceforge.net/api/axis_

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 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 when it is given during

[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 th

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 > wrote: > > The first one

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 wrote: > The first one reported None. > The second one reported False. And the text is still not drawn with the second example? -JJ -- Throughout its 18-year history, RSA

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 ille

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 > wrote: > > the output fr

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-leve

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Michael Droettboom
You may want to play with the ps.fonttype parameter. If it's type 3 (the default) only the characters used in the plot are embedded in the file. If type 42, the entire font is embedded. That may create the editability that the publisher is asking for. Mike Sebastian Busch wrote: > Matthew C

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Sebastian Busch
Matthew Czesarski 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 processing with xfig, the

[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 Sven Klomp
Sometimes, an EPS contains a rasterised "screenshot" of the actual vector image. E.g. some office products show only the raserised image while editing the document. When printed, the vector data is used. Sven On Thursday 21 January 2010 11:10:00 Pierre de Buyl wrote: > I believe that MPL produc

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 vect

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 10:37:32

Re: [Matplotlib-users] vector EPS

2010-01-21 Thread Matthew Czesarski
Hey Matthias, Oh, I can make eps files themselves no problem... In as much as I don't really understand the difference between vector and raster graphics, I was told to submit 89mm images (I can make them 89mm, fortunately...), with text that can be resized by the graphics department. For which I