Re: [Matplotlib-users] crashes when using savefig for eps files

2006-10-17 Thread PGM
On Tuesday 17 October 2006 11:50, Humufr wrote: > did you try to fix the size of the figure and the dpi? Just wondering: you wouldn't happen to plot a space character by itself, by any chance ? I remmbr running into something similar (the dvifile not being processed properly), and it turned out

Re: [Matplotlib-users] "Stacked" subplots

2006-09-14 Thread PGM
- axes (understand, subplot) have a "is_last_row" method you can use that to draw ticks on the bottom axis only - for the legend, try to use the "legend" command of the figure (something like gcf().legend() - Using Tomcat bu

Re: [Matplotlib-users] HELP: unable to plot simple example

2006-09-12 Thread PGM
Try a different backend. If one doesn't work, something went wrong during the installation (it happened to me a couple of times, reinstalling from scratch seemed to have solve the pb). - Using Tomcat but need to do more? Ne

Re: [Matplotlib-users] 0.86 vs 0.87 plot difference?

2006-09-04 Thread PGM
On Monday 04 September 2006 14:28, Nicolas Bigaouette wrote: > Hi, > What is causing this? Did something changed that I need to adapt my code > or is it a bug? Check the "aspect" keyword of your image, and try to set it to 'auto'. > Clearly, matplotlib's SVG backend doesn't seems to support TeX >

Re: [Matplotlib-users] MPL/Pylab install woes

2006-09-04 Thread PGM
On Monday 04 September 2006 05:20, Paul-Michael Agapow wrote: > I'm having some problems installing matplotlib (actually PyLab, see > below). Googling has revealed nothing, perhaps someone might > recognise these symptoms. mmh, you didn't check the mailing list before, did you ;) You didn't precis

[Matplotlib-users] get_size_inches

2006-08-29 Thread PGM
Folks, I've just noticed that in order to get the size of a figure in inches, one can use: >>> fig.get_size_inches() However, the corresponding 'set' method is >>>fig.set_figsize_inches() Is this intentional ? Wouldn't it be better to keep the set/get methods consistent ? Thx for your insight

Re: [Matplotlib-users] problem with latest numpy

2006-08-25 Thread PGM
Hola, Use the SVN version, it works pretty OK with 1.0b2 - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM We

Re: [Matplotlib-users] [Mac OS 10.4.7, Python 2.4.3] Problem using plot_date

