[Matplotlib-users] Scatter plot with a specific size per point

2012-03-26 Thread Matthieu Brucher
hi, I'd like to display a scatter plot where the size for each element is fixed. Currently, when I modify the size of the figure, the size of a marker is fixed, and I would like it to be proportional to the window. I want this because the size of the marker indicates an extent, and I would like

Re: [Matplotlib-users] Scatter plot with a specific size per point

2012-03-26 Thread Zachary Pincus
I'd like to display a scatter plot where the size for each element is fixed. Currently, when I modify the size of the figure, the size of a marker is fixed, and I would like it to be proportional to the window. I want this because the size of the marker indicates an extent, and I would

Re: [Matplotlib-users] Scatter plot with a specific size per point

2012-03-26 Thread Matthieu Brucher
Indeed, a little bit less simple, but the solution nonetheless. Thank you! 2012/3/26 Zachary Pincus zachary.pin...@yale.edu I'd like to display a scatter plot where the size for each element is fixed. Currently, when I modify the size of the figure, the size of a marker is fixed, and I

Re: [Matplotlib-users] Scatter plot with a specific size per point

2012-03-26 Thread Tony Yu
On Mon, Mar 26, 2012 at 8:26 AM, Matthieu Brucher matthieu.bruc...@gmail.com wrote: Indeed, a little bit less simple, but the solution nonetheless. Thank you! 2012/3/26 Zachary Pincus zachary.pin...@yale.edu I'd like to display a scatter plot where the size for each element is fixed.

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-26 Thread Christopher Graves
On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves christoph.gra...@gmail.com wrote: On Sun, Mar 11, 2012 at 2:06 PM, Mike Kaufman mck...@gmail.com wrote: On 3/11/12 8:14 AM, cgraves wrote: Hi, here is an example script which places minor ticks with 2 per major tick (minor tick spacing

[Matplotlib-users] Escaping in matplotlib.font_manager.findfont('sans\\-serif')

2012-03-26 Thread Martin Mokrejs
Hi, I wondered why the matplotlib.font_manager.rcParams contains sometimes escaped minus signs in font names: font_manager.rcParams['mathtext.sf'] 'sans\\-serif' font_manager.findfont('sans-serif') Traceback (most recent call last): File stdin, line 1, in module File

[Matplotlib-users] Display problem on CentOS

2012-03-26 Thread Magician
Hi. I want to install Matplotlib from source code on CentOS. I've been using Matplotlib for a year. But this is the first time for me to install CentOS by myself. I installed CentOS 6.2 in basic install option. Next, I installed NumPy and Matplotlib. .matplotlibrc isn't set. It looks

Re: [Matplotlib-users] Escaping in matplotlib.font_manager.findfont('sans\\-serif')

2012-03-26 Thread Michael Droettboom
On 03/26/2012 04:36 PM, Martin Mokrejs wrote: Hi, I wondered why the matplotlib.font_manager.rcParams contains sometimes escaped minus signs in font names: font_manager.rcParams['mathtext.sf'] 'sans\\-serif' font_manager.findfont('sans-serif') Traceback (most recent call last): File

[Matplotlib-users] Export 3D plot to 3D file format

2012-03-26 Thread klo uo
Does someone maybe knows of a project that allows exporting MPL 3D plot (mpl_toolkits.mplot3d.Axes3D) to 3D file format, like OBJ, 3DS, BLEND ... any kind? -- This SF email is sponsosred by: Try Windows Azure free for 90

[Matplotlib-users] plot object?

2012-03-26 Thread Emmanuel Mayssat
Hello, I am programming using POO (object programming) I cannot find a way to create a plot as an object In concept, I would like to do something like from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure self.figure =

Re: [Matplotlib-users] move legend to the foreground: how to use set_zorder() correctly?

2012-03-26 Thread Jae-Joon Lee
zorders are only meaningful among objects in a same axes. An easy workaround is to move the legend in ax1 to ax2. ax2.add_artist(leg1) ax1.legend = None Regards, -JJ On Thu, Mar 22, 2012 at 10:13 PM, David Verelst david.vere...@gmail.com wrote: Hi All, I am plotting on two

Re: [Matplotlib-users] Arrow with a dashed line

2012-03-26 Thread Jae-Joon Lee
Just to clarify, both arrowstyle='simple' and arrowstyle='-|' draw arrows as patches. In your first example with arrowstyle='simple', the arrow is drawn as filled patch without edges, i.e., linestyle is not effective. arrowstyle=-| also uses a patch but no fill, only stroke. Regards, -JJ On

Re: [Matplotlib-users] how to maintain fractional minor tick spacing

2012-03-26 Thread Mike Kaufman
On 3/26/12 12:49 PM, Christopher Graves wrote: On Sun, Mar 11, 2012 at 2:32 PM, Christopher Graves christoph.gra...@gmail.com mailto:christoph.gra...@gmail.com wrote: Try this: from pylab import * from matplotlib.ticker import AutoMinorLocator clf()

Re: [Matplotlib-users] Taylor diagram (2nd take)

2012-03-26 Thread Jae-Joon Lee
On Wed, Feb 22, 2012 at 12:10 AM, Yannick Copin yannick.co...@laposte.net wrote: after iterating with Michael A. Rawlins over my previous attempt to code a Taylor diagram (see [1]), here's a new version of my code, along with an example plot. Maybe it could make its way into the gallery as an

[Matplotlib-users] (no subject)

2012-03-26 Thread Dorm Eight
hi, everybody! when I run my script, why there is no figure show up? I downloaded the demos from matplotlib gallery and it didn't work either. x=np.arange(100) y=x**2+3*x-1 pl.plot(x,y) [matplotlib.lines.Line2D object at 0x2581050] pl.show() there is no error, no figure pop-up! Thank