[Matplotlib-users] Combine Poly3DCollections to circumvent z-ordering issue

2011-06-15 Thread Jakob Gager
Hi, I searched through various previous posts and it seems that the z-ordering issue with mplot3d has been met many times. When multiple Poly3DCollections are added to an Axes3D object, e.g. via multiple plot_surface commands, the z-ordering routine is not capable of producing the right

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-16 Thread Jakob Gager
Hi, I'm not sure if it helps, but you can try to plot always into the same figure object instead of creating a new one every time you call the plot_density function. I would create one figure in advance and pass this the plot_density method. Within the method set the figure active

[Matplotlib-users] Define linewidth in data units

2011-08-22 Thread Jakob Gager
Hi, is there a way to define the line width in data units, i.e. no in screen based but in data coordinate system based units? This way the line thickness would scale during zooming (which is intended!). This way parallel areas would be much easier to plot. If this is not possible has anyone

Re: [Matplotlib-users] svg in plot

2012-02-17 Thread Jakob Gager
Hi, if the import filetype is not restricted to svg, you can use PyX to place vector eps figures into other eps figures. I used this in a two step approach (first create the plot with matplotlib and store is as eps and second, use PyX to combine the plot with a vector figure) in a single

[Matplotlib-users] Problem with text bounding box

2012-09-03 Thread Jakob Gager
Recently, I switched from matplotlib 0.99 to 1.0.1 and unfortunately discovered that my text scaling script stopped working properly. The script scales the given text to fit into the current figure. A quick example of what I'm doing (works in 0.99, but not in 1.0.1 and 1.1.1rc): import

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Jakob Gager
On 09/03/2012 08:57 PM, Eric Firing wrote: It looks like you can either use the _get_layout() method (which requires that you specify the renderer), or, if you know the text object will be among the last 50 for which _get_layout() has been called, you can use txt1.cached[txt1.get_prop_typ()].

Re: [Matplotlib-users] Problem with text bounding box

2012-09-04 Thread Jakob Gager
On 09/04/2012 09:13 AM, Eric Firing wrote: On 2012/09/03 8:33 PM, Jakob Gager wrote: On 09/03/2012 08:57 PM, Eric Firing wrote: It looks like you can either use the _get_layout() method (which requires that you specify the renderer), or, if you know the text object will be among the last 50

Re: [Matplotlib-users] mpl command-line utilities

2012-10-18 Thread Jakob Gager
I totally agree with to general opinion that a command line tool would be beneficial. I've written a simple mpl commandline plotter quite some time ago and use it frequently for quick previews but also to create simple plots for presentations. It features some options to modify the appearance

Re: [Matplotlib-users] changing the shade of a color depending on a value

2013-02-27 Thread Jakob Gager
Hi have a look at http://matplotlib.org/examples/pylab_examples/multicolored_line.html and http://matplotlib.org/examples/pylab_examples/show_colormaps.html. br Jakob On 02/27/2013 10:49 AM, Rita wrote: Hi, I am currently plotting cpu utilization over time (plot_time). I would like the