Re: [Matplotlib-users] matplotlib, numpy, numarray

2006-06-10 Thread Eric Firing
Thanks. There were in fact several points of incompatibility with Numeric and numarray. (Normally I would have checked this, but I slipped up.) I have changed quiver.py and numerix to solve the immediate problem, and to slightly reduce the incidence of such problems in the future. The real

Re: [Matplotlib-users] showing an image on log axes?

2006-06-15 Thread Eric Firing
Fernando Perez wrote: On 6/15/06, Stefan van der Walt [EMAIL PROTECTED] wrote: That's exactly what I need -- except that it forces the creation of a new figure, which doesn't play well with subplot. Specifying a figure number is, like it says in the docstring, rather unpredictable. Is there

Re: [Matplotlib-users] plotting an array of enumerated values

2006-06-16 Thread Eric Firing
John, Something like this might be what you want: from pylab import * import matplotlib.numerix.ma as ma import matplotlib.colors as colors xx = rand(10,15) xxx = (xx*15 - 5).astype(Int) xxx = ma.masked_where(xxx 0, xxx) xxx.set_fill_value(-1) #(not necessary) cmap = colors.ListedColormap(('r',

Re: [Matplotlib-users] plotting an array of enumerated values

2006-06-17 Thread Eric Firing
John Hunter wrote: Eric == Eric Firing [EMAIL PROTECTED] writes: Eric they will not be transparent. If you need transparent Eric masked regions, then try pcolor instead of imshow. Pcolor Eric plots nothing at all in masked cells. Pcolormesh, on the Eric other hand, is like

Re: [Matplotlib-users] bug?

2006-07-11 Thread Eric Firing
An rgb colorspec in matplotlib must be a sequence of three numbers between zero and one, so the problem is that you are indeed giving an invalid rgb arg. I think perhaps you grabbed an error message from a different instance of this error; when I try it, I get an error message that correctly

Re: [Matplotlib-users] ANN: matplotlib-0.87.4 (bugfix release for enthon)

2006-07-12 Thread Eric Firing
Alan G Isaac wrote: On Wed, 12 Jul 2006, Stefan van der Walt apparently wrote: It would be useful to have plot accept a 2-D array as well. Would patches for this be considered, or is there some reason why this can't work? At the moment, doing P.plot(z) where z is Nx2 If 2-D is

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-07-12 Thread Eric Firing
Mark Bakker wrote: On the same token, it would be really nice if contour, pcolor and image take as an x and y argument not only a matrix but just a 1D row. This should be really easy and would be very useful. contour already does this, and I agree that pcolor and pcolormesh should.

[Matplotlib-users] plot command: more flexible argument handling

2006-07-12 Thread Eric Firing
Darren Dale wrote: On Wednesday 12 July 2006 16:16, Mark Bakker wrote: I am following up on the discussion of passing a single 2D array to plot. Wouldn't it make more sense that, in Python array style, if you give it a single N x K argument you plot rows against the first row? That's not

Re: [Matplotlib-users] jagged edges on masked contour plots

2006-07-18 Thread Eric Firing
John, You are correct about the way contour handles masked data, and I agree that it is ugly; unfortunately, it is inherent in the routine we are using. You could reduce but not eliminate the problem by interpolating to a finer grid. The routine we are using, which came from the gist

Re: [Matplotlib-users] Pixel placement of text

2006-07-28 Thread Eric Firing
kwarg to the Text class, and maybe a transOffset as well. Eric --bb On 7/28/06, Eric Firing [EMAIL PROTECTED] wrote: Bill, You can see an example of how to do something similar by looking at the QuiverKey class in quiver.py. It is all a matter of using the transforms module. Eric

Re: [Matplotlib-users] matplotlib and numpy incompatible

2006-08-12 Thread Eric Firing
George, I am not a Windows user, so I can't report from my own experience, but here are some things to try: 1) Enthought Python suite: http://code.enthought.com/enthon/ The matplotlib version is slightly behind (0.87.3), but that may not matter for your present purposes. 2) Wait until a new

Re: [Matplotlib-users] quiver , contourf , nans

2006-08-14 Thread Eric Firing
Support for nan in inputs to matplotlib is presently spotty (and mostly accidental); use masked arrays instead. Masked arrays have been supported by contourf for a long time, but I added masked array support to quiver (and only for u and v, not for x and y) only very recently, so until a

Re: [Matplotlib-users] remove text from a plot

2006-08-19 Thread Eric Firing
Aaron, Each text object that you add with the text() function is appended to a list called texts that is an attribute of the axes object. So, to remove the last text object you added, you can do: del gca().texts[-1] draw() If what you want to do is change the contents but not the position,

