Re: [Matplotlib-users] Using matplotlib with Django

2014-05-16 Thread Paul Tremblay
I use django and matplotlib quite a bit at my work. I can probably help you. It is pretty easy to set up with a few basics. I am actually thinking of contributing to the documentation on this. Unfortunately, my code is at work, so I can give the best concrete examples right now. However,

Re: [Matplotlib-users] matplot crases because of XDG_CONFIG_HOME variable

2014-05-15 Thread Paul Tremblay
However, this really is a bug. I have spent about two hours trying to get this to work on EC. Where to I file bugs? P. On Wed, May 7, 2014 at 1:29 PM, Paul Tremblay paulhtremb...@gmail.comwrote: I've discovered the problem and a fix. $HOME is set to /home/ptremblay, but /home/ptremblay does

Re: [Matplotlib-users] matplot crases because of XDG_CONFIG_HOME variable

2014-05-07 Thread Paul Tremblay
On Wed, May 7, 2014 at 7:20 AM, Paul Tremblay paulhtremb...@gmail.comwrote: I am using matplotllib as part of web server. matplotlib causes my server to crash with this error: File /apollo/env/Ssdf/lib/python2.7/site-packages/matplotlib/__init__.py, line 597, in _get_configdir return

Re: [Matplotlib-users] matplot crases because of XDG_CONFIG_HOME variable

2014-05-07 Thread Paul Tremblay
the library. On Wed, May 7, 2014 at 11:50 AM, Paul Tremblay paulhtremb...@gmail.comwrote: I am using our companies pacaking system. The version of matplotlib is 1.3.1, by the way. On Wed, May 7, 2014 at 11:32 AM, Paul Hobson pmhob...@gmail.com wrote: How did you install matplotlib? I've

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

2012-10-18 Thread Paul Tremblay
On 10/18/12 5:45 AM, Damon McDougall wrote: On Thu, Oct 18, 2012 at 10:10 AM, Alexander Eberspaecher alexander.eberspaec...@ovgu.de wrote: Hello, On Wed, 17 Oct 2012 11:38:27 +0100 Damon McDougall damon.mcdoug...@gmail.com wrote: How do people feel about perhaps adding a matplotlib

Re: [Matplotlib-users] installating matplotlib in mac 10.7.4 for python 2.6

2012-10-13 Thread Paul Tremblay
On 10/13/12 8:55 PM, lulu wrote: I have tried to install matplotlib but received an error msg that I need python 2.7. I installed 2.7, then installed matplotlib for appropriate os, but recieved error msg when I ran my program. Then, searching, I am seeing there are some that have installed

Re: [Matplotlib-users] installating matplotlib in mac 10.7.4 for python 2.6

2012-10-13 Thread Paul Tremblay
No. Not in the python shell. In the regular shell. On 10/13/12 11:43 PM, lulu wrote: okay - that sounds easy enough. I am working in the python shell -- just type these lines at the top of my code? -- View this message in context:

Re: [Matplotlib-users] drawing secondary x axis for months: a better way?

2012-10-10 Thread Paul Tremblay
')) make_month_axis(dates = dates, y = y, ax = ax, fig = fig) plt.show() Paul On 10/8/12 11:03 PM, Paul Tremblay wrote: I often have to make graphs with time series, with each point being the start of a week. Below

[Matplotlib-users] drawing secondary x axis for months: a better way?

2012-10-08 Thread Paul Tremblay
I often have to make graphs with time series, with each point being the start of a week. Below is the result I wish: However, in order to make the secondary x axis the the month labels, I need something like 40 lines of code. My strategy consists in first drawing

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

2012-09-27 Thread Paul Tremblay
, Sep 26, 2012 at 12:05 AM, Paul Tremblay paulhtremb...@gmail.com mailto: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

Re: [Matplotlib-users] example of pareto chart

