Re: [Matplotlib-users] histogram hatching

2008-06-25 Thread izak marais
Thank you very much for the info. As an aside, after saving it one can use epstopdf to convert the crosshatched eps figure to pdf. If you want to edit it, inkscape can import pdf and save to svg. - Original Message From: John Hunter <[EMAIL PROTECTED]> To: izak marais <[EMAIL PROTE

Re: [Matplotlib-users] "ValueError: oridinal must be >= 1" with 0.98.1 - non with 0.98.0

2008-06-25 Thread Adam Mercer
> I think I have this fixed in svn -- also, I rewrote your example to > use csv2rec (which returns record arrays). Thought you might be > interested: > > import matplotlib.mlab as mlab > import matplotlib.pyplot as plt > import matplotlib.dates as mdates > import matplotlib.cbook as cbook > r1 = m

[Matplotlib-users] findobj in pylab

2008-06-25 Thread John Kitchin
Is there a way to find all the "axes" objects or "line" object handles in pylab? In matlab I used to do something like A = findobj(gcf) Allaxes = findall(a,'Type','axes') Set(allaxes,'Fontname','Arial') Is there a way to do that in pylab/matplotlib? Thanks, j -

Re: [Matplotlib-users] Error in postscript creation

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 2:57 PM, Michael Hearne <[EMAIL PROTECTED]> wrote: > It's been a couple of weeks, but I was finally able to chase down what I > think is causing the problem. I wasn't able to create a standalone script > that replicates the problem, as my application is very dependent on la

Re: [Matplotlib-users] Errors building matplotlib on RHEL5

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 5:01 PM, Michael Hearne <[EMAIL PROTECTED]> wrote: > I'm trying to install matplotlib on a RHEL5 system, and I'm getting errors > in src/ft2font.h and ft2font.cpp. > > An error log from the build command is attached. > > I would use an RPM for this platform if I were sure th

[Matplotlib-users] Errors building matplotlib on RHEL5

2008-06-25 Thread Michael Hearne
I'm trying to install matplotlib on a RHEL5 system, and I'm getting errors in src/ft2font.h and ft2font.cpp. An error log from the build command is attached. I would use an RPM for this platform if I were sure that it would be installed in /usr/local/lib... Is there a way to control where RPM

Re: [Matplotlib-users] Large axis labels/positioning the axes

2008-06-25 Thread John Hunter
On Fri, Jun 20, 2008 at 9:32 PM, David Warde-Farley <[EMAIL PROTECTED]> wrote: > Thanks again for the help. I was wondering about the code you posted -- > what's the problem with say, using bbox.xmin to adjust left only once? Or > else perhaps get_text_width_height from the renderer? Wouldn't tha

Re: [Matplotlib-users] switching between noninteractive and interactive plot?

2008-06-25 Thread John Hunter
On Fri, Jun 20, 2008 at 10:51 AM, Lubos Vrbka <[EMAIL PROTECTED]> wrote: > hi guys, > > my problem is probably simple, but i wasn't able to solve it. i use > matplotlib with scipy/numpy (i.e., via pylab). in my program, i'd like > to display interactively the convergence of a mathematical procedure

Re: [Matplotlib-users] picking a broken_barh collection calls pick event twice

2008-06-25 Thread John Hunter
On Sun, Jun 22, 2008 at 3:18 AM, Paul Hartley <[EMAIL PROTECTED]> wrote: > > If I click on a bar that is part of a broken_barh collection which has its > picker attribute enabled, there appears to be two events generated for > example: > > def on_pick(self, event): > print event.mouseev

Re: [Matplotlib-users] Radar / Spider Chars

2008-06-25 Thread Tony S Yu
I was reading through the projections docs and decided to take a shot at creating a radar chart class. The layout of the labels and legend is really off, but other than that, this seems to work OK. I couldn't figure out a good way to initialize the number of axes/variables, so there's an ug

Re: [Matplotlib-users] Using indexed color maps for images-not getting correct colors

2008-06-25 Thread Delbert Franz
On Monday 23 June 2008 23:00, Eric Firing wrote: > Delbert Franz wrote: > > I have been working to display an image of a USGS 7.5 minute quad sheet. > > These are provided at various locations about the Web. Since the > > range of colors on these maps is limited, the *.tif files appear to > > u

Re: [Matplotlib-users] Arabic Character Support

2008-06-25 Thread Mathieu Leplatre
Well, I'll give a try towards another possibility : 1 - use SVG output with rc setting : svg.embed_char_paths" to False 2 - use cairo to export to PNG/JPG etc.. Step 1 works great natively with Arabic (at least viewing it with Inkscape). Let's see if I have problems with step 2. 2008/6/25 Darre

Re: [Matplotlib-users] Arabic Character Support

2008-06-25 Thread Darren Dale
Hi Mathieu, Are there perhaps some latex packages you could load using the text.latex.preamble rc setting? This setting is officially unsupported, but it would be much easier than adding an option to use the xetex executable (which would probably not be officially supported by mpl). Darren On

Re: [Matplotlib-users] Arabic Character Support

2008-06-25 Thread Michael Droettboom
Mathieu Leplatre wrote: > Hi all, > > I have been trying to follow your tips regarding matplotlib and arabic > support. > > Is it related to my installation ? (Ubuntu with package > texlive-latex-recommended) > I asked here : http://ubuntuforums.org/showthread.php?p=5258457 > I have no idea.

Re: [Matplotlib-users] histogram hatching

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 6:05 AM, izak marais <[EMAIL PROTECTED]> wrote: > Hi, > > I see there is a "hatch: unknown" kwarg mentioned in the hist() > documentation. Can anyone shed some light on how to use this please? I > assume it might be used to generate monochrome rectangles with > differentiati

Re: [Matplotlib-users] Problem using set_data

2008-06-25 Thread John Hunter
On Wed, Jun 25, 2008 at 7:31 AM, eShopping <[EMAIL PROTECTED]> wrote: > Hi Darren > > thanks for the quick reply. I tried > > self.lines[0][0].set_data((self.data.xa,self.data.ya)) > self.lines[0][1].set_data((self.data.xa,self.data.ys)) > > but got the error 'list index out of range' after the se

Re: [Matplotlib-users] "ValueError: oridinal must be >= 1" with 0.98.1 - non with 0.98.0

2008-06-25 Thread John Hunter
On Tue, Jun 24, 2008 at 8:13 AM, Adam Mercer <[EMAIL PROTECTED]> wrote: > What's strange is that if I comment out the plotting of the second > test data set then the plot is produced without error, even though the > reported error (when plotting both data sets) seems to have nothing to > do with t

Re: [Matplotlib-users] tick_left() and tick_right() with minor tick marks

2008-06-25 Thread Adam Mercer
On Wed, Jun 25, 2008 at 7:21 AM, Darren Dale <[EMAIL PROTECTED]> wrote: > I don't see a problem here. I did the following: > > ipython -pylab > run two_scales.py > ax1.yaxis.set_minor_locator(MultipleLocator(1000)) > draw() > # Shows minor ticks on both left and right yaxis > ax1.yaxis.tick_left(

Re: [Matplotlib-users] Arabic Character Support

2008-06-25 Thread Mathieu Leplatre
Hi all, I have been trying to follow your tips regarding matplotlib and arabic support. Indeed matplotlib with Latex and unicode work great together : #-*- coding: utf-8 -*- from pylab import * from matplotlib import rcParams rcParams['text.usetex']=True rcParams['text.latex.unicode']=True figur

Re: [Matplotlib-users] Problem using set_data

2008-06-25 Thread eShopping
Hi Darren thanks for the quick reply. I tried self.lines[0][0].set_data((self.data.xa,self.data.ya)) self.lines[0][1].set_data((self.data.xa,self.data.ys)) but got the error 'list index out of range' after the second statement. I also tried self.lines[0][0].set_data((self.data.xa,self.data.y

Re: [Matplotlib-users] tick_left() and tick_right() with minor tick marks

2008-06-25 Thread Darren Dale
On Monday 23 June 2008 08:53:56 pm Adam Mercer wrote: > Hi > > Anyone know how to fix this problem? > > Cheers > > Adam > > On Thu, Jun 19, 2008 at 8:31 PM, Adam Mercer <[EMAIL PROTECTED]> wrote: > > Hi > > > > I have a plot that has two different y-axis scales and I want > > appropriate tick marks

Re: [Matplotlib-users] Problem using set_data

2008-06-25 Thread Darren Dale
Hi Alun, On Wednesday 25 June 2008 07:09:52 am eShopping wrote: > Hi > > the following code snippet is from a simple wxpython/matplotlib app > > # Data object class > > class PlotData(object): > > # Constructor (dummy arrays) > > def __init__(self): > self.np = 100 > >

[Matplotlib-users] Problem using set_data

2008-06-25 Thread eShopping
Hi the following code snippet is from a simple wxpython/matplotlib app # Data object class class PlotData(object): # Constructor (dummy arrays) def __init__(self): self.np = 100 self.xa = numpy.arange(100.0) self.ya = 2.0 * self.xa self.ys = 4.0 *

[Matplotlib-users] histogram hatching

2008-06-25 Thread izak marais
Hi, I see there is a "hatch: unknown" kwarg mentioned in the hist() documentation. Can anyone shed some light on how to use this please? I assume it might be used to generate monochrome rectangles with differentiating hatched fills? Regards Izak