Re: [Matplotlib-users] quiver2

2006-08-22 Thread Eric Firing
Flavio Coelho wrote: Hi, I am tring to figure out how to use the c argument to the quiver2 function. I want to be able to color my arrows proportionally to their size. I have tried this and it doesn' t work as I imagined: c = sqrt((array(u)-array(x))**2+(array(v)-array(y))**2) The

Re: [Matplotlib-users] color normaliztion for an contourf plot

2006-08-25 Thread Eric Firing
Jordan Dawe wrote: So I have a contourf plot and I am resetting the ylims so as to only display a subset of the full contourf plot. Is there anyway to set norm and the colorbar so they take their colormapping settings using the data currently on display? By which I mean: the full dataset

Re: [Matplotlib-users] saving and reloading plots

2006-08-29 Thread Eric Firing
Benjamin THYREAU wrote: Hi, Does someone know of a convenient way to save a plotted figure in order to reloading it later, possible adding new stuffs to it ? Presently, i keep pickling my data and cutpasting my drawing code, by hand. I'm interested if some of you would have better

Re: [Matplotlib-users] Contours + alpha channel?

2006-08-31 Thread Eric Firing
Scott, Please send a minimal example that I can use as a test case. This sounds vaguely familiar. Thanks. Eric Scott Ransom wrote: Hi All, I'm using matplotlib (with agg backends) from recent svn: In [63]: matplotlib.__version__ Out[63]: '0.87.4' and I can't seem to get contour()

Re: [Matplotlib-users] changing sharex after ?

2006-08-31 Thread Eric Firing
Samuel, Trying to manipulate variables with leading underscores is discouraged--that is the meaning of the leading underscores. Changing the shared status of axes involves changes in additional variables. This could be encapsulated in a single method. It might be very easy, or complexities

Re: [Matplotlib-users] Basemap - quiver scaling

2006-08-31 Thread Eric Firing
Jim, The problem is that the new quiver--the one for which Jeff quoted a docstring extract--appeared after 0.87.3. I hope you can update to 0.87.4 or to svn. I gather there will be another release within a week or two, also, to support the latest numpy. Eric James Boyle wrote: when I call

Re: [Matplotlib-users] function domain problems

2006-09-08 Thread Eric Firing
I suggest using masked arrays to ensure you are only trying to plot real numbers: def f(x): y = log(x) ygood = (y 1e38) (y -1e-38) yy = nx.ma.masked_where(ygood == 0, y) return yy Note the parentheses and peculiar use of bitwise-and in the definition of ygood. This is a

Re: [Matplotlib-users] Setting aspect ratio?

2006-09-08 Thread Eric Firing
Louis Pecora wrote: I have looked in the User's Guide for matplotlib, but couldn't find anything on setting the aspect ratio. Can anyone point me to some info online? I will continue to look. Thanks. Each axes object has the following method (with only the docstring shown here):

Re: [Matplotlib-users] problems with 3d plotting

2006-09-29 Thread Eric Firing
[EMAIL PROTECTED] wrote: How to get the following through? Thanks import matplotlib.axes3d as p3 Traceback (most recent call last): File pyshell#19, line 1, in -toplevel- import matplotlib.axes3d as p3 File C:\Python24\lib\site-packages\matplotlib\axes3d.py, line 26, in

Re: [Matplotlib-users] colorbar, ax.get_position after figsize changed by ax.set_aspect

