Re: [Matplotlib-users] specifying colors in 'extend' option of contourf

2008-05-10 Thread Eric Firing
James Boyle wrote: > I cannot get the contourf extended color map ranges to show up in the plot. > the extend option of contourf states: > > extend = 'neither', 'both', 'min', 'max' > Unless this is 'neither' (default), contour levels are > automatically added to one or both ends of th

[Matplotlib-users] minus sign instead of hyphen in negative axes labels

2008-05-10 Thread Markus Kuhn
Matplotlib currently uses the "hyphen" character instead of a "minus sign" when printing negative numbers in plots. While these two characters are traditionally not distinguished in monospaced fonts, there is a big difference in proportional fonts. A hyphen (Unicode character 0x002d) is very short

[Matplotlib-users] extracting displayed data from axes

2008-05-10 Thread Markus Kuhn
How can I extract from a figure or axes the data that it currently displays? I had hoped that something like from pylab import * plot([1,3,2]) data = getp(gca(), 'data') xdata = getp(gca(), 'xdata') ydata = getp(gca(), 'ydata') would do the trick, as suggested by the brief mention of these prope

[Matplotlib-users] axes scale factor not showing

2008-05-10 Thread Tim Mitchell
Hi, When matplotlib uses an axis multiplier, as in x-axis in the script below, the scale factor is not positioned properly on the figure as is shown in the attached picture. The 'x1e+30' in the bottom right corner is clipped unless I enlarge the window. import Numeric,