Re: [Matplotlib-users] example of pareto chart

2012-09-24 Thread Paul Hobson
> On Mon, Sep 24, 2012 at 12:21 AM, Paul Tremblay > wrote: >> >> Here is my example of a Pareto chart. >> >> For an explanation of a Pareto chart: >> >> http://en.wikipedia.org/wiki/Pareto_chart >> >> Could I get this chart added to the matplolib gallery? >> >> >> Thanks >> >> Paul >> > On 9/24/1

Re: [Matplotlib-users] example of pareto chart

2012-09-24 Thread Paul Tremblay
By the way, I had done the chart differently to begin with. But this code requires more lines, more imports, and is more complex. (Without plt.gca().yaxis or the formatter, the graph will not come out.) import matplotlib.pyplot as plt import numpy as np from matplotlib.ticker import FuncFormatter

Re: [Matplotlib-users] example of pareto chart

2012-09-24 Thread Paul Tremblay
I took my example from the matplotlib pages itself: http://matplotlib.org/examples/api/fahrenheit_celcius_scales.html If you know a better way, please show me. P. On 9/24/12 4:40 PM, Benjamin Root wrote: On Mon, Sep 24, 2012 at 12:21 AM, Paul Tremblay mailto:paulhtremb...@gmail.com>> wrote

Re: [Matplotlib-users] Qt4/PySide memory leak

2012-09-24 Thread Christoph Gohlke
On 9/24/2012 3:32 PM, David Honcik wrote: > I've run into a large memory leak using Matplotlib with PySide and the > Qt4 back end. I'm using : > Python 3.2 > Numpy 1.6.2 > Pyside 1.1.1 (qt474) > Matplotlib 1.2 (first the Capetown Group port to Python 3, then 1.2 RC2) > on Windows XP 32 bit > I've

Re: [Matplotlib-users] A pie chart with rotated text labels

2012-09-24 Thread Martin Mokrejs
Hi Ben, Benjamin Root wrote: > > > On Monday, September 24, 2012, Martin Mokrejs wrote: > > Hi, > I have pie charts with relatively long texts assigned to each slice of > the pie. > The text is drawn horizontally. Instead, I would like to have it rotated > at the > same angl

Re: [Matplotlib-users] A pie chart with rotated text labels

2012-09-24 Thread Benjamin Root
On Monday, September 24, 2012, Martin Mokrejs wrote: > Hi, > I have pie charts with relatively long texts assigned to each slice of > the pie. > The text is drawn horizontally. Instead, I would like to have it rotated > at the > same angle as the slice itself (i.e. centered at the "axis" of the

[Matplotlib-users] A pie chart with rotated text labels

2012-09-24 Thread Martin Mokrejs
Hi, I have pie charts with relatively long texts assigned to each slice of the pie. The text is drawn horizontally. Instead, I would like to have it rotated at the same angle as the slice itself (i.e. centered at the "axis" of the slice). In this way the text would not overlap other text of adj

[Matplotlib-users] Qt4/PySide memory leak

2012-09-24 Thread David Honcik
I've run into a large memory leak using Matplotlib with PySide and the Qt4 back end. I'm using : Python 3.2 Numpy 1.6.2 Pyside 1.1.1 (qt474) Matplotlib 1.2 (first the Capetown Group port to Python 3, then 1.2 RC2) on Windows XP 32 bit I've tried using the Python 2.7 branch of all of the ab

Re: [Matplotlib-users] example of pareto chart

2012-09-24 Thread Benjamin Root
On Mon, Sep 24, 2012 at 12:21 AM, Paul Tremblay wrote: > Here is my example of a Pareto chart. > > For an explanation of a Pareto chart: > > http://en.wikipedia.org/wiki/Pareto_chart > > Could I get this chart added to the matplolib gallery? > > > Thanks > > Paul > > Your code looks overly complic

[Matplotlib-users] set_clip_mask() single polygon for multiple subplots

2012-09-24 Thread Scott Henderson
I'd like to use the same patch to clip two images that share the same axes, and extract values from the un-clipped region of both arrays. Unfortunately this seems harder than expected. Code & questions below, Thanks! from matplotlib.patches import Polygon import matplotlib.pyplot as plt from nu

[Matplotlib-users] matplotlib 1.2.0rc2 is available

2012-09-24 Thread Michael Droettboom
matplotlib 1.2.0rc2 is available! This is the culmination of many months of hard work. 1.2.0 is the first release to support Python 3.x, and drops support for Python 2.5 and earlier. A more detailed list of changes is available here: http://matplotlib.org/1.2.0/users/whats_new.html For the

Re: [Matplotlib-users] Image as marker and axes "equal" aspect ratio

2012-09-24 Thread Andrea Gavana
On 22 September 2012 16:57, Jae-Joon Lee wrote: > I recommend you to use OffsetImage. Here is an example of how one can > use OffsetImage. > > http://matplotlib.org/examples/pylab_examples/demo_annotation_box.html > > And attached is the modified version of the original script. Thank you JJ, I was