2006-10-05 Thread Eric Firing
George Nurser wrote: I have been trying to i. plot a figure using pcolormesh ii. set the proportions of the figure using ax.set_aspect iii. draw colorbar Problem is, colorbar height uses whole of axes box, not just height of figure (whose proportions were set by call of

Re: [Matplotlib-users] markercolor broken

2006-10-10 Thread Eric Firing
[EMAIL PROTECTED] wrote: Hi, some times ago I saw that the rgb color was not working anymore, the hexa code yes but not the rgb. markerfacecolor=(120,120,120,) retrun this error: ValueError: to_rgb: Invalid rgb arg (120, 120, 120) to_rgb: Invalid rgb arg (120, 120, 120) This

Re: [Matplotlib-users] bug or feature?

2006-10-16 Thread Eric Firing
What you see is a design limitation rather than a bug or feature. One easy workaround is to use the shrink kwarg. See examples/contour_demo.py. Another approach is to create the axes object you want for the colorbar manually, as in examples/multi_image.py and examples/subplots_adjust.py.

Re: [Matplotlib-users] contour bug?

2006-10-16 Thread Eric Firing
[EMAIL PROTECTED] wrote: Le lundi 16 octobre 2006 15:55, Eric Firing a écrit : [EMAIL PROTECTED] wrote: I thing there are a small problem with contour. import pyfits import pylab data = pyfits.getdata('test.fits') pylab.imshow(data,cmap=cm.gray) pylab.contour(data) #to have the result

Re: [Matplotlib-users] origin='upper' nor working with pcolor

2006-10-19 Thread Eric Firing
Khem Raj wrote: Hi I have been trying to plot a matrix and want to start from top left corner. I tried to use 'matshow' and it worked the way I wanted but that could not satisfy other needs like I needed to plot something else over the matrix and also needed shading='faceted' which I could

Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes

2006-10-21 Thread Eric Firing
Willi Richert wrote: Am Freitag, 20. Oktober 2006 17:31 schrieb John Hunter: from pylab import * ax1 = subplot(111) t = arange(0.01, 10.0, 0.01) s1 = exp(t) plot(t, s1, 'b-') xlabel('time (s)') ylabel('exp') # turn off the 2nd axes rectangle with frameon kwarg ax2 = twinx() s2 =

Re: [Matplotlib-users] Problem installing latest matplotlib + numpy win32 binaries

2006-10-22 Thread Eric Firing
Todd Page wrote: Hello all, My apologies if this has been brought up and solved before, but I didn't see any solutions that made sense to me in the archives. Here is my stack: python 2.4 (from python.org) numpy-1.0rc3 matplotlib-0.87.6 Everything seems to install fine. When I attempt

Re: [Matplotlib-users] set_ylim() does not work with twinx()-axes

2006-10-23 Thread Eric Firing
With Linux it is easy to install matplotlib from the tarball or from svn--no need to hunt around for a package. Eric Willi Richert wrote: Am Samstag, 21. Oktober 2006 20:30 schrieb Eric Firing: matplotlib.__version__ == 0.82 There is the problem: you need to update your matplotlib. Eric

Re: [Matplotlib-users] Compatible Version of Numpy?

2006-10-23 Thread Eric Firing
Chris S wrote: I think that 97.6 was compiled against 1.0rc2 but Charlie Moad is the authority on this since he did the compile. I have added this news flash to the site Ok, thanks. I suspected that, but since even Google isn't able to find an rc2 binary, I guess my only option is to wait

Re: [Matplotlib-users] Limit on the number of plot calls

2006-10-25 Thread Eric Firing
David Huard wrote: Hi, is there a limit to the number of times one can call ax.plot(x,y) ? None that I can see; if you seem to be running into such a limit, then it sounds like a bug. Eric - Using Tomcat but need to do

Re: [Matplotlib-users] Error with bar charts

2006-10-26 Thread Eric Firing
Suresh, This is baffling, and particularly annoying for someone just starting out with mpl. I don't think there is any problem with the barchart code--the demo works for me with numarray--and I don't see anything obvious in the traceback. Are your matplotlib and numarray both from Mandriva

Re: [Matplotlib-users] Problem building matplotlib

2006-10-27 Thread Eric Firing
Victor Danilchenko wrote: Hi all, I am trying to build Matplotlib 0.87.7 on an RHEL 4.4-derived system, with Python 2.3.4. I am running into a weird problem. When I do python setup.py build, I get the following error: gcc: src/_gtkagg.cpp In file included from

Re: [Matplotlib-users] tex problem

2006-10-31 Thread Eric Firing
[EMAIL PROTECTED] wrote: Hi, I have different questions to use tex with matplotlib. The first one: If I'm doing: rc('text', usetex=True) xlabel('$\textrm{toto}$') # bad xlabel(r'$\textrm{toto}$') # ok The results are not the same and I don't understand why. and for:

Re: [Matplotlib-users] another problem with subplot...

2006-11-03 Thread Eric Firing
[EMAIL PROTECTED] wrote: and the same question: this behavior is normal? fig1 = figure() ax1 = subplot(121) xlim([0,10]) ax2 = subplot(122,sharey=ax1) yticks([]) I would like to hide the ticks label for only one subplot (the one who share the axes) but I would like to have the

Re: [Matplotlib-users] subplot_adjust bug?

2006-11-03 Thread Eric Firing
Try putting the subplots_adjust call after you have made all your subplots in a given figure. Subplots_adjust operates on a set of axes that are already in the figure--it does not set a parameter to be used later. Eric [EMAIL PROTECTED] wrote: Hi, I have a problem with subplot_adjust but

Re: [Matplotlib-users] ZeroDivisionError in scale_range

2006-11-11 Thread Eric Firing
That problem was fixed quite a few months ago; I don't recall exactly when. Eric W Netzberg wrote: The following code throws ZeroDivisionError: import numpy, pylab z = numpy.random.normal(-0.37727, 0.1, size=10) pylab.plot(z) pylab.show () The stack trace: Traceback (most recent call

Re: [Matplotlib-users] Type Error

2006-11-13 Thread Eric Firing
Luca, It is a bug that appears when recent mpl is used with Numeric as opposed to numpy or numarray. It is fixed in svn. Your possible solutions are: 1) Use numpy or numarray instead of Numeric 2) Build mpl from svn 3) Edit axes.py as indicated in this diff chunk: @@ -1217,7 +1217,7 @@

