Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?

2010-02-15 Thread Philipp Bender
When I come back tonight I will try to fix the errors for you. -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/

Re: [Matplotlib-users] Where Do I Report MPL Guide Issues?

2010-02-15 Thread Philipp Bender
If you are interested in contributing to matplotlib check out this link: http://matplotlib.sourceforge.net/faq/howto_faq.html#contributing-howto The PDF is not the "original source", it's a product of the sphinx documentation system I think so contributing happens in simple plain text files. Yo

[Matplotlib-users] Trouble gridding irregularly spaced data

2010-02-15 Thread T J
Hi, I'm trying to grid irregularly spaced data, such that the convex hull of the data is not rectangular. Specifically, all my data lies in an equilateral triangle inside the unit circle. I found: http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data and tried the sugg

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-15 Thread Chloe Lewis
wrote: > ...maybe dividing the markers up into 2, 3, or 4 sections would be > useful too. > ... There's a gallery example doing that in general, making pie-charts out of the markers: http://matplotlib.sourceforge.net/examples/api/scatter_piecharts.html although I think my demo of it shows

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-15 Thread T J
On Mon, Feb 15, 2010 at 5:22 PM, John Hunter wrote: > Very nice and thorough work.  I think this should be included, but > I'll wait to hear from other developers before committing.  Could you > confirm that the unit tests pass? > import matplotlib matplotlib.test() > Confirmed on rev 8

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
Hi Jeff, thanks for your quick reply. Unfortunately, the line you sent me doesn't have any effect on the plot, either before or after turning off the tick labels. Do you have another suggestion? Cheers, Jan On Sun, Feb 14, 2010 at 11:28 PM, Jeffrey Blackburne wrote: > > On Feb 14, 2010, a

Re: [Matplotlib-users] graph suggestion

2010-02-15 Thread Stefaan Lippens
http://www.graphviz.org/ ? On Sun, Feb 14, 2010 at 5:35 AM, Mag Gam wrote: > I manage 300 servers at my university lab. I would like to map out all > the cron entries into a nice graph but I am not sure what would be > appropriate. Can someone please suggest what would be ideal? > > TIA > > > --

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-15 Thread John Hunter
On Mon, Feb 15, 2010 at 5:59 PM, T J wrote: > On Sun, Feb 14, 2010 at 2:49 PM, T J wrote: >> I ran across: >> >>    http://old.nabble.com/half-filled-markers-td24003576.html >> >> The name "fillstyle" can give the wrong impression about what is being >> filled.  For example, see the comment here:

[Matplotlib-users] DateFormatter + Latex issue

2010-02-15 Thread Filipe Pires Alvarenga Fernandes
Hello list, If I use DateFormatter with latex and lines breaks like this >>> DateFormatter("\n \n %b") I get an latex error: http://pastebin.com/m5b186ded Although, if I do not use the line breaks, >>> DateFormatter("%b") The problem disappears. Below is a script that reproduces what I'm talkin

[Matplotlib-users] Pydot graphs in matplotlib?

2010-02-15 Thread Erik Tollerud
I'm curious if anyone knows a good way to embed pydot (http://code.google.com/p/pydot/) graphs (or really, any graphviz-style graphs) inside matplotlib somehow. I could easily write out a png or something from pydot and then imshow it, but that seems very kludgy. Is there some way to load svg or

Re: [Matplotlib-users] half-filled markers, two-colors

2010-02-15 Thread PHobson
TJ, I think this current implementation and adding a marker rotation key word would be wonderful. When I get stuck doing GIS work, I end up using split markers very often. It's quite useful. Now's probably not the time, but maybe dividing the markers up into 2, 3, or 4 sections would be useful

Re: [Matplotlib-users] Placing a marker at specific places where lines join?

2010-02-15 Thread Eric Firing
Tim Michelsen wrote: > Hello, > I have a similar problem to: >> Suppose I plot a line from (0,0) to (1,1.5) to (2,2). Now I want to mark >> (1,1.5) with a green circle. How is that done? > Your problem is not similar to the above; the problem above is solved with a simple call to "plot". > I a

