Re: [Matplotlib-users] Is there a maximum number of x tickmarks?

2010-03-16 Thread Josh Hemann
Gökhan SEVER-2 wrote: > > Oh these busy chemical compound plots :) Are those results of gas > chromatography analysis? > > Something like below produces a nice fully plotted output here. Could you > give it a try? > > import matplotlib.pyplot as plt > plt.plot(range(100)) > locs, labels = plt.

Re: [Matplotlib-users] Contour with locator=FixedLocator(...) drops first and last contours from the list.

2010-03-16 Thread David Smith
Eric, Thank you, thank you, thank you. This not only fixes the problem I reported with with FixedLocator(..) but also another one where I was using MultipleLocator(..) and getting the same problem issue with dropping first and last contours. The later isn't as easy to work-around but your chan

Re: [Matplotlib-users] Is there a maximum number of x tickmarks?

2010-03-16 Thread Gökhan Sever
On Tue, Mar 16, 2010 at 4:37 PM, Josh Hemann wrote: > > I have an issue with showing more than 81 tick marks on an X axis and I am > trying to determine a way around it. Background... I am plotting vectors in > which each element represents a different variable and I really do want to > see the l

[Matplotlib-users] Is there a maximum number of x tickmarks?

2010-03-16 Thread Josh Hemann
I have an issue with showing more than 81 tick marks on an X axis and I am trying to determine a way around it. Background... I am plotting vectors in which each element represents a different variable and I really do want to see the labels associated with each element. The vectors may be only 8 e

Re: [Matplotlib-users] installling on ubuntu

2010-03-16 Thread Friedrich Romstedt
For the Windows machine, if you installed with the superpack, you should find an deinstaller in the Python directory called "Removematplotlib.exe", I *guess* it only removes in fact the matplotlib package. You can also safely rename (or delete) the old matplotlib directory and the mpl_toolkits dir

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-16 Thread David
Dear Michael, thanks for your input. So far, though, no luck. I have deleted "SimHei" in matplotlibrc, and I can then continue generating CJK characters. The png is generated, the eps is not. Thus, no change. The error output is also the same: RuntimeError: Face has no glyph names WARNING: F

Re: [Matplotlib-users] [CJK] can create png but not eps

2010-03-16 Thread Michael Droettboom
The font you are using (SimHei) does not have any glyph names -- these are used in the Postscript backend to refer to glyphs outside of the ASCII range. More specifically, it looks like it has at least one invalid glyph name (glyph names can only contain ASCII characters) -- loading it in Font

[Matplotlib-users] [CJK] can create png but not eps

2010-03-16 Thread David
Hello everybody, I have a final problem with my graph. As a last step I produce an *.eps file that I use in conjunction with LaTeX. Here is the last part of my code: # plt.title('Title') xlab = plt.xlabel(u'输入 1') #xlab.set_position((0.2, 0.1)) ylab = plt.ylabel(u'输入 2') plt.grid(True) plt.su

Re: [Matplotlib-users] How to 'rotate' a 3D plot?

2010-03-16 Thread Alexander Dietz
Thanks a lot, that seems to work! Alex On Tue, Mar 16, 2010 at 18:54, Ben Axelrod wrote: > There is an uncommented, and therefore undocumented function: > > axes3d.view_init(elev, azim) > > that you can use to rotate the axes.  If you have not already, I suggest you > use the current SVN versi

Re: [Matplotlib-users] How to 'rotate' a 3D plot?

2010-03-16 Thread Ben Axelrod
There is an uncommented, and therefore undocumented function: axes3d.view_init(elev, azim) that you can use to rotate the axes. If you have not already, I suggest you use the current SVN version of MPL instead of the 0.99.1 version. Mplot3d has some more features in the trunk, but it is still

Re: [Matplotlib-users] savefig 0.91

2010-03-16 Thread Christopher Barker
Samuel Teixeira Santos wrote: > I fix it. > > It was a dumb error > > I using '\' on windows > and on ubuntu-linux I must use '/'... note that '\' works in Windows for the most part. Or, better yet, use os.path.join() and friends. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency

