Re: [Matplotlib-users] example of pareto chart

2012-09-25 Thread Paul Hobson
On Mon, Sep 24, 2012 at 12:21 AM, Paul Tremblay paulhtremb...@gmail.com 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/12 4:40

[Matplotlib-users] Tex-style factorial ! in legend

2012-09-25 Thread andreasl
Hello, When I use something along the lines of legend( (r'$0.5^x/x!$', r'$1^x/x!$') ) for some reason omegas are drawn instead of the ! sign. I can't find an alternative here http://matplotlib.org/users/mathtext.html nor elsewhere. Any ideas? Many thanks, Andreas

Re: [Matplotlib-users] Tex-style factorial ! in legend

2012-09-25 Thread Damon McDougall
On Tue, Sep 25, 2012 at 11:10 AM, andreasl andre...@lavabit.com wrote: Hello, When I use something along the lines of legend( (r'$0.5^x/x!$', r'$1^x/x!$') ) for some reason omegas are drawn instead of the ! sign. I can't find an alternative here nor elsewhere. Any ideas? Looks fine to

[Matplotlib-users] resolution on plotting for retina displays?

2012-09-25 Thread mdekauwe
Hi, For all those using newer macs [and I assume other newer computers] the resolution on the plt.show popup window is a little rough (not sure of the technical name). Is there a way to double up the resolution? I tried changing a few things but none of them seemed to make much difference. Does

Re: [Matplotlib-users] resolution on plotting for retina displays?

2012-09-25 Thread Benjamin Root
On Tue, Sep 25, 2012 at 8:14 AM, mdekauwe mdeka...@gmail.com wrote: Hi, For all those using newer macs [and I assume other newer computers] the resolution on the plt.show popup window is a little rough (not sure of the technical name). Is there a way to double up the resolution? I tried

Re: [Matplotlib-users] Tex-style factorial ! in legend

2012-09-25 Thread andreasl
On 25/09/12 11:44, Damon McDougall wrote: On Tue, Sep 25, 2012 at 11:10 AM, andreasl andre...@lavabit.com wrote: Hello, When I use something along the lines of legend( (r'$0.5^x/x!$', r'$1^x/x!$') ) for some reason omegas are drawn instead of the ! sign. I can't find an alternative here

Re: [Matplotlib-users] resolution on plotting for retina displays?

2012-09-25 Thread mdekauwe
I tried your suggestions...the first one (Qt4Agg) resulted in an error (below) so it looks like I am missing some packages and the second option (TkAgg) pretty much gave the same quality as the macosx backend. thanks. File

Re: [Matplotlib-users] Tex-style factorial ! in legend

2012-09-25 Thread Michael Droettboom
This is working for me, even with text.usetex set to False. What version of matplotlib are you using? Do you have anything set in your matplotlibrc file? Mike On 09/25/2012 06:10 AM, andreasl wrote: Hello, When I use something along the lines of legend( (r'$0.5^x/x!$', r'$1^x/x!$') )

[Matplotlib-users] Trouble with fonts

2012-09-25 Thread Steven Boada
List, I am trying, with little success, to change the fonts on my plots. It seems like a simple thing to do, but I can't seem to make it work. First, here is the relevant section of my Matplotlibrc file: backend : GTKAgg font.family : sans-serif font.style : normal

Re: [Matplotlib-users] Trouble with fonts

2012-09-25 Thread Michael Droettboom
Do you have a font installed called Helvetica? That's pretty rare these days... most systems have one of the many Helvetica clones instead. Does fc-match Helvetica (at the commandline) return anything? Mike On 09/25/2012 10:05 AM, Steven Boada wrote: List, I am trying, with little

Re: [Matplotlib-users] Trouble with fonts

2012-09-25 Thread Steven Boada
Hey Mike $ fc-match Helvetica n019003l.pfb: Nimbus Sans L Regular Perhaps I don't have the fonts installed... In my matplotlib/mpl-data/fonts/ I have the following fonts installed... in ttf/ cmb10.ttf RELEASENOTES.TXT STIXSizFourSymBol.ttf VeraIt.ttf cmex10.ttf

Re: [Matplotlib-users] example of pareto chart