Re: [Matplotlib-users] Alpha and colorbar using contourf

2006-11-14 Thread Eric Firing
Tom, I have made several changes in svn to improve the ability of colorbar to track changes in colormap and alpha. It works with imshow, pcolor, and contourf. The implementation could be improved--maybe later. Here are minimal illustrations you can use with ipython -pylab: figure(); C =

Re: [Matplotlib-users] AttributeError: class Axes has no attribute 'pcolor_classic'

2006-11-16 Thread Eric Firing
Nils, Fixed in svn. Thanks. Eric Nils Wagner wrote: Hi Eric, Thank you very much. Here is another new problem scatter(mu*ones(n),w.real,s=1) File /usr/lib64/python2.4/site-packages/matplotlib/pylab.py, line 3111, in scatter ret = gca().scatter(*args, **kwargs) File

Re: [Matplotlib-users] strange numerix default issue

2006-11-17 Thread Eric Firing
Peter Bienstman wrote: Hi, When I don't use a matplotlibrc file, the default numerix choice is numpy, which is OK. I think that what is actually happening here is a system-wide matplotlibrc file is being found and is providing the numpy value. When I have a matplotlibrc, and I specify

Re: [Matplotlib-users] subplot problems using comma notation

2006-11-17 Thread Eric Firing
I would encourage anyone running linux to simply build matplotlib from the latest release tarball. It's easy. You may need to install some devel packages first, but once you have stumbled over the missing bits and installed them, then forever after you can very easily update to the latest

Re: [Matplotlib-users] subplot problems using comma notation

2006-11-17 Thread Eric Firing
Marius 't Hart wrote: Using the advice from Seweryn Kokot I was able to install matplotlib 0.87.7-0, but this resulted in all sorts of errors instead of a graph. I'll just make do with matplotlib 0.82-5 for now. Thanks for your advice! Marius. That is probably because you installed a

Re: [Matplotlib-users] quiver and masked array

2006-11-21 Thread Eric Firing
From my point of view, version 82-5 is simply too old to bother with. In newer versions quiver has been completely rewritten including masked array support. I recommend that you remove your ubuntu mpl package and install the latest release from the source tarball. Eric giovanni ruggiero

Re: [Matplotlib-users] spy ignores negative values?

2006-11-21 Thread Eric Firing
John Hunter wrote: ... I am not a spy user, though I wrote it. I assume the test should be Z!=0? Note spy2 (which arguably makes a nicer plot) has the same potential problem. If there is consensus that it should be !=0 I am happy to change it. Yes, it should be !=0. The purpose is to

Re: [Matplotlib-users] norm keyword to contourf

2006-11-29 Thread Eric Firing
Michael, You have found a big bug that I introduced recently. Here is a patch, which I committed to svn: (watch out for line-breaking by the mailer) --- lib/matplotlib/contour.py (revision 2899) +++ lib/matplotlib/contour.py (working copy) @@ -680,7 +680,12 @@ if self.extend in

Re: [Matplotlib-users] clabel

2006-11-30 Thread Eric Firing
Curtis, clabel works as it should in contour_demo.py, so please post a simplest-possible example showing the problem. Also specify what mpl version you are using. Thanks. Eric Curtis Cooper wrote: Hi, I'm using clabel to label contour plots, but when I use the 'inline' option, the

Re: [Matplotlib-users] error bar and arrays (tuple way to solve a problem)

2006-12-04 Thread Eric Firing
Giorgio Luciano wrote: [...] ## it doesnt'works ##womenStd = array([[3.1], [5.1], [2.3], [3.5], [3.4]]) ##N=5 ##womenMeans = array([[20], [35], [30], [35], [27]]) ##ind = arange(N)# the x locations for the groups ##width = 0.35 # the width of the bars: can also be

