[Matplotlib-users] example of pareto chart

2012-09-23 Thread Paul Tremblay
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 import matplotlib.pyplot as plt import numpy as np def update_ax2(axx): ax2.set_ylim(0, 100) ax2.f

Re: [Matplotlib-users] Updating quiver arrows in animation

2012-09-23 Thread Ryan May
On Sat, Sep 22, 2012 at 12:40 PM, Eric Firing wrote: > On 2012/09/22 3:03 AM, reckoner wrote: >> Hi, >> >> I have a plot that includes arrows drawn by the quiver command. I would >> like to create animation using Func Animation, but I don't know how to >> update the quiver arrows. I can update eve

[Matplotlib-users] Conversion to grayscale for Laser Printing

2012-09-23 Thread Michael McNeil Forbes
Hi Everyone, I am considering the best practices for producing high-quality plots for publication. I would like to be able to use colour and and transparency for screen viewing, but also want to ensure that the graphs print well. The typical problem I run into is using colors for data curves. W

Re: [Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Eric Firing
On 2012/09/23 9:27 AM, Benjamin Root wrote: > > > On Sunday, September 23, 2012, Giovanni Plantageneto wrote: > > Hi everybody, > sorry, I guess the question is trivial, but I confess my matplotlib > and python ignorance. > > I'm running some code written by someone else, and appare

Re: [Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Eric Firing
On 2012/09/23 9:45 AM, Giovanni Plantageneto wrote: > One of the suggestions I got works: > >> Maybe this: > >> self.ax.get_figure().clf() >> self.ax.get_figure().add_axes(self.ax) This seems a bit dangerous, because logically, even if does not presently do so, the clf() call could remove the fig

Re: [Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Giovanni Plantageneto
One of the suggestions I got works: >Maybe this: >self.ax.get_figure().clf() >self.ax.get_figure().add_axes(self.ax) >But it looks really weird to me. If I understand it correctly, from matplotlib version 1.1.1 (?) statements as "self.ax.get_figure().axes = []" are not possible any more as axes

Re: [Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Benjamin Root
On Sunday, September 23, 2012, Giovanni Plantageneto wrote: > Hi everybody, > sorry, I guess the question is trivial, but I confess my matplotlib > and python ignorance. > > I'm running some code written by someone else, and apparently some > bits of the code are not compliant with newer versions

[Matplotlib-users] Correct versions of old commands

2012-09-23 Thread Giovanni Plantageneto
Hi everybody, sorry, I guess the question is trivial, but I confess my matplotlib and python ignorance. I'm running some code written by someone else, and apparently some bits of the code are not compliant with newer versions of matplotlib. So, how can I rewrite the following, which give AttributE

Re: [Matplotlib-users] mplot3d grid/axes

2012-09-23 Thread Brian J Mingus
Hey Ben, Here is the code I am using to generate this plot, in addition to an example input. It's basicaIlly a list of lists, where each inner list is a time series. Plotting a 3D time series as a 3D surface rectangle is probably a pretty common problem. It would be awesome if I didn't have to swi