2012-09-25 Thread Jeffrey Melloy
I think pareto charts are supposed to be percentages, not totals. data = [83, 38, 7, 5, 5, 4, 4, 2, 1] labels = [Vertical, Horizontal, Upper, Lower, Left, Right, Behind, Front, Down] colors = [#001499, #ff7f00, #9440ed, #edc240, #238c3f, #a60085, #00cca3, #464f8c, #005947, #4d,

Re: [Matplotlib-users] Trouble with fonts

2012-09-25 Thread Michael Droettboom
Those *.afm fonts are only available in the postscript backend when ps.usecorefonts is set to True. Otherwise, you have to use TrueType/OpenType fonts. Mike On 09/25/2012 12:11 PM, Steven Boada wrote: Hey Mike $ fc-match Helvetica n019003l.pfb: Nimbus Sans L Regular Perhaps I don't have

Re: [Matplotlib-users] example of pareto chart

2012-09-25 Thread Paul Tremblay
There are two problems with this chart: 1. The scale is wrong. Imagine that you can stack all the bars on top of each other. When stacked, all the bars should fill in the graph exactly. In other words: ax1.set_ylim = sum(defects). See my original, or the wiki page. 2. The line starts in the

Re: [Matplotlib-users] resolution on plotting for retina displays?

2012-09-25 Thread Benjamin Root
On Tue, Sep 25, 2012 at 8:53 AM, mdekauwe mdeka...@gmail.com wrote: I tried your suggestions...the first one (Qt4Agg) resulted in an error (below) so it looks like I am missing some packages and the second option (TkAgg) pretty much gave the same quality as the macosx backend. thanks. I am

Re: [Matplotlib-users] Tex-style factorial ! in legend

2012-09-25 Thread Michael Droettboom
On 09/25/2012 03:27 PM, andreasl wrote: Thanks Mike. Interesting that it works for you with mathtext only. I am in some confusion about the matplotlib version I'm using. Synaptic (package manager) says that for matplotlib I have 0.99.1.2-3ubuntu1installed. Asking for help(matplotlib) in

Re: [Matplotlib-users] resolution on plotting for retina displays?

2012-09-25 Thread mdekauwe
Well perhaps it is fine, I wasn't really suggesting it was a bug. Just if I stretched the plot window a bit the resolution looked a bit fuzzier than i remembered. Perhaps my memory isn't a good test and I will compare it to the computer at work. I just did a screen print and it looks fine unless

Re: [Matplotlib-users] resolution on plotting for retina displays?

2012-09-25 Thread Eric Firing
On 2012/09/25 9:23 AM, Damon McDougall wrote: On Tue, Sep 25, 2012 at 8:09 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Sep 25, 2012 at 8:53 AM, mdekauwe mdeka...@gmail.com wrote: I tried your suggestions...the first one (Qt4Agg) resulted in an error (below) so it looks like I am

Re: [Matplotlib-users] Trouble with fonts

2012-09-25 Thread Steven Boada
I have fixed it. Or, I have a better handle on what the stupid thing is doing. LOL. The problem was a couple of things. 1. Michael was right. There was no file named Helvetica.ttf installed on my machine. 2. The path were I thought MPL was looking for files wasn't the right path. I thought

[Matplotlib-users] How to remove an element from cbook.Grouper()

2012-09-25 Thread Damon McDougall
Hi, I'm playing with cbook.Grouper(), and I see that join() adds elements. How do I remove elements? Best, Damon -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom

Re: [Matplotlib-users] example of pareto chart

2012-09-25 Thread Paul Tremblay
Yes, that works nice. So my final code, as minimalist as possible (while still maintaining readability): import matplotlib.pyplot as plt import numpy as np # the data to plot defects = [32, 22, 15, 5, 2] labels = ['vertical', 'horizontal', 'behind', 'left area', 'other'] the_sum = sum(defects) #

Re: [Matplotlib-users] How to remove an element from cbook.Grouper()

2012-09-25 Thread Michael Droettboom
It doesn't have that functionality because we haven't needed it internally. Feel free to add it if you need it. Mike On 09/25/2012 07:13 PM, Damon McDougall wrote: Hi, I'm playing with cbook.Grouper(), and I see that join() adds elements. How do I remove elements? Best, Damon

[Matplotlib-users] default data sets for matplotlib?

2012-09-25 Thread Paul Tremblay
In R, there are many default data sets one can use to both illustrate code and explore the scripting language. Instead of having to fake data, one can pull from meaningful data sets, created in the real world. For example, this one liner actually produces a plot: plot(mtcars$hp~mtcars$mpg) where

Re: [Matplotlib-users] default data sets for matplotlib?

2012-09-25 Thread josef . pktd
On Wed, Sep 26, 2012 at 12:05 AM, Paul Tremblay paulhtremb...@gmail.com wrote: In R, there are many default data sets one can use to both illustrate code and explore the scripting language. Instead of having to fake data, one can pull from meaningful data sets, created in the real world. For