Re: [Matplotlib-users] save image from array?

2010-02-15 Thread Gary Ruben
Hi Nico, I'm pretty sure the functionality is buried in there but unfortunately I couldn't figure out how to put it into the imsave function, so for now I think you have to resort to using PIL to do this. Gary R. Nico Schlömer wrote: > Hi, > > I see that with imsave() it's possible to save an i

[Matplotlib-users] forcing a plot to appear

2010-02-15 Thread Ken Dere
Hi, I am trying to develop an application that I can run inside the ipython shell. One of my methods creates a plot, asks the user to make a choice based on that plot, and then creates another plot that displays the chosen set of information. If the choices are made with a qt or wx dialogue,

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
Yes, yes! what he said... Thanks a lot JJ. Dear developers, would it make sense to have setp(axes1.get_xticklabels(), visible=False) also automatically set axes1.xaxis.offsetText.set_visible(False) ? Cheers, Jan On Mon, Feb 15, 2010 at 5:10 PM, Jae-Joon Lee wrote: > Try > > ax1.xaxis.off

[Matplotlib-users] agg_buffer_to_array.py

2010-02-15 Thread David Arnold
All, This error: The debugged program raised the exception unhandled AttributeError "'FigureCanvasMac' object has no attribute 'buffer_rgba'" File: /Users/darnold/Documents/temp/Matplotlib/PylabExamples/agg_buffer_to_array.py, Line: 16 is raised by the following script on my Macbook. # agg_buff

Re: [Matplotlib-users] identification of color bars

2010-02-15 Thread Nico Schlömer
> As far as I can see, it is the other way around, i.e., mappables > (e.g., images) know about the colorbar they are connected. Well yeah, that'd be even better. I'll check out the API. -- Hints would still be appreciated of course. --Nico

Re: [Matplotlib-users] Easy come easy go

2010-02-15 Thread Gökhan Sever
On Sun, Feb 14, 2010 at 10:36 PM, David Arnold wrote: > All, > > This example: > http://matplotlib.sourceforge.net/examples/event_handling/keypress_demo.html > > Raises this exception o my Macbook when the key 's' is pressed: > > The debugged program raised the exception unhandled TypeError > "sav

Re: [Matplotlib-users] identification of color bars

2010-02-15 Thread Jae-Joon Lee
On Mon, Feb 15, 2010 at 12:25 PM, Nico Schlömer wrote: > Well, it's related to the TikZ converter I'm writing. After having > created the plot, the script is of course totally oblivious to what > exact commands were used. > I was thinking that there is still some sort of bond between the color > b

Re: [Matplotlib-users] Easy come easy go

2010-02-15 Thread Jae-Joon Lee
I cannot reproduce this error both with 0.99.1 maintenance branch and the current svn (with GtkAgg backend). What version of matplotlib and what backend are you using? http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html Regards, -JJ On Sun, Feb 14, 2010 at 11:36 PM, David Arnold wr

Re: [Matplotlib-users] Arrow question/request

2010-02-15 Thread Jae-Joon Lee
On Mon, Feb 15, 2010 at 2:32 AM, rcnelson wrote: > 1) Are there any plans or would it make sense to add another keyword to the > pyplot.arrow function that allows you to choose the arrow class you would > like to use? The default could be FancyArrow so that the original usage of > pyplot.arrow wil

Re: [Matplotlib-users] identification of color bars

2010-02-15 Thread Nico Schlömer
Well, it's related to the TikZ converter I'm writing. After having created the plot, the script is of course totally oblivious to what exact commands were used. I was thinking that there is still some sort of bond between the color bar and its parent plot after their creation, e.g., for when the co

Re: [Matplotlib-users] identification of color bars

2010-02-15 Thread Jae-Joon Lee
Is there any reason that you need to find out which axes is a color bar axes from the list of axes? Can you just keep references to colorbars you create? cbar = colorbar() cax = cbar.ax cax is the axes instance of the colobar you just created. Regards, -JJ On Mon, Feb 15, 2010 at 12:04 PM, Ni

