[Matplotlib-users] How to build a matplotlib RPM with gtk backend support?

2014-08-14 Thread Daryl Herzmann
Hello, I build RPMs to distribute matplotlib to our local RedHat 6 machines. The procedure I use is simply python setup.py bdist_rpm This works fine until I attempt to include gtk support. The problem is that the bdist_rpm procedure creates a temporary shell script file which unset's the $D

[Matplotlib-users] axes.text() plotting text outside of axes bounds

2014-01-22 Thread Daryl Herzmann
Hello, I'm wondering why stuff plotted with ax.text() does not get "clipped" by the axes bounds on the plot. Here's a simple example, run with 1.3.1: import matplotlib.pyplot as plt (fig, ax) = plt.subplots(1,1) for i in range(5): for j in range(5): ax.text(i,j, "%sx%s" % (i,j), ha='cent

[Matplotlib-users] RPM conflicts between basemap and matplotlib, mpl_toolkits/__init__.py(oc)

2012-10-31 Thread Daryl Herzmann
Howdy, I built basemap 1.0.5 and matplotlib 1.2.0rc3 via the simple command 'python setup.py bdist_rpm' without an error that I can tell. When I attempt to install them, I get a conflict between the two. For example: file /usr/lib64/python2.6/site-packages/mpl_toolkits/__init__.pyc from install

[Matplotlib-users] How to make clipping work with basemap and contourf

2012-10-29 Thread Daryl Herzmann
Hi, I've been attempting to get basemap to clip a contourf display. I have not had any luck! Attached is a self contained example. Could somebody kindly point out what I am doing wrong!?! If I remove the zorder settings, I get no data plotted! The goal is to clip my contourf plots by politica

Re: [Matplotlib-users] [matplotlib-users] Set the color of a plot in argument's function

2012-02-02 Thread Daryl Herzmann
On Thu, Feb 2, 2012 at 8:52 AM, Fabien Lafont wrote: > I don't manage to put the color of my plot in the argument' list function. > > Example: > > def function(color): > >      plot(x,y,'.', color, label = "this is my curve") > > > function('r') > > even if I put function(" 'r' ")  it doesn't work

Re: [Matplotlib-users] no leading 0 on times from DateFormatter

2012-01-30 Thread Daryl Herzmann
On Sun, Jan 29, 2012 at 10:10 PM, C M wrote: > If I use the DateFormatter, like this: > > mydateformatter = > > I'll get dates like (note the time part): > > Nov 27 2011 >  03:00 PM > > Instead, I'd like to lose the zero on times, like: > > Nov 27 2011 >   3:00 PM > > Is there a way to do that?

Re: [Matplotlib-users] Web & matplotlib

2011-11-16 Thread Daryl Herzmann
Hello, For what it is worth, I do the folllowing on my matplotlib scripts run from apache on RHEL6. import os os.environ[ 'HOME' ] = '/tmp/' os.environ[ 'USER' ] = 'nobody' import matplotlib matplotlib.use( 'Agg' ) This seems to keep matplotlib from bombing out when it attempts to read dot file

Re: [Matplotlib-users] Suggestions for auto scaling fonts , etc for producing images at various scales

2011-01-25 Thread Daryl Herzmann
Hi Paul, Sorry for the delayed response On Fri, Jan 21, 2011 at 5:20 PM, Paul Ivanov wrote: > ok, much clearer now - what you want is for your text to not be > cut-off the way it is in the 8x8 80dpi plot? In other words, > there's not enough space left in the figure for the axis labels > to

[Matplotlib-users] Suggestions for auto scaling fonts , etc for producing images at various scales

2011-01-21 Thread Daryl Herzmann
Greetings matplotlib users, Firstly, thank you so much for a great python plotting library. I use it daily and find the library very intuitive :) My question deals with generating raster images at multiple scales without heavy code modification. My work flow is to generate two versions of the s

Re: [Matplotlib-users] Error on matplotlib with the hist() method [ archlinux ]

2010-11-01 Thread daryl herzmann
On Sun, 31 Oct 2010, David Kremer wrote: > File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", python 2.7 ^^ > RuntimeError: Could not open facefile /usr/lib/python2.6/site- > packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannot_Open_Resource python 2.6 ^^ I believe