Re: [Matplotlib-users] legend: dash pattern length

2010-03-11 Thread Jae-Joon Lee
On Thu, Mar 11, 2010 at 8:32 PM, Alan G Isaac wrote: > 1. What are the units (and why not points)? Fraction of (legend) font size (in points). It was decided that it is these dimensions are better to be scale with font size. For example, handlelength=5 means 50 points when legend font size is 10

Re: [Matplotlib-users] IRC for matplotlib

2010-03-11 Thread Ryan May
On Thu, Mar 11, 2010 at 3:14 PM, afancy wrote: > Hi, > > Could anybody know if there is IRC for matplotlib? as I cannot find it. > Thanks #scipy is an appropriate for all things numpy, matplotlib, scipy, etc. Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Okla

Re: [Matplotlib-users] legend: dash pattern length

2010-03-11 Thread Alan G Isaac
On 3/11/2010 1:44 PM, Jae-Joon Lee wrote: > Did you try*handlelength*? > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend OK, now I know what "handlelength" means. 1. What are the units (and why not points)? 2. Can this be set on a legend object (after creation)? (T

Re: [Matplotlib-users] Fixing Figure Size

2010-03-11 Thread Friedrich Romstedt
I would suggest that you add the axes with: axes = figure.add_axes((left, bottom, width, height)) instead of .add_subplot(). I think you have too many subplots, it seems that the algorithm isn't designed for this. With .add_axes(), you can add more space. Note that you have then maybe to call

Re: [Matplotlib-users] contourf doesn't like a rectangular grid

2010-03-11 Thread Friedrich Romstedt
I deem it useful if you would add a print map_XX.shape, map_YY.shape, y.shape . I'm suspicious about their shape. _check_xyz() accepts 2D X,Y-arrays only if their shape is equal to that of y (y in your case). Friedrich --

[Matplotlib-users] Yet another Tk backend

2010-03-11 Thread Friedrich Romstedt
Hello, I just uploaded just another Tk backend for matplotlib. It can connect to any Figure instance, also with multiple Axes (although only one will be active for interactive zooming and panning). I hope the package is useful because of its special mouse usage. To pan, click right, hold, and p

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-11 Thread Robert Kern
On 2010-03-11 15:49 PM, Chris Barker wrote: > Robert Kern wrote: >>> the triangulation. Yes, it would use the existing delaunay code by >>> default, and hopefully optionally use the not-as-good-a-license code the >>> Robert Kern put in SciPy. >> >> I did what now? > > I thought you'd put a wrapper

Re: [Matplotlib-users] figure save problem

2010-03-11 Thread James Boyle
I have the same problem with nearly identical setup: OS X 10.5.8 - intel matplotlib 99.1.1 python 2.6.1 ipython 0.9.1 numpy-1.3.0 --Jim On Mar 11, 2010, at 1:31 PM, Andre Walker-Loud wrote: > Hi All, > > I am having a problem saving figures produced with matplotlib. Right > now, I am running a

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-11 Thread Chris Barker
Robert Kern wrote: >> the triangulation. Yes, it would use the existing delaunay code by >> default, and hopefully optionally use the not-as-good-a-license code the >> Robert Kern put in SciPy. > > I did what now? I thought you'd put a wrapper of a delaunay code that is GPL'd or something (not B

[Matplotlib-users] IRC for matplotlib

2010-03-11 Thread afancy
Hi, Could anybody know if there is IRC for matplotlib? as I cannot find it. Thanks Regards, afancy -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively,

Re: [Matplotlib-users] How do I use a grid geometry manager in a matplotlib tk backend

2010-03-11 Thread Friedrich Romstedt
2010/3/11 Kim Hansen : > canvas.get_tk_widget().grid(row=0) > canvas._tkcanvas.grid(row=1) I cannot reproduce your problem. Can you maybe provide a self-contained script to reproduce the behaviour? Here is mine: >>> import Tkinter >>> import matplotlib >>> tk = Tkinter.Tk() >>> import matplotli

[Matplotlib-users] figure save problem

2010-03-11 Thread Andre Walker-Loud
Hi All, I am having a problem saving figures produced with matplotlib. Right now, I am running a freshly built matplotlib-0.99.1.2 (unzipped, the directory reads 0.99.1.1?) built on python-2.6 numpy-1.3.0 scipy-0.7.1 ipython-0.10 All on an OSX 10.5 intel. When I try to save a figure, in the

Re: [Matplotlib-users] 1d weighted histogram with log y-axis not colored correctly

2010-03-11 Thread Gökhan Sever
On Thu, Mar 11, 2010 at 2:41 PM, Craig the Demolishor wrote: > Hi folks, > Lately I've been working with some data that is too copious to fit in > memory, so I've had to write a wrapper for pyplot.hist that bins the data in > chunks and then draws it like so: > > pyplot.hist(x_edges, bins=100

[Matplotlib-users] 1d weighted histogram with log y-axis not colored correctly

2010-03-11 Thread Craig the Demolishor
Hi folks, Lately I've been working with some data that is too copious to fit in memory, so I've had to write a wrapper for pyplot.hist that bins the data in chunks and then draws it like so: pyplot.hist(x_edges, bins=100, weights=bin_contents, histtype='stepfilled', facecolor='g') However,

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-11 Thread Robert Kern
On 2010-03-11 13:38 PM, Chris Barker wrote: > Ian Thomas wrote: >> To summarise, you recommend the following units of functionality: >> >> 1) Triangulation class to wrap existing delaunay code. > > The idea here is that it would provide a class that holds the result of > the triangulation. Yes, it

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-11 Thread Chris Barker
Ian Thomas wrote: > To summarise, you recommend the following units of functionality: > > 1) Triangulation class to wrap existing delaunay code. The idea here is that it would provide a class that holds the result of the triangulation. Yes, it would use the existing delaunay code by default, an

Re: [Matplotlib-users] get current line cycle (color cycle), how to

2010-03-11 Thread Jae-Joon Lee
Try ax1 = subplot(121) ax2 = subplot(122) ax2._get_lines.color_cycle = ax1._get_lines.color_cycle ax1.plot([0,1]) ax2.plot([0,1]) Regards, -JJ On Thu, Mar 11, 2010 at 9:02 AM, Pribadi, Krishna wrote: > Hello all, > > Does anyone know how to get the current line cycle or color cycle for a >

Re: [Matplotlib-users] legend: dash pattern length

2010-03-11 Thread Jae-Joon Lee
Did you try *handlelength*? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend Regards, -JJ On Wed, Mar 10, 2010 at 4:50 PM, Alan G Isaac wrote: > I need a longer sample of the dash pattern in the legend. > Possible? (numpoints does not work.) > > Thanks, > Alan Is

Re: [Matplotlib-users] Problem with plotting fast spiking data

2010-03-11 Thread Jakub Nowacki
Just to conclude the problem. I've just installed a fresh svn matplotlib (1.0-svn to be exact) and the problem with path optimisation disappeared, meaning with path.simplify False plots are correct as far as my data is concerned. BTW it very nicely builds out-of-the-box on 10.6 in 64-bit mode.

Re: [Matplotlib-users] turn off tick reflection

2010-03-11 Thread Jae-Joon Lee
On Wed, Mar 10, 2010 at 3:11 PM, Matthew MacLeod wrote: > I'm trying to make a plot that shares the x axis, but that have two > different y scales. I can do this, almost, I say almost because I don't > know how to turn off the reflection of my y ticks, so they are reflected > and obscure the scale

Re: [Matplotlib-users] Can't show grid on subplotzero???

2010-03-11 Thread Jae-Joon Lee
This is a known bug that is fixed in svn (maybe in maint. release too). The following link gives you a workaround. http://abitofpythonabitofastronomy.blogspot.com/2009/09/grid-bug-in-axesgrid.html Depending on your needs, it may better to use spines instead of axes_grid toolkit. http://matplotli

Re: [Matplotlib-users] Re move, mask, or hide parts of a polygon?

2010-03-11 Thread Jae-Joon Lee
On Tue, Mar 9, 2010 at 4:22 PM, othererik wrote: > I assumed that my_polygon.set_clip_path( patch ) where patch is a > patches.Polygon would do the trick. > Please post a complete example that demonstrate your problem. My guess is that maybe you are not setting the transform of the clipping path

Re: [Matplotlib-users] get/set current index of color cycle, how to

2010-03-11 Thread KrishnaPribadi
I figured it out, found answer on this site: http://old.nabble.com/Automatically-changing-line-colors-td893139.html#a949316 -- View this message in context: http://old.nabble.com/get-set-current-index-of-color-cycle%2C-how-to-tp27864297p27865867.html Sent from the matplotlib - users mailing lis

Re: [Matplotlib-users] How do I use a grid geometry manager in a matplotlib tk backend

2010-03-11 Thread Alan G Isaac
On 3/11/2010 8:35 AM, Kim Hansen wrote: > I would really like to use a grid geometry manager instead http://effbot.org/tkinterbook/grid.htm hth, Alan Isaac -- Download Intel® Parallel Studio Eval Try the new software t

[Matplotlib-users] get/set current index of color cycle, how to

2010-03-11 Thread KrishnaPribadi
get current line cycle (color cycle), how to Does anyone know how to get and set the index in the line color cycle for a particular line? I’m plotting a collection of lines on 2 axes using the default line colors. After I finish plotting on the 1st axis, I then want to plot on the 2nd axis and re

[Matplotlib-users] get current line cycle (color cycle), how to

2010-03-11 Thread Pribadi, Krishna
Hello all, Does anyone know how to get the current line cycle or color cycle for a particular line. I'm plotting a collection of lines on 2 axes. After I finish plotting on the 1st axis, I then want to plot on the 2nd axis and resume where the line color left off in the 1st axis but so far I res

[Matplotlib-users] How do I use a grid geometry manager in a matplotlib tk backend

2010-03-11 Thread Kim Hansen
Hi matplotlib list, I am a resonably experienced python and matplotlib user, when it comes to make cmd line programs for batch processing, but I have never tried to make python GUI before. I am working on a prototype product, where I want the typical matplotlib plotting window, but extended with

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-11 Thread Ian Thomas
Chris Barker wrote: > ... ... To summarise, you recommend the following units of functionality: 1) Triangulation class to wrap existing delaunay code. 2) Separate the storage of and creation of contour sets so that you can create your own. 3) tricontour and tricontourf functions to contour a Tri