[Matplotlib-users] simple GTK agg animation with patches

2010-02-15 Thread John Jameson
Thought I would post this as a simple GTKagg animation with patches (after John Hunter fixed it for me :-): import pygtk, gobject import matplotlib matplotlib.use('GTKAgg') import numpy as np import matplotlib.pyplot as plt import pylab from matplotlib.patches import CirclePolygon, Polygon

[Matplotlib-users] memory leak for GTKAgg animation

2010-02-15 Thread John Jameson
Hi John - Yes thanks again! This did it. Plus it is a valuable lesson - it never occurred to me to look at the base class to find more useful methods. To make this cleaner I will post the complete simple working example after this message. best, John -Original Message- From: John Hun

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jae-Joon Lee
Try ax1.xaxis.offsetText.set_visible(False) where ax1 is the upper axes. Regards, -JJ On Mon, Feb 15, 2010 at 4:50 AM, Jan Strube wrote: > Hi Jeff, > thanks for your quick reply. > Unfortunately, the line you sent me doesn't have any effect on the plot, > either before or after turning off t

[Matplotlib-users] identification of color bars

2010-02-15 Thread Nico Schlömer
Hi, when plotting a color bar with a plot in matplotlib, the color bar gets treated internally as Axes. With two main plots, each of which comes with a color bar, one structurally gets (that is, a Figure has for childres Axes). To find out which one of those is a color bar,

[Matplotlib-users] tabbed figure browsing..

2010-02-15 Thread Nick Schurch
I have a script that calls several subroutines which each draw a figure (TkAgg backend). When I call show() at the end of the script all the figures pop up no problem, but when your producing 20+ figures its a bit overwhelming! It'd be great if I could have just one plot window with each figure as

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jeffrey Blackburne
Can you send a minimal working example that shows the problem? On Feb 15, 2010, at 4:50 AM, Jan Strube wrote: > Hi Jeff, > > thanks for your quick reply. > Unfortunately, the line you sent me doesn't have any effect on the > plot, either before or after turning off the tick labels. > > Do you h

Re: [Matplotlib-users] Import bug for numpy >= 2.0

