Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread Wayne Watson
A Ground Hog movie moment? Deja vu all over again (Quoting Yega Berra.). I went right through John Hunter's comment of a day or two ago about the need to solve this with ipython. That has to be taken into consideration; otherwise, this is a no-go.. I suppose an interesting aside though on what

[Matplotlib-users] Ways of updating legends

2010-02-11 Thread Jorge Scandaliaris
Hi, I am re-using a scatter plot in the same figure for interactively displaying results without ending up with 30 windows open. The legend is relevant, and so it must be also updated. So far the only way I found was to use the set_label() method and then using plt.legend(). Is this the only way

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 2:41 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: A Ground Hog movie moment? Deja vu all over again (Quoting Yega Berra.). I went right through John Hunter's comment of a day or two ago about the need to solve this with ipython. That has to be taken into

[Matplotlib-users] matplotlib axis define

2010-02-11 Thread Samuel Teixeira Santos
Hi all I'm noob on matplotlib on python and I need to do excel graphic like (model.jpg) that I send attached. I send it too my test code for that My problem is to set the values on y and x axis how I do it? thanks in advanced # -*- coding: utf-8 -*- from decimal import Decimal

Re: [Matplotlib-users] logarithmic plotting and the grid

2010-02-11 Thread Lee Boger
I think he wants to turn the grid on for both major and minor ticks. I'm interested in that also. Is there a way to do that? Lee Jae-Joon Lee lee.j.j...@gmail.com 02/10/2010 08:10 PM To K L klu1...@gmail.com cc matplotlib-users@lists.sourceforge.net Subject Re: [Matplotlib-users]

Re: [Matplotlib-users] matplotlib axis define

2010-02-11 Thread Pierre de Buyl
Hello, It is not clear what exactly does not work in your file. I assumed it was the logarithmic scaling in x. Here is the code to produce that. A complete documentation is available on http:// matplotlib.sourceforge.net/ , you might be especially interested by the examples

Re: [Matplotlib-users] logarithmic plotting and the grid

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 8:13 AM, Lee Boger boger_...@cat.com wrote: I think he wants to turn the grid on for both major and minor ticks. I'm interested in that also. Is there a way to do that? ax.grid(True, which='major') ax.grid(True, which='minor') JDH

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 9:18 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: Yes, certainly,as  you explained a few days ago, the present use is incompatible with idle usage. Further, you mentioned the need for ipython and the backend to make it work (in IDLE?). The way we are using

[Matplotlib-users] Legend placement on graphs with fill_between

2010-02-11 Thread Geoff Bache
Hi all, I'm trying to generate graphs from my test results, with regions coloured with succeeded and failing tests. It nearly works, but I have the following problem. I am providing the data with fill_between, which returns PolyCollection objects which cannot be provided to a legend. So I

Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 9:43 AM, Geoff Bache geoff.ba...@jeppesen.com wrote: Hi all, I'm trying to generate graphs from my test results, with regions coloured with succeeded and failing tests. It nearly works, but I have the following problem. I am providing the data with fill_between, which

Re: [Matplotlib-users] matplotlib axis define