2012-09-27 Thread Paul Tremblay
On 9/26/12 12:31 PM, Benjamin Root wrote: On Wed, Sep 26, 2012 at 12:10 PM, Paul Tremblay paulhtremb...@gmail.com mailto:paulhtremb...@gmail.com wrote: Thanks. I know when doing 8/9 in python 2.x you get 0. With python 3 you get a decimal (Hooray, Python 3!). I ran the script I

Re: [Matplotlib-users] example of pareto chart

2012-09-26 Thread Paul Tremblay
, Pierre Haessig pierre.haes...@crans.orgwrote: Hi, Just a detail : Le 26/09/2012 04:29, Paul Tremblay a écrit : percent = (np.divide(the_cumsum, the_sum)) * 100 This lines doesn't work on my computer (numpy 1.6.2) Indeed, there is a casting issue : In [2]: percent Out[2]: array([ 0, 0

[Matplotlib-users] bug with bar graph when plotting zero values?

2012-09-26 Thread Paul Tremblay
I noticed today that when I create a bar graph with zero values that the labels don't align correctly: import matplotlib.pyplot as plt import numpy as np fig = plt.figure() names = ['name a', 'name b', 'name c', 'named', 'name e', 'name f'] defects = [0, 0, 0, 5, 6, 7] ax = fig.add_subplot(111)

Re: [Matplotlib-users] example of pareto chart

2012-09-25 Thread Paul Tremblay
.set_ylabel('Percentage') ax2.set_ylim(0,110) plt.show() On Mon, Sep 24, 2012 at 11:43 PM, Paul Hobson pmhob...@gmail.com wrote: 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

Re: [Matplotlib-users] example of pareto chart

2012-09-25 Thread Paul Tremblay
') # create the right y axis label plt.show() On Tue, Sep 25, 2012 at 2:31 PM, Jeffrey Melloy jmel...@gmail.com wrote: ax1.set_ylim(0, sum(data)) ax2.set_ylim(0, 100) seems to solve both of these issues. On Tue, Sep 25, 2012 at 11:16 AM, Paul Tremblay paulhtremb...@gmail.com wrote

[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] 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 paulhtremb...@gmail.com

Re: [Matplotlib-users] example of pareto chart

2012-09-24 Thread Paul Tremblay
): return round(x/the_sum, 1) * 100 formatter = FuncFormatter(to_percent) ax2.yaxis.set_major_formatter(formatter) ax1.set_ylabel('Defects') ax2.set_ylabel('Percentage') plt.show() On Mon, Sep 24, 2012 at 8:50 PM, Paul Tremblay paulhtremb...@gmail.comwrote: I took my example from the matplotlib

[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)

Re: [Matplotlib-users] python question from matlab user

2012-09-07 Thread Paul Tremblay
in your jmkfile.py you should have from pylab import * Paul On 9/8/12 12:45 AM, Jody Klymak wrote: Hi All, Sorry to ask a dumb python newbie question, but the problem arose while reading the matplotlib documentation, and an hour or so on the internet didnt' help, so I felt it was

Re: [Matplotlib-users] SyntaxError: matplotlib python3 install problem

2012-09-06 Thread Paul Tremblay
I build from github. On Thu, Sep 6, 2012 at 10:35 AM, James Morrison james.morri...@gmail.comwrote: Hi, I downloaded a zip from the master on the github matplotlib repository, when I run: python3 setup.py install I get several 'SyntaxError: invalid syntax' errors which appear to highlight

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-05 Thread Paul Tremblay
, most users won't encounter the problems I did, but a warning in a FAQ might solve a few headaches, regardless of how the developers decided to go. Thanks for your help. Paul On Tue, Sep 4, 2012 at 3:09 PM, Benjamin Root ben.r...@ou.edu wrote: On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay

[Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-04 Thread Paul Tremblay
The following Python code: ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5) Produces this error with Python 3.2: Traceback (most recent call last): File scripts/audit_reports_weekly.py, line 150, in module ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5)