Re: [Matplotlib-users] savefig 0.91

2010-03-16 Thread Samuel Teixeira Santos
I fix it. It was a dumb error I using '\' on windows and on ubuntu-linux I must use '/'... sorry... and thanks 2010/3/16 Michael Droettboom > Can you please post the entire traceback? > > Mike > > Samuel Teixeira Santos wrote: > >> Hi folks >> >> I'm using ubuntu 8.04 lts and matplotlib 0.91

[Matplotlib-users] How to 'rotate' a 3D plot?

2010-03-16 Thread Alexander Dietz
Hi, I have successfully created a 3D scatter plot with mplot3d, but how can I rotate the plot around e.g. the z-axis? I do not want to use the user interface but I would like to use a command to do that. But I could not find good documentation anywhere and the commands attributed to the Axes3D al

Re: [Matplotlib-users] How do you add contrasting text to color image

2010-03-16 Thread Jae-Joon Lee
On Tue, Mar 16, 2010 at 12:10 PM, PaterMaximus wrote: > Another way would be to use a font with a dark edge and light interior (or > vice > versa) but I know of know such font for matplotlib. > FYI, the svn version of matplotlib supports this. http://matplotlib.sourceforge.net/trunk-docs/exampl

Re: [Matplotlib-users] savefig 0.91

2010-03-16 Thread Michael Droettboom
Can you please post the entire traceback? Mike Samuel Teixeira Santos wrote: > Hi folks > > I'm using ubuntu 8.04 lts and matplotlib 0.91 > > I cannot upgrade in this moment. > > On my app (for web) I fix several errors (because I did her in 0.99) > > My last error (I think it is) is on savefig >

Re: [Matplotlib-users] How do you add contrasting text to color image

2010-03-16 Thread Jeff Whitaker
On 3/16/10 10:10 AM, PaterMaximus wrote: I have I have an image with both light and dark regions. I want to write text on it in a color that contrasts with the underlying image color. Right now if I make the text black, it is not very legible if the underling color is dark. Similarly, if I make

Re: [Matplotlib-users] [newbie] 2 problems: a) CJK, b) adding letters to points

2010-03-16 Thread David
On 16/03/10 20:39, Jae-Joon Lee wrote: > > adjust your subplot parameters. > > plt.subplots_adjust(bottom=0.2) Yep, that did the trick! thanks Jae-Joon and Gökhan! David -- Download Intel® Parallel Studio Eval Try t

[Matplotlib-users] How do you add contrasting text to color image

2010-03-16 Thread PaterMaximus
I have I have an image with both light and dark regions. I want to write text on it in a color that contrasts with the underlying image color. Right now if I make the text black, it is not very legible if the underling color is dark. Similarly, if I make the text white, it is not legible if the u

[Matplotlib-users] savefig 0.91

2010-03-16 Thread Samuel Teixeira Santos
Hi folks I'm using ubuntu 8.04 lts and matplotlib 0.91 I cannot upgrade in this moment. On my app (for web) I fix several errors (because I did her in 0.99) My last error (I think it is) is on savefig It tells me that cannot open file on log error, appears on write_png method. Is this permis

Re: [Matplotlib-users] How to create 3D plots?

2010-03-16 Thread Pierre de Buyl
Hello, Unfortunately, the mplot3D page on the SciPy cookbook is not up to date. The 3D code in mplot3d has been moved to a toolkit and needs to be imported as is seen in the examples found here: http://matplotlib.sourceforge.net/examples/mplot3d/index.html > So: Any idea how to create a simple

[Matplotlib-users] How to create 3D plots?

2010-03-16 Thread Alexander Dietz
Hi, I would like to create 3D plots. A search revealed the following page: http://www.scipy.org/Cookbook/Matplotlib/mplot3D which explains to install matplotlib version 0.99 to use the 3D code. Unfortunately, after installingmatplotlib-0.99.1.1 (from matplotlib-0.99.1.2.tar.gz) I am not able to

