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, basic
wrote:
> Hi Paul and Paul,
>
> I thought I'd pile onto this Paul Pile...
>
> Paul Tremblay, on 2014-05-15 16:33, wrote:
> > 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?
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 wrote:
> I've discovered the problem and a fix. $HOME is set to /home/ptremblay,
> but /home/ptremblay does not exi
lotlib
Then I can import the library.
On Wed, May 7, 2014 at 11:50 AM, Paul Tremblay wrote:
> 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 wrote:
>
>> How did you insta
s
>
>
> On Wed, May 7, 2014 at 7:20 AM, Paul Tremblay wrote:
>
>> 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/matplotl
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 _get_config_or_cache_dir(_get_xdg_config_dir())
File
"/apollo/env/Ssdf/lib/python
On 10/18/12 5:45 AM, Damon McDougall wrote:
> On Thu, Oct 18, 2012 at 10:10 AM, Alexander Eberspaecher
> wrote:
>> Hello,
>>
>> On Wed, 17 Oct 2012 11:38:27 +0100
>> Damon McDougall wrote:
>>
>>> How do people feel about perhaps adding a matplotlib version, mocking
>>> the same calling signature
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:
> http://matplotlib.1069221.n5.nabble.com/installa
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 install
s, y)
ax.xaxis.set_major_formatter(
matplotlib.dates.DateFormatter('%W'))
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 oft
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 the
On 9/26/12 12:31 PM, Benjamin Root wrote:
On Wed, Sep 26, 2012 at 12:10 PM, Paul Tremblay
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 submitted with
gt; On Wed, Sep 26, 2012 at 12:05 AM, Paul Tremblay
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
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)
w
, Pierre Haessig wrote:
> 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]: pe
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
;) # create the left y axis label
ax2.set_ylabel('Percentage') # create the right y axis label
plt.show()
On Tue, Sep 25, 2012 at 2:31 PM, Jeffrey Melloy wrote:
> ax1.set_ylim(0, sum(data))
> ax2.set_ylim(0, 100)
> seems to solve both of these issues.
>
> On Tue, Sep 25,
, ax1 = plt.subplots()
> ax2 = ax1.twinx()
>
> for i, d in enumerate(data):
> ax1.bar(i + .25, d, .5, zorder=0, alpha=0.5, label = labels[i],
> color=colors[i % len(colors)])
>
> percent = [d*1.0/sum(data) * 100 for d in np.cumsum(data)]
> ax2.plot(np.arange(len(
ax1.set_xticklabels(labels)
def to_percent(x, pos):
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 w
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
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
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 fair-
I build from github.
On Thu, Sep 6, 2012 at 10:35 AM, James Morrison wrote:
> 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 quotes
> ...
>
> byt
the first date for each month
newax.plot_date(months, y, visible=False)
newax.xaxis.set_major_locator(
matplotlib.dates.MonthLocator()
)
newax.xaxis.set_major_formatter(
matplotlib.dates.DateFormatter('%b')
)
On Thu, Sep 6, 2012 at 12:02 AM, Eric Firing wrote:
> On 2012/09/05 4
,
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 wrote:
>
>
> On Tue, Sep 4, 2012 at 2:20 PM, Paul Tremblay wrot
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
ax.fill_between(dates, lower, upper, facecolor='gray', alpha=0.5)
F
26 matches
Mail list logo