Re: [Matplotlib-users] subplots of matshow

2006-12-04 Thread Eric Firing
def matshow(*args,**kw): Display an array as a matrix in a new figure window. Matshow simply is not designed to work with subplots; it is a wrapper around imshow() that creates a new figure. You should be able to do what you want by using imshow() directly in place of matshow with

Re: [Matplotlib-users] error bar and arrays (tuple way to solve a problem)

2006-12-05 Thread Eric Firing
Again, the problem with the sample you supply is that you are making 2-D arrays where what you need are 1-D arrays. Simply flattening y and pred before using them makes the script work fine, as attached. Or make them 1-D in the first place. Eric Giorgio Luciano wrote: Thanks to all for

Re: [Matplotlib-users] artist.py

2006-12-05 Thread Eric Firing
John, Tom, I don't understand how generation of the identity transform for each Artist instance could possibly be a significant overall slowdown; it should be very fast, and only a small part of the time required to actually do anything useful with an Artist instance. I am wondering whether

Re: [Matplotlib-users] REQ: pcolor input similar to array broadcasting

2006-12-06 Thread Eric Firing
Rob, This is now in svn, for pcolor only, not for pcolormesh. Please check it out. If everything is OK I can add it to pcolormesh as well (although pcolormesh still has a deeply-buried bug such that it does not work with alpha != 1). Eric Robert Hetland wrote: I would like to propose

Re: [Matplotlib-users] spy ignores negative values?

2006-12-07 Thread Eric Firing
Robert Cimrman wrote: Eric Firing wrote: Robert and any other spy users: I have committed to svn a new axes method, spy3, that combines a modification of the functionality of both spy and spy2. I hope you can check it out. If it looks OK, then I would like to simply replace spy

Re: [Matplotlib-users] RE : Re: Problem with pylab.fill

2006-12-07 Thread Eric Firing
John Hunter wrote: [...] You can pass in a sequence of facecolors the length of your number of polygons. Each element of the sequence must be RGBA, but you can use matplotlib's color converter to convert an arbitrary color argument to RGBA. John, You don't need to do this explicit

Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-08 Thread Eric Firing
Yannick Copin wrote: Hi, running the simple test code: from pylab import * X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) Z = randn(*X.shape) lev = linspace(Z.min(),Z.max(),11)[1:-1] contourf(X,Y,Z, lev, extend='both') contour(X,Y,Z, lev, colors='k') show() you will probably

Re: [Matplotlib-users] Merge colorbars from imshow and contour

2006-12-08 Thread Eric Firing
Yannick Copin wrote: Hi, in a case similar to matplotlib-0.87.7/examples/contour_demo.py (figure 4), would it be possible to merge to two colorbars (a continuous one from imshow, a discrete one from contour) into a single colorbar? Indeed, in that case, the two colorbars are mostly

Re: [Matplotlib-users] obtaining version info

2006-12-08 Thread Eric Firing
Alan G Isaac wrote: I assume there must be a reason for this:: import pylab pylab.__version__ Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has no attribute '__version__' That has always bothered me. But of

Re: [Matplotlib-users] passing 1D or 2D arrays to contour, pcolor, image, plot

2006-12-09 Thread Eric Firing
. That will work just fine, Mark On 7/13/06, *Eric Firing* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: But why is this better than the following? plot(Z[0,:], Z[1:,:]) The latter would accomplish the same, be completely consistent with option 4, be completely explicit

Re: [Matplotlib-users] Different contours in contour and contourf

2006-12-11 Thread Eric Firing
Yannick Copin wrote: Hi, Eric Firing wrote: from pylab import * X, Y = meshgrid(linspace(-3,3,11),linspace(-3,3,11)) Z = randn(*X.shape) lev = linspace(Z.min(),Z.max(),11)[1:-1] contourf(X,Y,Z, lev, extend='both') contour(X,Y,Z, lev, colors='k') show() Now, you may be wondering why we

Re: [Matplotlib-users] spy ignores negative values?

2006-12-11 Thread Eric Firing
Robert Cimrman wrote: [...] What could be done, though, is to raise an exception explaining that sparse matrices and the image mode don't like each other; as it is, the function spy3 just dies on asarray (should be st. like asarray( Z.todense() )) (I think it would be Z.toarray().) Good

Re: [Matplotlib-users] question about imshow

