Re: [Matplotlib-users] error in hexbin normalization

2009-03-20 Thread Eric Firing
Mike Bauer wrote: > Eric, > > Thanks for the reply. I'm trying to show the relative 2d distribuion > between 2 sets of data. I thought the normalization would ease the > comparison. Fixing the ' doesn't help. > > So are you saying I need an instance of something.normalize rather than > just p

Re: [Matplotlib-users] error in hexbin normalization

2009-03-20 Thread Eric Firing
Mike Bauer wrote: > Hello, > > Quick note. I'm making plots with hexbin and everything works > correctly until I try to use the norm='Normalize' option at which > point I get: > > Traceback (most recent call last): >File "diff_engine_v2tmp.py", line 731, in > kept_and_discards) >

[Matplotlib-users] error in hexbin normalization

2009-03-20 Thread Mike Bauer
Hello, Quick note. I'm making plots with hexbin and everything works correctly until I try to use the norm='Normalize' option at which point I get: Traceback (most recent call last): File "diff_engine_v2tmp.py", line 731, in kept_and_discards) File "diff_engine_v2tmp.py", line 605

Re: [Matplotlib-users] how to free resources

2009-03-20 Thread Stano Paška
Now it works like charm. Thank you for quick answer. Stano. On Fri, Mar 20, 2009 at 7:10 PM, Eric Firing wrote: > Stano Paška wrote: >> >> Hi, >> I am using matplotlib first time and I am wonder how to free resources >> >> I have this script >> >> # coding: utf-8 >> >> import matplotlib >> matpl

Re: [Matplotlib-users] Code attached for autoscaled text around graph

2009-03-20 Thread Michael Droettboom
Thanks for sharing this -- I'm curious about how you've dealt with some of these issues and see if any of them can be brought into the core. Overlapping text has long been something I've wanted to address, but it's difficult to solve and maintain as much flexibility as we currently have. Runn

[Matplotlib-users] Code attached for autoscaled text around graph

2009-03-20 Thread James Phillips
All, Attached, and below, is public domain code for making variable-sized plots with autoscaled text that exactly fits the available visual plot space, useful for web sites where users choose output files with different sizes. Examples are at the bottom of the file. James R. Phill

Re: [Matplotlib-users] installing matplotlib

2009-03-20 Thread Michael Hearne
Trying your suggestion did not work. However, doing this: export CPP=/usr/bin/g++ python setup.py build did work. Go figure. --Mike Michael Droettboom wrote: > Hmm... the selection of the compiler command is actually deep within > distutils -- matplotlib doesn't address it. I'm surprised th

Re: [Matplotlib-users] installing matplotlib

2009-03-20 Thread Michael Droettboom
Hmm... the selection of the compiler command is actually deep within distutils -- matplotlib doesn't address it. I'm surprised the CXX environment variable isn't getting picked up. I use that all the time to test different compilers. Did you try: export CXX=/usr/bin/g++ python setup.py build

Re: [Matplotlib-users] how to free resources

2009-03-20 Thread Eric Firing
Stano Paška wrote: > Hi, > I am using matplotlib first time and I am wonder how to free resources > > I have this script > > # coding: utf-8 > > import matplotlib > matplotlib.use('Agg') > > import pylab > > class Graph: > > def __init__(self): > # sirka stlpcov > self.wid

Re: [Matplotlib-users] installing matplotlib

2009-03-20 Thread Michael Hearne
I tried setting CXX=/usr/bin/g++ in my .bashrc, but I still get the same error. Is there some file in the matplotlib distribution that I need to edit with this information? --Mike Michael Hearne wrote: > I can't using gcc, but I can using g++, which is installed. I guess > I'll just set the

Re: [Matplotlib-users] installing matplotlib

2009-03-20 Thread Michael Hearne
I can't using gcc, but I can using g++, which is installed. I guess I'll just set the CXX variable to the path for g++. I don't know enough about gcc to understand why the two aren't linked together... Thanks for the help, Mike Michael Droettboom wrote: > Michael Hearne wrote: >> Two question

Re: [Matplotlib-users] EMF export doesn't work

2009-03-20 Thread Eric Firing
Michael Droettboom wrote: > Unfortunately, the EMF backend is no longer maintained. We had > discussed removing it well over a year ago, and I actually thought it > had been removed, but obviously it wasn't. > > It needs someone to port it to the new backend API introduced in 0.98.x > and to m

[Matplotlib-users] how to free resources

2009-03-20 Thread Stano Paška
Hi, I am using matplotlib first time and I am wonder how to free resources I have this script # coding: utf-8 import matplotlib matplotlib.use('Agg') import pylab class Graph: def __init__(self): # sirka stlpcov self.width = 0.5 self.font = {'fontname':'Tahoma', 'f

Re: [Matplotlib-users] installing matplotlib

2009-03-20 Thread Michael Droettboom
Michael Hearne wrote: > Two questions: > 1) I'm trying to upgrade an installation of matplotlib I have on a RHEL5 > system. When trying: > > /usr/local/bin/python setup.py build > > I get the error message: > "gcc: src/ft2font.cpp: C++ compiler not installed on this system > error: command 'gcc'

Re: [Matplotlib-users] installing matplotlib

2009-03-20 Thread João Luís Silva
Michael Hearne wrote: > 2) So that I don't have to bother the list with things like this, how > can I _search_ the mailing list for keywords? I usually search mailing lists through gmane.org, for this particular list the link is: http://dir.gmane.org/gmane.comp.python.matplotlib.general JLS

[Matplotlib-users] installing matplotlib

2009-03-20 Thread Michael Hearne
Two questions: 1) I'm trying to upgrade an installation of matplotlib I have on a RHEL5 system. When trying: /usr/local/bin/python setup.py build I get the error message: "gcc: src/ft2font.cpp: C++ compiler not installed on this system error: command 'gcc' failed with exit status 1" I do in fa

Re: [Matplotlib-users] EMF export doesn't work

2009-03-20 Thread Michael Droettboom
Unfortunately, the EMF backend is no longer maintained. We had discussed removing it well over a year ago, and I actually thought it had been removed, but obviously it wasn't. It needs someone to port it to the new backend API introduced in 0.98.x and to maintain that code. When quite some ti

[Matplotlib-users] EMF export doesn't work

2009-03-20 Thread Torsten Bronger
Hallöchen! I use pyemf 2.0 and Matplotlib 0.98.5. If I try to save a trivial plot into an EMF file, I get Traceback (most recent call last): File "./make_plots.py", line 23, in figure.savefig(sample_name + "_pds.emf") File "/usr/lib/python2.5/[...]/matplotlib/figure.py", line 990, in sa

[Matplotlib-users] unexpected exception

2009-03-20 Thread Vito De Tullio
Hi! I'm a newbie of matplotlib, and I'm trying to plot a set of data... but I got blocked... $ cat matplotliberr.py #!/usr/bin/env python # dummy data to plot from datetime import date, timedelta from random import randint x = [ date.today() + timedelta(i) for i in range(10) ] y = [ randint(0, i)