2010-02-15 Thread Robert Kern
On 2010-02-14 11:23 AM, Charles R Harris wrote: > Lines 147-151 of __init__ need to be changed to > > import numpy > nn = numpy.__version__.split('.') > if not (int(nn[0]) > 1 or int(nn[0]) == 1 and int(nn[1]) >= 1): > raise ImportError( > 'numpy 1.1 or later is required; you have %s' % numpy.

Re: [Matplotlib-users] Placing a marker at specific places where lines join?

2010-02-15 Thread Wayne Watson
Hi, Phillip. don't know why the mail would be returned. The address I see above is correct. sierra_mtni...@sbcglobal.net. The only thing I can think of is that yahoo mail wanted you to allow you to ask for permission. Beats me. Frankly, I've never really liked the reply format of mail lists. I

Re: [Matplotlib-users] 16bit tiff support?

2010-02-15 Thread Philipp Lies
Jeff Whitaker wrote: > Philipp Lies wrote: >> On 02/12/2010 07:49 PM, Eric Firing wrote: >> >>> Philipp Lies wrote: >>> Hi, is there a backend that supports 16bit tiff images? > > The macosx backend supports tiff. Thanks, but I need a linux backend :-/ >>> Can yo

Re: [Matplotlib-users] 16bit tiff support?

2010-02-15 Thread Jeff Whitaker
Philipp Lies wrote: > On 02/12/2010 07:49 PM, Eric Firing wrote: > >> Philipp Lies wrote: >> >>> Hi, >>> >>> is there a backend that supports 16bit tiff images? >>> The macosx backend supports tiff. -Jeff >> Can you just use png, and use the netpbm utilities or ImageMagick >> conve

[Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-15 Thread Wayne Watson
Does anyone know where I can find a compiled demo that uses MPL grphics? I'd like, if possible, a Win version whose size is less than 10M, so that I can send it via e-mail, if necessary. It should use plot, so that someone can manipulate the plot with the navigation controls. At this point, I h

Re: [Matplotlib-users] Placing a marker at specific places where lines join?

2010-02-15 Thread Tim Michelsen
Hello, I have a similar problem to: > Suppose I plot a line from (0,0) to (1,1.5) to (2,2). Now I want to mark > (1,1.5) with a green circle. How is that done? I am performing a curve fit and also showing a distribution in my plot. In order to help the reader to evaluate the result I would like t

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-15 Thread Michiel de Hoon
I almost have a solution for this for the Mac OS X backend. I am stuck though at what I should pass to enter_notify_event and leave_notify_event for the guiEvent: def leave_notify_event(self, guiEvent=None): """ Backend derived classes should call this function when leaving

Re: [Matplotlib-users] 16bit tiff support?

2010-02-15 Thread Philipp Lies
On 02/12/2010 07:49 PM, Eric Firing wrote: > Philipp Lies wrote: >> Hi, >> >> is there a backend that supports 16bit tiff images? > > Can you just use png, and use the netpbm utilities or ImageMagick > convert program to go to and from tiff? Would be 'dirty' but acceptable if matplotlib would suppo

Re: [Matplotlib-users] Enter Figure on Macs

2010-02-15 Thread John Hunter
On Mon, Feb 15, 2010 at 6:50 AM, Michiel de Hoon wrote: > I almost have a solution for this for the Mac OS X backend. I am stuck though > at what I should pass to enter_notify_event and leave_notify_event for the > guiEvent: > >    def leave_notify_event(self, guiEvent=None): >        """ >    

Re: [Matplotlib-users] tick labels in colorbar?

2010-02-15 Thread Nico Schlömer
> cb.ax.set_yticklabels((r'$-\pi$', '0', r'$\pi$')) Works like a charm. Thanks! --Nico -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solar

Re: [Matplotlib-users] tick labels in colorbar?

2010-02-15 Thread Matthias Michler
On Monday 15 February 2010 09:28:10 Nico Schlömer wrote: > Hi, > thanks for the suggestion. > > > ax.set_xticks((-pi,pi)) > > ax.set_xticklabels(('$-\pi$','$\pi$')) > > I guess color bars are a little special in the sense that > >AttributeError: Colorbar instance has no attribute 'set_yticklabe

Re: [Matplotlib-users] How to draw a rectangle using event handler ?

2010-02-15 Thread Matthias Michler
Hi Yagua, On Friday 12 February 2010 17:04:27 Yagua Rovi wrote: > Hello world! > I am displaying on my screen a set of data corresponding to points > defined by a longitude and latitude. > The display is fine with the command imshow (mydata ,...) > > I would like now associate to the application

[Matplotlib-users] save image from array?

2010-02-15 Thread Nico Schlömer
Hi, I see that with imsave() it's possible to save an image based on its cmap. Is there also functionality in matplotlib to to store a file based on RGB(alpha) information? Cheers, Nico -- SOLARIS 10 is the OS for Data C

Re: [Matplotlib-users] turning off tick labels

2010-02-15 Thread Jan Strube
Hi Jeff, thanks for your quick reply. Unfortunately, the line you sent me doesn't have any effect on the plot, either before or after turning off the tick labels. Do you have another suggestion? Cheers, Jan On Sun, Feb 14, 2010 at 11:28 PM, Jeffrey Blackburne wrote: > > On Feb 14, 2010, a

Re: [Matplotlib-users] tick labels in colorbar?

2010-02-15 Thread Nico Schlömer
Hi, thanks for the suggestion. > ax.set_xticks((-pi,pi)) > ax.set_xticklabels(('$-\pi$','$\pi$')) I guess color bars are a little special in the sense that AttributeError: Colorbar instance has no attribute 'set_yticklabels' The tick positions are given not by set_yticks either, but as an op