2010-02-11 Thread Samuel Teixeira Santos
hi again accuatly, I want redefine my axis points ( it's seems call 'ticks' on pyplot, I want redefine his range ) to be the same as my excel graphic. I did it's not a logaritmic because to calc thats 'y' points I use another formula... and on Excel it's X Y Scatter Graphic type... I'm trying

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread Wayne Watson
Definitely tkinter. I'll look at the link. Interestingly though, and I think I mentioned this. There is another plot that's been working fine. I seldom use it, but when I have, it seems to work. The developer stated this in a msg this morning. Either way should work. Double clicking the py

Re: [Matplotlib-users] matplotlib axis define

2010-02-11 Thread Samuel Teixeira Santos
Pierre You right look on excel grahic, I found a logarithmic scale option marked my bad. really thanks see ya 2010/2/11 Samuel Teixeira Santos arcano...@gmail.com hi again accuatly, I want redefine my axis points ( it's seems call 'ticks' on pyplot, I want redefine his range ) to be the

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread Wayne Watson
That link has no reference to tkinter. tk and tk2, plus a few others with tk in their names, but nothing else.A search in the box produced nothing. On 2/11/2010 8:36 AM, Wayne Watson wrote: Definitely tkinter. I'll look at the link. Interestingly though, and I think I mentioned this.

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread John Hunter
On Thu, Feb 11, 2010 at 10:42 AM, Wayne Watson sierra_mtnv...@sbcglobal.net wrote: That link has no reference to tkinter.  tk and tk2, plus a few others with tk in their names, but nothing else.A search in the box produced nothing. As I said in my last email, the embedding_in_tk* files are the

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib?

2010-02-11 Thread Wayne Watson
Thanks for the info. I'm semi-resistant to ipython. I tried if for a few hours, and it seemed a bit too much like linux. Years ago I used linux a lot, and enjoyed it. I'll consider it. Windows is the game now. Yes, actual use is good, but the needed imports seem a bit baffling. scipy, pylab,

Re: [Matplotlib-users] Ways of updating legends

2010-02-11 Thread Jae-Joon Lee
You're already using ax.legend, what kind of OO way do you want? Instead of calling plt.legend, you may do ax.legend([s],[str(i)]) Or, if you know what you're doing, you can do leg = ax.legend([s],[''], loc=0) and in the for loop, leg.texts[0].set_text(str(i)) Regards, -JJ On Thu,

[Matplotlib-users] mplot3d: large numbers scatter plot

2010-02-11 Thread D2Hitman
Hi, I was hoping to use mplot3d to visually examine the density of points in a 3D plot. However, the number of points i am displaying is of the order 10,000-100,000. I use scatter or scatter3D to plot x,y,z for the points. The pan and zoom functions become unworkable. Does anyone have any

Re: [Matplotlib-users] bar plot in log scale

2010-02-11 Thread Tomasz Koziara
I figured now that this was the bottom zero, hence I used other value instead. But here we are - there is a conceptual problem with stacked bar plots in the log scale - the stacked areas lose their proportions and are no longer illustrative. On 11 Feb 2010, at 17:06, phob...@geosyntec.com

[Matplotlib-users] x,y ticklabel too close

2010-02-11 Thread Filipe Pires Alvarenga Fernandes
Hello list, For the following plotI using a large font for the tick-label that causes the first x,y tick-labels to overlap http://yfrog.com/5zimageykp for now I'm padding spaces to fix the plot, like this: newtick = [-10 , -5, 0 , 5 , 10 ] pos =[-10, -5, 0, 5, 10] yticks(pos,

Re: [Matplotlib-users] Legend placement on graphs with fill_between

2010-02-11 Thread Jae-Joon Lee
Or, you may fool the algorithm to find the best location by adding invisible lines. For example, axessubplot4.set_autoscale_on(False) l1, = axessubplot4.plot([4, 5], [8, 18]) l1.set_visible(False) axessubplot4.set_autoscale_on(True) Regards, -JJ On Thu, Feb 11, 2010 at 10:58 AM, John Hunter

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread Wayne Watson
Thanks. Got detoured by not supported. I think I'll be printing our your messages in the future. I just went back to one just now, and had forgotten about your mentio of pyLab, model. On 2/11/2010 7:38 AM, John Hunter wrote: On Thu, Feb 11, 2010 at 9:18 AM, Wayne Watson

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread Alan G Isaac
On 2/11/2010 11:36 AM, Wayne Watson wrote: you can more easily see error messages if you open it with IDLE Why? Just call it from the command line of a console window that you will leave open. (Or write the error to file.) Alan Isaac

[Matplotlib-users] A Menagerie of Imports

2010-02-11 Thread Wayne Watson
For newbies to MPL, needed imports seem a bit baffling. scipy, pylab, matplotlib, ...? What libs or lib components do I only need for a particular use? Suppose I want to produce a scatter, contour, or 3d plot. What do I need minimally or more widely? I'm assuming that I don't want to use

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread Alan G Isaac
On 2/11/2010 11:42 AM, Wayne Watson wrote: That link has no reference to tkinter http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk.html Read down a half dozen lines or so. Alan Isaac --

Re: [Matplotlib-users] A Menagerie of Imports

2010-02-11 Thread Philipp Bender
Hi, For newbies to MPL, needed imports seem a bit baffling. scipy, pylab, matplotlib, ...? What libs or lib components do I only need for a particular use? Suppose I want to produce a scatter, contour, or 3d Like you said: Depends on the particular use. How to give a universal answer?

Re: [Matplotlib-users] A Menagerie of Imports

2010-02-11 Thread Alan G Isaac
On 2/11/2010 1:24 PM, Wayne Watson wrote: Suppose I want to produce a scatter, contour, or 3d plot. What do I need minimally or more widely? If you just want to work on these in isolation, you just need import matplotlib.pyplot as plt Nothing more. You can now use e.g. plt.plot whenever

Re: [Matplotlib-users] Finding the Supposed MPL show() bug.

2010-02-11 Thread Christopher Barker
Wayne Watson wrote: The developer stated this in a msg this morning. Either way should work. Double clicking the py file is probably more convenient, but you can more easily see error messages if you open it with IDLE option 3: Start it up in a command window (DOS box on Windows), and

[Matplotlib-users] pyplot.yticks ignoring font if labels are supplied, any ideas?

2010-02-11 Thread ristretto
import matplotlib.pyplot as pyplot fprop=matplotlib.font_manager.FontProperties(size='xx-small') pyplot.yticks((70,80,90,100),('70%','80%','90%','100%'), color=#8c949d,horizontalalignment='right',fontproperties=fprop ) This will cause all the kwargs to be ignored, so the color, alignment and

Re: [Matplotlib-users] pyplot.yticks ignoring font if labels are supplied, any ideas? SOLVED

2010-02-11 Thread ristretto
ristretto wrote: import matplotlib.pyplot as pyplot fprop=matplotlib.font_manager.FontProperties(size='xx-small') pyplot.yticks((70,80,90,100),('70%','80%','90%','100%'), color=#8c949d,horizontalalignment='right',fontproperties=fprop ) This will cause all the kwargs to be ignored,

Re: [Matplotlib-users] Ways of updating legends

2010-02-11 Thread Jorge Scandaliaris
El 11/02/10 18:28, Jae-Joon Lee escribió: You're already using ax.legend, what kind of OO way do you want? Instead of calling plt.legend, you may do ax.legend([s],[str(i)]) Thanks Jae-Joon. You're right. I tried this before, but I must have done something wrong then, because when I

[Matplotlib-users] Selectable contour(f) divisions

2010-02-11 Thread Bruce Ford
In using the contour as in: contour(X,Y,Z,N) N is a number of automatically chosen levels. I would like to contour based on data divisions. For instance, perhaps I'd like to use a contour or color-fill (contourf) every 2 units. I'm not seeing how to accomplish this. Any points in the right

Re: [Matplotlib-users] x,y ticklabel too close

2010-02-11 Thread Ernest Adrogué
Hi, 11/02/10 @ 12:40 (-0500), thus spake Filipe Pires Alvarenga Fernandes: Hello list, For the following plotI using a large font for the tick-label that causes the first x,y tick-labels to overlap http://yfrog.com/5zimageykp for now I'm padding spaces to fix the plot, like this:

Re: [Matplotlib-users] pyplot.yticks ignoring font if labels are supplied, any ideas? SOLVED

2010-02-11 Thread Jae-Joon Lee
On Thu, Feb 11, 2010 at 3:55 PM, ristretto ristretto...@gmail.com wrote: I'm not sure I'll ever really understand Matplotlib.  Why I had to do this, I don't really know.  It's hard to spec out projects when you think that setting the font on some text should take no time at all, but it takes

Re: [Matplotlib-users] x,y ticklabel too close

2010-02-11 Thread Jae-Joon Lee
The current matplotlib does not have any automatic way as far as I know (any contribution will be appreciated). On the other hand, instead of explicitly specifying the ticks and ticklabels, you may try to reduce the number of ticks. gca().xaxis.get_major_locator()._nbins=4 Regards, -JJ On

Re: [Matplotlib-users] pyplot.yticks ignoring font if labels are supplied, any ideas? SOLVED

2010-02-11 Thread ristretto
While developers are working hard to fix any bugs, Matplolib is not a perfect, bug-free library. And I doubt if it ever will be (to clarify, I'm one of the developers). And with the 0.99 maintenance branch and the current svn, I cannot reproduce your problem, so I guess this is a known

Re: [Matplotlib-users] x,y ticklabel too close

2010-02-11 Thread C M
On Thu, Feb 11, 2010 at 12:40 PM, Filipe Pires Alvarenga Fernandes ocef...@gmail.com wrote: Hello list, For the following plotI using a large font for the tick-label that causes the first x,y tick-labels to overlap http://yfrog.com/5zimageykp for now I'm padding spaces to fix the plot,

Re: [Matplotlib-users] How Does One Learn to Use MatPlotLib? (PUG)

2010-02-11 Thread Wayne Watson
Well, here's an interesting twist on help, PUG, Python Users Groups. A world wide list is at http://wiki.python.org/moin/LocalUserGroups., The nearest one to me is near San Jose, CA about 180 miles from here, and meets the fourth Thursday of the month. Fortunately, I travel down there fairly

[Matplotlib-users] Maximize plotwindow hot to plot figure by figure?

2010-02-11 Thread zxc
2 Problems: 1. How is it possible to maximize the window of the plot? 2. First I want to plot only figure 0, after 5 seconds figure 0 has to be closed and figure 1 to be shown. Any suggestions? from pylab import * import time ion() figure(0) plot([1,2,3]) figure(1) plot([10, 20, 30])