Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-22 Thread Jan Strube
Hi John, Eric, sorry to bug again, but was either of you able to reproduce my findings that in svn head the tick labels don't get printed if the formatter changes them to be outside the range of the axis? Cheers, Jan On Fri, Feb 19, 2010 at 10:40 AM, Jan Strube curious...@gmail.com wrote:

[Matplotlib-users] dropdown menu

2010-02-22 Thread Wolfgang Kerzendorf
Hello, Now that I have found the awesome widgets in matplotlib I want more: dropdown menus? will that come at some stage? Cheers Wolfgang -- Download Intel#174; Parallel Studio Eval Try the new software tools for

Re: [Matplotlib-users] dropdown menu

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 4:26 AM, Wolfgang Kerzendorf wkerz...@mso.anu.edu.au wrote: Hello, Now that I have found the awesome widgets in matplotlib I want more: dropdown menus? will that come at some stage? I have worked on it, but not finished it. I put the code in svn under examples

Re: [Matplotlib-users] label not print theta symbol

2010-02-22 Thread Philipp Bender
Hi, How do I print as label of an axis the Theta symbol - θ? you can take a look in the docs, there are examples how to use LaTeX for the labels. You get the letter in LaTeX with \theta or \Theta. -- Download

Re: [Matplotlib-users] label not print theta symbol

2010-02-22 Thread Darren Dale
On Mon, Feb 22, 2010 at 8:36 AM, Philipp Bender li...@rootiniert.de wrote: Hi, How do I print as label of an axis the Theta symbol - θ? you can take a look in the docs, there are examples how to use LaTeX for the labels. You get the letter in LaTeX with \theta or \Theta. But be sure to

Re: [Matplotlib-users] label not print theta symbol

2010-02-22 Thread Samuel Teixeira Santos
thanks both! very nice LaTeX 2010/2/22 Darren Dale dsdal...@gmail.com On Mon, Feb 22, 2010 at 8:36 AM, Philipp Bender li...@rootiniert.de wrote: Hi, How do I print as label of an axis the Theta symbol - θ? you can take a look in the docs, there are examples how to use LaTeX for the

Re: [Matplotlib-users] 101 Point Segmentation Fault

2010-02-22 Thread Michael Droettboom
Can you provide a gdb backtrace? Run gdb python, then at the gdb prompt type run -c 'import pylab; pylab.clf(); pylab.plot(pylab.sin(range(101))); pylab.xlabel(Test X); pylab.ylabel(Test Y); pylab.show()'. After it segfaults, type bt to get a backtrace, and copy-and-paste it to this list.

Re: [Matplotlib-users] Interpolation between points during plot()

2010-02-22 Thread Michael Droettboom
The drawing between the points is done using the regular line drawing commands of the backend. So there isn't really any low-level control over how the line between points is drawn. As a workaround, however, you can interpolate the data yourself and just pass more points to matplotlib. You

Re: [Matplotlib-users] Pydot graphs in matplotlib?

2010-02-22 Thread Michael Droettboom
Erik Tollerud wrote: 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

[Matplotlib-users] Graph gains a blank space at the right hand side

2010-02-22 Thread Geoff Bache
Hi all, I'm having some trouble with graphs ending up wider than I'd like. I'm using matplotlib 0.98.5.2. If I do as follows: import pylab pylab.clf() figure2 = pylab.figure(1) axessubplot2 = pylab.subplot(111) axessubplot2.fill_between([0, 1, 2, 3, 4, 5, 6], [0, 0, 0, 0, 0, 0, 0], [1, 1, 1, 1,

Re: [Matplotlib-users] Clipping

2010-02-22 Thread Michael Droettboom
The coordinates for Circle (and all patches) are in data coordinates. So the (300, 300) is relative to the values in the data itself. When adding a patch directly to a plot, however, the limits may not automatically update, so you may need to call axes.set_xlim or axes.set_ylim to adjust

Re: [Matplotlib-users] 101 Point Segmentation Fault

2010-02-22 Thread Joseph D Cali
I will be sure to use gdb and bt to get that information next time I encounter the segmentation fault or any other error that I post to list. I tried going back to the numpy.dev8106 version just now in an attempt to recreate the conditions of the error, but I was unsuccessful in generating any

Re: [Matplotlib-users] mplot3d stays?

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 10:01 AM, Ben Axelrod baxel...@coroware.com wrote: John, your assesment of the problem is correct.  And I believe your suggested solution is also correct.  Currently, each call to a mplot3d plot method is treated independantly.  They get converted into custom

Re: [Matplotlib-users] Clipping

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 10:11 AM, Michael Droettboom md...@stsci.edu wrote: The coordinates for Circle (and all patches) are in data coordinates. So the (300, 300) is relative to the values in the data itself.  When adding a patch directly to a plot, however, the limits may not automatically

[Matplotlib-users] missing module docs

2010-02-22 Thread Ben Axelrod
I noticed that there are many modules in the current code base that are not listed at: http://matplotlib.sourceforge.net/modindex.html. I understand that a few are new files and that the documentation for these will be generated during the next release. But I know that most of these were in

Re: [Matplotlib-users] missing module docs

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 1:44 PM, Ben Axelrod baxel...@coroware.com wrote: I noticed that there are many modules in the current code base that are not listed at: http://matplotlib.sourceforge.net/modindex.html. I understand that a few are new files and that the documentation for these will

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 3:42 PM, Jan Strube curious...@gmail.com wrote: Hi John, the attachment may not make it to the list. However, please run the modified test.py that I have attached. It requires the attached input file. Then change it to read the original input file. In my case: The

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-22 Thread John Hunter
On Mon, Feb 22, 2010 at 4:33 PM, John Hunter jdh2...@gmail.com wrote:  polycol = plt.hexbin(data['jetMomentum'][cut] / 1000, data['deltaR'][cut],gridsize=50, norm=colors.LogNorm())  cb = plt.colorbar(norm=colors.LogNorm()) but this appears to be broken: I committed some changes to support

Re: [Matplotlib-users] hexbin log bins and colorbar

2010-02-22 Thread Eric Firing
John Hunter wrote: On Mon, Feb 22, 2010 at 4:33 PM, John Hunter jdh2...@gmail.com wrote: polycol = plt.hexbin(data['jetMomentum'][cut] / 1000, data['deltaR'][cut],gridsize=50, norm=colors.LogNorm()) cb = plt.colorbar(norm=colors.LogNorm()) but this appears to be broken: I committed some

[Matplotlib-users] How to control display precision and style (e.g., %f or %e) of axis tick labels?

2010-02-22 Thread David Goldsmith
I've searched and searched the online docs...please help. DG -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune

Re: [Matplotlib-users] How to control display precision and style (e.g., %f or %e) of axis tick labels?

2010-02-22 Thread Philipp Bender
Hi David, I found this one:: xticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') ) On the page http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.xticks If I had that problem I would try to do something like that: xvalues = linspace(0,100,1000) xticks(xvalues,

Re: [Matplotlib-users] missing module docs

2010-02-22 Thread Andrew Straw
John Hunter wrote: On Mon, Feb 22, 2010 at 1:44 PM, Ben Axelrod baxel...@coroware.com mailto:baxel...@coroware.com wrote: I noticed that there are many modules in the current code base that are not listed at: http://matplotlib.sourceforge.net/modindex.html. I understand