Re: [Matplotlib-users] Alpha compositing of ~60000 line plots takes forever

2010-03-16 Thread John Hunter
On Tue, Mar 16, 2010 at 8:46 AM, Jon Olav Vik wrote: > Thank you, thank you, thank you. > > This is just as convenient, 50% faster even for 1000 series, and runtime does > indeed scale as O(n) up to 1 series. The projected speedup for 6 > series > was 40x. However, in my actual use case

Re: [Matplotlib-users] how can I show some figures, but not others?

2010-03-16 Thread Matthias Michler
On Tuesday 16 March 2010 14:17:26 Nick Schurch wrote: > I have a script that calls several subroutines, each of which makes a > different figure. One of these routines makes lots of figures for use > in a webpage, all of which are saved as they are made. When I call > show() at the end of the scrip

Re: [Matplotlib-users] Alpha compositing of ~60000 line p lots takes forever

2010-03-16 Thread Jon Olav Vik
Jae-Joon Lee writes: > If you're plotting lots of lines, do not use plot but use > LineCollection instead. > > http://matplotlib.sourceforge.net/examples/api/collections_demo.html > > http://matplotlib.sourceforge.net/api/ collections_api.html#matplotlib.collections.LineCollection > > Here is

[Matplotlib-users] how can I show some figures, but not others?

2010-03-16 Thread Nick Schurch
I have a script that calls several subroutines, each of which makes a different figure. One of these routines makes lots of figures for use in a webpage, all of which are saved as they are made. When I call show() at the end of the script it is showing all the figures (as one might expect), but wha

Re: [Matplotlib-users] [newbie] 2 problems: a) CJK, b) adding letters to points

2010-03-16 Thread Jae-Joon Lee
On Tue, Mar 16, 2010 at 3:30 AM, David wrote: > This did not yield any results. With the above code, xlab.set_position((0.2, > 0.1)), I change the position of the xlabel. > But the problem is that my graph is cut before the xlabel has a chance to > appear (see dea.png). Basically the graph ends ri

Re: [Matplotlib-users] [newbie] 2 problems: a) CJK, b) adding letters to points

2010-03-16 Thread Jae-Joon Lee
On Tue, Mar 16, 2010 at 3:30 AM, David wrote: > On 16/03/10 07:59, Gökhan Sever wrote: >> >> Probably you need a unicode font-set that contain all the characters for >> those alphabets. You can look at this example to see a simple unicode >> demonstration example. > > Yes, I have done that, for ex

Re: [Matplotlib-users] Alpha compositing of ~60000 line plots takes forever

2010-03-16 Thread Jae-Joon Lee
If you're plotting lots of lines, do not use plot but use LineCollection instead. http://matplotlib.sourceforge.net/examples/api/collections_demo.html http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.LineCollection Here is slightly modified version of your code t

[Matplotlib-users] Alpha compositing of ~60000 line p lots takes forever

2010-03-16 Thread Jon Olav Vik
I want to overlay many line plots using alpha transparency. However, plotting them in Matplotlib takes about O(n**2) time, and I think I may be running into memory limitations as well. As a simple benchmark, I used IPython to run alco.ipy (below), which runs alco.py for an increasing number of

[Matplotlib-users] [ANN] EuroPython 2010 registration and talk submissions now open!

2010-03-16 Thread Ciarán Mooney
EuroPython 2010 - 17th to 24th July 2010 EuroPython is a conference for the Python programming language community, including the Django, Zope and Plone communities. It is aimed at everyone in the Python community, of all skill levels, both users and programm

Re: [Matplotlib-users] [newbie] 2 problems: a) CJK, b) adding letters to points

2010-03-16 Thread David
Dear Gökhan, thanks a lot for your reply and help! I could solve some of my problems, others remain elusive. On 16/03/10 07:59, Gökhan Sever wrote: Probably you need a unicode font-set that contain all the characters for those alphabets. You can look at this example to see a simple unicode de