2006-12-12 Thread Eric Firing
This slightly modified excerpt from the new version of spy may do what you want: nr, nc = Z.shape extent = [-0.5, nc-0.5, nr-0.5, -0.5] return self.imshow(Z, interpolation='nearest', extent=extent, origin='upper') Eric John Travers wrote: Hi, I'm struggling to get an

Re: [Matplotlib-users] Contours message error

2006-12-12 Thread Eric Firing
Pierre, I will try to improve it. Eric Pierre GM wrote: Folks, Would it be possible to switch the current error message ValueError: Arguments x, y, z, mask (if present) must be 2D arrays. in cntr.c to something more explicit, when x, y, and z are 2D arrays, but one of them is

Re: [Matplotlib-users] 'fill' command broken in svn

2006-12-13 Thread Eric Firing
It's fixed now. Eric Rob Hetland wrote: fill(x, y) returns an error like: [] /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/matplotlib/axes.py in update_datalim(self, xys) 966 # and the data in xydata 967 xys = asarray(xys)

Re: [Matplotlib-users] error in simple plot command

2006-12-14 Thread Eric Firing
You need to update your mpl to the current release or svn. This was fixed quite a few months ago, but I don't remember exactly when. Eric Brian Blais wrote: Hello, If I do the following: plot([1],[1],'o') it plots the one dot correctly. if, however, one of those numbers is zero:

Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-14 Thread Eric Firing
David, I have made some changes in svn that address all but one of the points you made: [] if self.clip: mask = ma.getmaskorNone(val) if mask == None: val = ma.array(clip(val.filled(vmax), vmin, vmax)) else:

Re: [Matplotlib-users] contour_demo.py

2006-12-14 Thread Eric Firing
I don't recognize the error output at all, but it looks like you have an old version. The current release is 0.87.7. I don't know of any released version in which contour_demo.py did not run at all, though. The X errors make me wonder whether you are trying to run from inside an IDE. My

Re: [Matplotlib-users] Horizontal grid lines?

2006-12-14 Thread Eric Firing
Simson Garfinkel wrote: HI. I wand to have just horizontal grid lines. Is there any way to do this? Thanks! gca().yaxis.grid(True) gca().xaxis.grid(False) Here is the grid method docstring: def grid(self, b=None, which='major', **kwargs): Set the axis grid on or off;

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Eric Firing
BTW, this whole subplot(ijk) instead of subplot(i,j,k) notation is really, really confusing to me... Don't get overwhelmed. ijk is a shortcut for (i, j, k), that works well if you're working with less than 10 plots in either direction. It is a holdover from the early days of Matlab. It

Re: [Matplotlib-users] boxplot

2006-12-16 Thread Eric Firing
Simson L. Garfinkel's Treo 700p wrote: Yep. I would like to pass in a list of lists, where each sublist (or array) describes a boxplot to plot. This is now present in svn. Meanwhile, i've been having fun with histograms. The Y axis labels are a pain. I think defaulting to scientific

Re: [Matplotlib-users] histograms

2006-12-16 Thread Eric Firing
Simson, Using your example I get most of the values around 0.5, and the ends near 2.3. This is correct for a probability density function; the integral of the pdf over the range of the bins should be 1. This way the pdf values as a function of x don't change with changes in the number of

Re: [Matplotlib-users] Usability with matplotlib

2006-12-17 Thread Eric Firing
John Hunter wrote: [...] Simson To answer Eric's most recent posting: Simson 1. I think that scientific notation should not be the Simson default, unless numbers exceed 1E+7. I agree with this -- scientific notation kicks in too soon IMO. I think an rc setting would be

Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib

2006-12-17 Thread Eric Firing
David Cournapeau wrote: [...] Ok, I've installed last svn, and now, there is still one function which is much slower than a direct numpy implementation, so I would like to know if this is inherent to the multiple backend nature of matplotlib or not. The functor Normalize uses the clip

Re: [Matplotlib-users] Usability with matplotlib

2006-12-18 Thread Eric Firing
Pierre, Offhand, it looks like it should go into ticker.py, so I will probably do that. Eric Pierre GM wrote: On Monday 18 December 2006 13:29, David L Goldsmith wrote: Simson Garfinkel wrote: It really depends on your audience as to whether or not 1,000,000 through 9,000,000 is better

Re: [Matplotlib-users] Contour plots

2006-12-20 Thread Eric Firing
Ganesh V wrote: Hi! I have a problem with contour plots. See the two plots at http://www.ae.iitm.ac.in/~ae03b007/downloads/matlab.jpg http://www.ae.iitm.ac.in/~ae03b007/downloads/matplotlib.jpg The names show how they are generated. It's the same data obviously. Why the difference.

