Re: [Matplotlib-users] Plot a Dictionary, time and value

2008-07-31 Thread Johann Cohen-Tanugi
hmm, reading the initial email, this is not what I understood the idea would be. So let me the following : I have a dictionnary with the 7 days of week as keys (strings) and a value attached to it. I would like to plot the days of the week in x and the corresponding values in y. It amounts to

Re: [Matplotlib-users] Plot a Dictionary, time and value

2008-07-31 Thread stuartornum
Thank you John, Just what I was looking for. John Hunter-4 wrote: On Wed, Jul 30, 2008 at 9:17 AM, stuartornum [EMAIL PROTECTED] wrote: Hi, Wondering if anyone has done something similar and could point me in the right direction. I have a dictionary like this: Dict{'00:00:00':'23',

[Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread stuartornum
Hi again, This is slightly similar to my previous post, however using lists, not dictionaires. So, I have a for loop that produces two list, as follows: Hours = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22',

Re: [Matplotlib-users] default mathtext font

2008-07-31 Thread Michael Droettboom
(Sorry for the delay -- just back from vacation) It looks like the default Vera Sans font that matplotlib uses doesn't actually have the lunate epsilon character. If you have it installed, you could have matplotlib use the DejaVu Sans font instead (which is essentially Vera Sans with a larger

Re: [Matplotlib-users] Navigation toolbar w/o subplot configuration button

2008-07-31 Thread Ben Axelrod
Yes. I did this by deriving my toolbar class from the default NavigationToolbar2WxAgg. Then deleting the buttons I did not want. I had to delete by position, because I did not know their IDs. (Does anyone know how to get the IDs of these standard buttons?) Sample code below: class

Re: [Matplotlib-users] Navigation toolbar w/o subplot configuration button

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 8:18 AM, Ben Axelrod [EMAIL PROTECTED] wrote: Yes. I did this by deriving my toolbar class from the default NavigationToolbar2WxAgg. Then deleting the buttons I did not want. I had to delete by position, because I did not know their IDs. (Does anyone know how to

Re: [Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread Alan G Isaac
On Thu, 31 Jul 2008, stuartornum apparently wrote: Is there a way to build a plot string, and then plot the string once the for loop has finished. What gain are you looking for over your lists, which seems an efficient approach? You realize plot accepts 2d objects, right?

[Matplotlib-users] draw upper and lower limits

2008-07-31 Thread Antonino Cucchiara
Hi, I have some graphs with lower and upper limits. I found a couple of ideas online, but nothing like plotting symbols like arrows. I am using the mathtex upperarrow symbol but it is quite unconfortable positioning the tex character in the righ X-Y position. Do you know if there is an easier

Re: [Matplotlib-users] draw upper and lower limits

2008-07-31 Thread Manuel Metz
Antonino Cucchiara wrote: Hi, I have some graphs with lower and upper limits. I found a couple of ideas online, but nothing like plotting symbols like arrows. I am using the mathtex upperarrow symbol but it is quite unconfortable positioning the tex character in the righ X-Y position. Do

Re: [Matplotlib-users] plot() hangs up, how to rescue Python?

2008-07-31 Thread Michael Droettboom
Like John, I can't think of anything off hand to prevent this in the future. However, if you're working with a script that causes this to happen again, please send us the script. It may indicate an infinite loop or unbounded memory usage, and we'd like to track it down and fix it. Also, as

Re: [Matplotlib-users] SVG rendering problems

2008-07-31 Thread Michael Droettboom
In general, SVG rendering support is quite variable between engines. I do most of my testing on Inkscape and Firefox, since they feel the most correct and complete. Can you send your SVG files (or the scripts that generate them) to this list so I can look at why they may be failing?

[Matplotlib-users] Multiple plots, interactivity, wx etc

2008-07-31 Thread signal seeker
Hi, I have couple of applications in which I have to generate multiple plots interactively using the wx backend and wanted to know the best approach to take for this. I did search the list for previous discussions on this subject, but the approach to take is still unfortunately not 100% clear to

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Michael Droettboom
Can you provide a standalone script that reproduces this error? Cheers, Mike Jonathan Hayward, http://JonathansCorner.com; wrote: If there are one or more narrow wedges on a pie graph, narrow enough that the percentage values overlap and are hard to read, there seems to be a knife-thin

Re: [Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread stuartornum
Hi Alan, Thanks for the reply. I have literally in the past few days started using matplotlib, and python for about 3 weeks prior. So I am not at all up-to-date with all its functionality. In regards to 2D objects, I have no idea. Thanks again Alan G Isaac wrote: On Thu, 31 Jul 2008,

Re: [Matplotlib-users] draw upper and lower limits

2008-07-31 Thread Jae-Joon Lee
If you're like me and what you want is just an arrow mark with its head at (x,y), you may use scatter() with custom verts. arrowup_verts = [[0.,0.], [-1., -1], [0.,0.], [0.,-2.],[0.,0.], [1, -1]] arrowdown_verts = [[0.,0.], [-1., 1], [0.,0.], [0.,2.],[0.,0.], [1, 1]]

[Matplotlib-users] tool bar help / feature request

2008-07-31 Thread Ben Axelrod
I am using the wxAgg backend with the NavigationToolbar2WxAgg toolbar. I would like to hook up a keyboard shortcut that will call the 'home' button on the toolbar. The only way I know to do this is the call the wx event with the ID of the home button. The problem is that this ID is not a

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread John Hunter
On Tue, Jul 29, 2008 at 1:12 PM, John Hunter [EMAIL PROTECTED] wrote: We are in the final stages of preparing a new matplotlib release, and a lot of work has gone into it. If you would like to test the release and see if it is working for you, that would be a big help

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
Hi John, On Thu, Jul 31, 2008 at 18:28, John Hunter [EMAIL PROTECTED] wrote: Sandro, just a reminder, we are still holding on your testing of the new release candidate with the 0.4.2 sphinx bugfix. The current release candidate is

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Mikhail Gusarov
Twas brillig at 18:35:10 31.07.2008 UTC+02 when [EMAIL PROTECTED] did gyre and gimble: ST I'm just seeing Mikhail is updating sphinx to 0.4.2 in our svn ST repo. Yes, and just asked Piotr to sponsor it. -- pgp8CR0rUcLep.pgp Description: PGP signature

Re: [Matplotlib-users] Plot Multiple List by concatenating to a string?

2008-07-31 Thread Alan G Isaac
On Thu, 31 Jul 2008, stuartornum apparently wrote: In regards to 2D objects, I have no idea. E.g., a list of lists. list1 = [0,1,2] list2 = [3,4,5] listoflists = [ list1, list2 ] So you can put all your independent variables into a list of lists, and plot them at one go against your list of

Re: [Matplotlib-users] ColorBar with axes

2008-07-31 Thread Eric Firing
[EMAIL PROTECTED] wrote: Hello, I would like to show a colorbar for my plot (see attachment) but I can't figure out how it works. In the examples on the website I only found the call to pylab.colorbar(), which doesn't work with my subplots. My code is as follows (with the bar graph-part

[Matplotlib-users] inconsistency with minor ticks when configuring ticks from scratch

2008-07-31 Thread Orest Kozyar
The following illustrates a slight inconsistency in matplotlib: a = subplot(111) a.yaxis.tick_left() yscale('log') show() Since the default linear minor locator is NullLocator, there are no minor ticks to use as a template when the default logarithmic minor locator is used. This results in the

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
Hi John, On Thu, Jul 31, 2008 at 18:35, Sandro Tosi [EMAIL PROTECTED] wrote: Hi John, On Thu, Jul 31, 2008 at 18:28, John Hunter [EMAIL PROTECTED] wrote: Sandro, just a reminder, we are still holding on your testing of the new release candidate with the 0.4.2 sphinx bugfix. The current

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Michael Droettboom
I think perhaps he's referring to the inheritance diagrams which are HTML image maps. It seems that this functionality has somehow broken. (The image map is not getting returned from dot and inserted into the HTML). I'm looking into it. Cheers, Mike John Hunter wrote: On Thu, Jul 31, 2008

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
On Thu, Jul 31, 2008 at 20:49, Michael Droettboom [EMAIL PROTECTED] wrote: I think perhaps he's referring to the inheritance diagrams which are HTML image maps. It seems that this functionality has somehow broken. (The image map is not getting returned from dot and inserted into the HTML).

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Michael Droettboom
It seems to have broken with a recent update to Sphinx. Sphinx changed the way that cross-reference urls are stored in the document tree. I have updated matplotlib to use an approach that work for Sphinx both before and after this change (SVN r5940). I don't consider this a show-stopper if

[Matplotlib-users] Figure existence test

2008-07-31 Thread nobody
Two questions for using Matplotlib (via interactive Python prompt, not pylab interface): 1) How can I get a list of the currently extant figures? -- In Matlab, I would just type get(0,'children') -- how would Matplotlib handle this? 2) How can I test if a specified figure exists?

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Sandro Tosi
On Thu, Jul 31, 2008 at 21:06, Michael Droettboom [EMAIL PROTECTED] wrote: It seems to have broken with a recent update to Sphinx. Sphinx changed the way that cross-reference urls are stored in the document tree. I have updated matplotlib to use an approach that work for Sphinx both before

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom [EMAIL PROTECTED] wrote: It seems to have broken with a recent update to Sphinx. Sphinx changed the way that cross-reference urls are stored in the document tree. I have updated matplotlib to use an approach that work for Sphinx both before

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Mikhail Gusarov
Twas brillig at 21:15:20 31.07.2008 UTC+02 when [EMAIL PROTECTED] did gyre and gimble: ST For Debian, we still need (I think) a couple of day to upload mpl, ST because we need first sphinx 0.4.2 to enter unstable, then we can ST upload. Piotr will upload it soon (with urgency=medium), and

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Michael Droettboom
Now that I'm seeing your image, it's jogged my memory that this bug has already been fixed on both our 0.91.x and 0.98.x branches. What version are you using? Cheers, Mike Jonathan Hayward, http://JonathansCorner.com; wrote: Yes; thank you; I've attached the script and the generated image.

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Jonathan Hayward, http://JonathansCorner.com
I emerged 0.91.2 through my distribution's packaging system. Do I need to compile the newest version from source or something like that? On Thu, Jul 31, 2008 at 3:06 PM, Michael Droettboom [EMAIL PROTECTED] wrote: Now that I'm seeing your image, it's jogged my memory that this bug has already

Re: [Matplotlib-users] SVG rendering problems

2008-07-31 Thread Mathieu Leplatre
Can you send your SVG files (or the scripts that generate them) to this list so I can look at why they may be failing? Screenshots or PNGs from ImageMagick and/or eog may also be useful, in case I can't reproduce the problems with the versions I have here. Mike, do you want them as

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread John Hunter
On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward, http://JonathansCorner.com [EMAIL PROTECTED] wrote: I emerged 0.91.2 through my distribution's packaging system. Do I need to compile the newest version from source or something like that? The 0.98.3 release will be out very soon -- just keep

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-07-31 Thread Jonathan Hayward, http://JonathansCorner.com
Thanks; will do. On Thu, Jul 31, 2008 at 3:45 PM, John Hunter [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward, http://JonathansCorner.com [EMAIL PROTECTED] wrote: I emerged 0.91.2 through my distribution's packaging system. Do I need to compile the newest version

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Charlie Moad
On Thu, Jul 31, 2008 at 3:17 PM, John Hunter [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom [EMAIL PROTECTED] wrote: It seems to have broken with a recent update to Sphinx. Sphinx changed the way that cross-reference urls are stored in the document tree. I

Re: [Matplotlib-users] matplotlib 0.98.3 release candidate, please test

2008-07-31 Thread Charlie Moad
On Thu, Jul 31, 2008 at 9:51 PM, Charlie Moad [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2008 at 3:17 PM, John Hunter [EMAIL PROTECTED] wrote: On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom [EMAIL PROTECTED] wrote: It seems to have broken with a recent update to Sphinx. Sphinx changed