2006-08-23 Thread PGM
On Wednesday 23 August 2006 02:19, David Goldsmith wrote: > First, sorry for the long email. > > I'm having a segmentation fault problem trying to use plot_date, Update numpy. Or matplotlib. Or in matplotlib/dates.py, change line 155 from remainder = x - ix to remainder = float(x) - ix --

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread PGM
On Thursday 03 August 2006 20:41, Gregory Piñero wrote: > Another question, why are there only four bars showing up when I have > 5 values and 5 labels? ??? On my machine, (matplotlib.__version__ = '0.87.4'), the script you posted around 5PM (EST) works OK, five bars, five labels nicely placed (o

Re: [Matplotlib-users] barh Chart - Not lining up

2006-08-03 Thread PGM
On Thursday 03 August 2006 17:44, Gregory Piñero wrote: > So all you changed was to add in align='center' ? I assume me using > figure.gca() is equivalent to your use of ax? Yes, gca() is "get the current axes object". > Is it hard to upgrade to the latest version from svn? Any directions? [Fro

Re: [Matplotlib-users] Plotting Dates

2006-07-31 Thread PGM
Chris, http://matplotlib.sourceforge.net/matplotlib.pylab.html#-plot_date + google "date dateutils" site:http://matplotlib.sourceforge.net/tutorial.html + http://matplotlib.sourceforge.net/matplotlib_examples_0.87.1.zip And if this is not enough, please be a bit more specific in your request: an

Re: [Matplotlib-users] dates fail after upgrade

2006-07-29 Thread PGM
On Friday 28 July 2006 17:19, Richard Ruth wrote: > I upgraded to matplotlib-0.87.4 Now I receive an error like the following > every time I try to use matplotlib.dates. The following error messages > were generated when I tried to run matplotlib-0.87.4/examples/date_demo1.py > > Any Idea on how

Re: [Matplotlib-users] divmod returns empty tuple sometimes?

2006-07-28 Thread PGM
Glen, Funny, I ran into exactly the same problem earlier that week. My guess is that you use numpy, right ? 0.9.8 ? On a 64b machine ? If that's the case, you should have the same problem with divmod and numpy each time you use float64 as dtype: each element is a float64scalar that divmod doesn

Re: [Matplotlib-users] plot swaps axes specified with extent

2006-07-28 Thread PGM
Stefan, > Is this normal? If so, how do I get around the problem? I also > noticed that, even without extents, the image gets scaled after > plotting. Try to set the "_autoscale" parameter of your current 'axes' to False. That way, you should avoid any inopportune rescaling. For the image, try

Re: [Matplotlib-users] Plotting in West Longitude

2006-07-27 Thread PGM
HI, There are series like that... > I need to plot in West > Longitude, where the left edge of the graph starts at 360 and the right > edge ends at 0. Does anyone know how to do this? Assuming you have a plot (not an image): xlim(360,0) or gca.set_xlim(360,0) HIH, P. --

Re: [Matplotlib-users] flipping x-y axes?

2006-07-25 Thread PGM
On Tuesday 25 July 2006 12:30, massimo sandal wrote: > Hi, > > What is the method used to flip axes in X and/or Y direction in the > matplotlib API? that is, to plot something with values from positive to > negative instead of the contrary? just set the limits of your axes with xlim/ylim or set_yl

Re: [Matplotlib-users] iregular data set

2006-07-21 Thread PGM
Joseph, I'm a big fan of masked arrays in numpy. Your problem is typically what masked days are for: you can find an example here: http://www.scipy.org/Cookbook/Matplotlib/Plotting_values_with_masked_arrays - Take Surveys. Ea

Re: [Matplotlib-users] pylab.semilogy() line plots and missing data

2006-07-16 Thread PGM
On Sunday 16 July 2006 19:38, Webb Sprague wrote: > I have data with missing values represented by nans (like array([1.0, > nan, 3.0]) that I am plotting with pylab.semilogy(). Please transform your array in a MaskedArray. import numpy as N masked_x=N.ma.masked_where(N.isnan(x),x) That should do

Re: [Matplotlib-users] turn off decade ticks in log plots?

2006-07-14 Thread PGM
> There is an easier way, however. That's what I like in matplotlib: no matter how hard you try, there's always a simpler solution you're not yet aware of... - Using Tomcat but need to do more? Need to support web servic

Re: [Matplotlib-users] turn off decade ticks in log plots?

2006-07-14 Thread PGM
On Friday 14 July 2006 11:25, Richard Albright wrote: > from pylab import * > x=(1,2,3,4,5) > y=(13, 22,19,26,32) > set_major_locator(NullLocator()) > set_major_formatter(NullFormatter()) > semilogy(x,y) > show() Have you tried that ? gca().yaxis.set_minor_locator(NullLocator()) Or maybe I don't

Re: [Matplotlib-users] Bar chart - labeling the bars?

2006-07-13 Thread PGM
On Thursday 13 July 2006 14:05, Asheesh Laroia wrote: > I'm making a bar chart that shows percentages (values from 0 to 100), and > I'd like to have the actual bars labeled with their values. > > I don't see how to do this, though it seems that countour diagrams have > the clabel() function to do t

[Matplotlib-users] Gentoo ebuild [wasRe: eps export files crash text processors]

2006-07-13 Thread PGM
> > I suggest upgrading to 0.87.3. > > However, I still do see no working Gentoo ebuild. Is there any out there? You can find one at http://bugs.gentoo.org/show_bug.cgi?id=136429 Problem is that you'd have to get the whole gentooscience overlay, so, here's the matplotlib ebuild and the correspo

Re: [Matplotlib-users] 3 questions about tick labels for large values

2006-07-12 Thread PGM
Darren, > As of svn 2560, the label will render over the left or right y-axis > depending on the position of the ticks. Sweet ! Thanks a lot ! And following your advice, I came up with the following solution to my problem (forcing the mantissa to multiple of 3, with a given number of decimals).

[Matplotlib-users] 3 questions about tick labels for large values

2006-07-12 Thread PGM
Folks, I need your wisdom about ticks labels on ordinates for large numbers (>1e4). The default behavior I have (0.87.4) is to display tick labels as "%.1f", and write a string "x1e+..." above the top left corner of the current axes. - When using "yaxis.tick_right()", the "x1e..." string stays a

Re: [Matplotlib-users] matlab-like "children" of axes?

2006-07-02 Thread PGM
Jules, > > ff = P.Figure(figsize=(5,4), dpi=100) > ss = P.subplot(222) > pp = ss.plot(x,y,'.-') > > # some program resets x,y limits > P.show() > #- > Is there any way to > - find the axes objects that count "ff" as their parent? The `figure` associated with a subplot object `ss` is `ss.figur

Re: [Matplotlib-users] no BoundingBox

2006-06-27 Thread PGM
Nils, That's far more a Latex question than a matplotlib one. Short answer: you can't fix the BBox from a JPEG, there's none ! >From what I remmbr from my LaTeX years, you need to transform the jpeg to a format LaTeX can understand, viz '.ps' or '.eps' Check http://www2.eng.cam.ac.uk/~pmg26/hpage

Re: [Matplotlib-users] Subclassing Figure and pylab.figure()

2006-06-21 Thread PGM
John > Well, we could keep it simple and just give a hook to custom figures. > If a user wants a custom subplot > > class MyFigure(Figure): >def add_my_subplot(self, *args, **kwargs): > self.axes.append(MySubplot(*args, **kwargs)) > > Is there any downside to this approach? It seems l

Re: [Matplotlib-users] Subclassing Figure and pylab.figure()

2006-06-21 Thread PGM
John > I modified pylab (and every backend, damn there are a lot) to support > this feature. Wow, impressive ! Thx a lot > Now you can pass a FigureClass kwarg to the pylab > figure function. With minimal extra work, we could support defaults > so you don't have to explicitly pass it. But b