Re: [Matplotlib-users] subplot problem with (altervista) debian package

2006-12-22 Thread Eric Firing
The solution is to uninstall the deb package and install an up-to-date matplotlib. Whether there is a deb package somewhere that will work on debian stable, I don't know, but installing from the tarball is easy if you have the necessary devel packages installed. Eric Thierry Dumont wrote: I

Re: [Matplotlib-users] problems doing MULTIPLE plots - old plots appear on new plots!?!

2006-12-22 Thread Eric Firing
Try putting pylab.close() after each pylab.savefig() Eric [EMAIL PROTECTED] wrote: Help! I'm trying to make multiple plots in a web app and old plots seem to stick around and show up on new plots!??! Is there someway to erase the canvas or avoid this happening? Sound familiar?

Re: [Matplotlib-users] problems doing MULTIPLE plots - old plots appear on new plots!?!

2006-12-22 Thread Eric Firing
Alan G Isaac wrote: On Fri, 22 Dec 2006, [EMAIL PROTECTED] apparently wrote: 1st message in this thread has code to create each plot. Each one does a 'figure_ = pylab.figure()' already. Sorry I missed the thread, but each call to pylab.figure() will give you a new active figure.

Re: [Matplotlib-users] Problem with matplotlibrc file

2006-12-22 Thread Eric Firing
Armando Serrano Lombillo wrote: Hello, I have installed matplotlib 0.87.7 (with the standard windows exe). If I use the provided matplotlibrc file I get errors complaining about the following lines: lines.markerfacecolor : blue lines.markeredgecolor : black Commenting them out

Re: [Matplotlib-users] surface_create_for_array() argument 1 must be array, not numpy.ndarray

2006-12-23 Thread Eric Firing
I have verified that this occurs also on svn mpl with Linux, In [4]:cairo.cairo_version_string() Out[4]:'1.2.4' The immediate solution is to use a different backend. Eric [EMAIL PROTECTED] wrote: hi, TypeError happened when I ran contour_demo.py -dGtkCairo,Can anybody tell me the reason?

Re: [Matplotlib-users] can contour be drawed in vector mode?

2006-12-24 Thread Eric Firing
[EMAIL PROTECTED] wrote: Hi, matplotlib can make a contour plot on a masked array z using contourf(x,y,z).but it seems that it draws in a raster mode.there is sawtooth at the edge of the picture when it is zoomed.can contour be drawed in a vector mode? i means that 1) give an array z which

Re: [Matplotlib-users] polar axes control

2006-12-24 Thread Eric Firing
Miles Lubin wrote: Hi, I would like to be able to remove the dotted straight lines on the polar axes, but keep the dotted circular lines (not sure of the technical names, sorry). I also want to remove the degree measurement labels since they are not meaningful for the data that I am

Re: [Matplotlib-users] polar axes control

2006-12-24 Thread Eric Firing
the lack of a set_rmax method is not an oversight but a consequence of limitations in the present implementation. I will look at it some more and see if I can improve it. This might be long-term, not quick. Eric Thanks, Miles ** Eric Firing wrote: polar(theta, r) gca

Re: [Matplotlib-users] Filled Curves

2006-12-26 Thread Eric Firing
John Hunter wrote: Eric == Eric Firing [EMAIL PROTECTED] writes: Eric We did decide to make linewidth=0 suppress drawing the line, Eric and this is in the ps backend. Most likely it is not in all Eric backends, but it is in pdf, svg, and agg as well as ps. In Would

Re: [Matplotlib-users] histogram bug

2006-12-26 Thread Eric Firing
The problem is still present in svn. Thanks for the reminder. Eric Diwaker Gupta wrote: The following minimal script reveals a rendering problem with displaying a histogram on a log vertical axis. Has this been resolved yet? I'm running Matplotlib 0.87.5-2.2 on Debian Unstable. I try to

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread Eric Firing
John Hunter wrote: Diwaker == Diwaker Gupta [EMAIL PROTECTED] writes: The following minimal script reveals a rendering problem with displaying a histogram on a log vertical axis. Diwaker Has this been resolved yet? I'm running Matplotlib Diwaker 0.87.5-2.2 on Debian

Re: [Matplotlib-users] histogram bug

2006-12-27 Thread Eric Firing
John Hunter wrote: Eric == Eric Firing [EMAIL PROTECTED] writes: Eric Oops, I replied to your previous message before seeing this Eric one. Still, the larger question remains: maybe we should do Eric something to make it easier for users to understand what is Eric going

Re: [Matplotlib-users] histogram bug

2006-12-28 Thread Eric Firing
== Eric Firing [EMAIL PROTECTED] writes: Eric Adjusting zero and negative values (or maybe just zero) Eric would be unacceptable in a numerics library, but in the Eric context of our graphical transforms it is analogous to Eric clipping, and this we do all the time--we don't

Re: [Matplotlib-users] \n not working in text ?

2006-12-28 Thread Eric Firing
It works on my machine (linux) with svn, but I don't see anything about this in CHANGELOG. Eric Eric Emsellem wrote: hi, I am trying to have text written on 2 lines, but everything is written on a single line. Is that normal? here is an example: plot(arange(10)) ylabel('this is

Re: [Matplotlib-users] histogram bug

2006-12-29 Thread Eric Firing
John Hunter wrote: Eric == Eric Firing [EMAIL PROTECTED] writes: Eric either, indistinguishably from the way it does now. The Eric problem is that with a linear axis we want the axis to start Eric at zero by default, but with a log axis we want it to start With ymin at 1e-100

Re: [Matplotlib-users] contours polar?

2006-12-29 Thread Eric Firing
Petr Danecek wrote: Hello, first of all: thanks for the great software!! After the years of struggling with gnuplot, i really enjoy making my graphs with matplotlib. I'd like to ask, if it is possible to create a contour graph using polar coordinates? If not, can someone give me some

Re: [Matplotlib-users] numpy and matplotlib usage

2006-12-29 Thread Eric Firing
Belinda, I will give a short answer, and maybe someone else will be able to provide a more complete answer or a reference to one. belinda thom wrote: Hi, I'm using matplotlib w/numerix set to numpy (as described in my prior post). What I am wondering is in what situations one would

Re: [Matplotlib-users] archives

2006-12-29 Thread Eric Firing
Sourceforge does seem to be fouled up, but the following is up to date: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/maillist.html#01707 Eric belinda thom wrote: Hi, The source forge archive for this mailing list: http://sourceforge.net/mailarchive/forum.php?

Re: [Matplotlib-users] contour and basemap

2006-12-31 Thread Eric Firing
Jeff Whitaker wrote: # reverse sign of data, so contours won't be dashed. cs = m.contour(x, y, -topoin, [1000, 2000], colors='r') You can also use rcParams['contour.negative_linestyle'] = 'solid' to tell contour not to make monochrome negative contours dashed. Eric

Re: [Matplotlib-users] title and colorbar size

2007-01-02 Thread Eric Firing
of the examples shows how to do this if I recall correctly, but I don't remember which one. Eric Firing wrote it so I'm sure he'll be along shortly to point you to the light. Eric -- perhaps we should also add a snippet to the colorbar docstring since this is a common request. I have added a bit

Re: [Matplotlib-users] Using 'scaled' for aspect ratio

2007-01-03 Thread Eric Firing
Mark Bakker wrote: The enhanced way of handling aspect ratios that Eric implemented works great. There is, however, one change from the old implementation that I don't like. In the old implementation, when setting axis('scaled') it also turned autoscale off. This makes sense (and I used

Re: [Matplotlib-users] Open symbols in scatter plot

2007-01-04 Thread Eric Firing
John Hunter wrote: Eric == Eric Firing [EMAIL PROTECTED] writes: Eric Try scatter(x, y, alpha=0) Hmm, this surprises me -- the edgecolor should respect alpha too, no? I'm inclined to consider this a bug -- agree? Maybe, but I am not sure it is so simple as that. At the very least

Re: [Matplotlib-users] Using 'scaled' for aspect ratio

2007-01-06 Thread Eric Firing
that hasn't fouled up anything else. I think it should be OK. Eric Thanks, Mark On 1/3/07, *Eric Firing* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Mark Bakker wrote: The enhanced way of handling aspect ratios that Eric implemented works great

Re: [Matplotlib-users] subplot does not work in svn

2007-01-06 Thread Eric Firing
Chris, I suspect it is a problem with your matplotlibrc file; you could try stripping it down to bare minimum, as in the svn root directory. Another possibility is that your update is somehow incomplete or scrambled with an earlier installation. If that doesn't work, try making a minimal

Re: [Matplotlib-users] axis not accepting keyword arguments any longer?

2007-01-09 Thread Eric Firing
It is a bug. I don't know how or when it was introduced. I can fix it in svn later today. Eric Marcel Oliver wrote: Hi, I am running some code which used to work a couple of months ago, but now fails on the axis command which does not seem to accept keyword arguments any longer (current

  1   2   3   4   5   6   7   8   9   10   >