Re: [Matplotlib-users] matplotlib-users@lists.sourceforge.net
Emmanuel Favre-Nicolin ha scritto: Hi, I didn't find any tip for preparation of simple black and white 2D plot, especially for nice output in eps for publication. Any suggestions are welcome. I don't get it. What kind of tips do you need? How to change the plot colour? m. -- Massimo Sandal University of Bologna Department of Biochemistry G.Moruzzi snail mail: Via Irnerio 48, 40126 Bologna, Italy email: [EMAIL PROTECTED] tel: +39-051-2094388 fax: +39-051-2094387 begin:vcard fn:Massimo Sandal n:Sandal;Massimo org:University of Bologna;Department of Biochemistry adr:;;Via Irnerio 48;Bologna;;40126;Italy email;internet:[EMAIL PROTECTED] tel;work:+39-051-2094388 tel;fax:+39-051-2094387 x-mozilla-html:FALSE version:2.1 end:vcard - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] viewing an image cube / sequence with imshow
On 6/26/07, Jason Addison [EMAIL PROTECTED] wrote: I would like to view a 3D array (or a python list of 2D arrays) as a sequence of images using something like imshow. For example, something like this: imshow(rand(6,12,12), imagecube=true) Here is a simple example showing how to do this -- we could add support for this in a built-in function. It would be nice if we encapsulated the scroll mouse in our event handling, since the scroll is the natural way to browse these images from pylab import figure, show class IndexTracker: def __init__(self, ax, X): self.ax = ax ax.set_title('use left mouse to advance, right to retreat') self.X = X rows,cols,self.slices = X.shape self.ind = self.slices/2 self.im = ax.imshow(self.X[:,:,self.ind]) self.update() def onpress(self, event): if event.button==1: self.ind = numpy.clip(self.ind+1, 0, self.slices-1) elif event.button==3: self.ind = numpy.clip(self.ind-1, 0, self.slices-1) print event.button, self.ind self.update() def update(self): self.im.set_data(self.X[:,:,self.ind]) ax.set_ylabel('slice %s'%self.ind) self.im.axes.figure.canvas.draw() fig = figure() ax = fig.add_subplot(111) X = numpy.random.rand(20,20,40) tracker = IndexTracker(ax, X) fig.canvas.mpl_connect('button_press_event', tracker.onpress) show() import numpy from pylab import figure, show class IndexTracker: def __init__(self, ax, X): self.ax = ax ax.set_title('use left mouse to advance, right to retreat') self.X = X rows,cols,self.slices = X.shape self.ind = self.slices/2 self.im = ax.imshow(self.X[:,:,self.ind]) self.update() def onpress(self, event): if event.button==1: self.ind = numpy.clip(self.ind+1, 0, self.slices-1) elif event.button==3: self.ind = numpy.clip(self.ind-1, 0, self.slices-1) print event.button, self.ind self.update() def update(self): self.im.set_data(self.X[:,:,self.ind]) ax.set_ylabel('slice %s'%self.ind) self.im.axes.figure.canvas.draw() fig = figure() ax = fig.add_subplot(111) X = numpy.random.rand(20,20,40) tracker = IndexTracker(ax, X) fig.canvas.mpl_connect('button_press_event', tracker.onpress) show() - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] viewing an image cube / sequence with imshow
On 6/27/07, John Hunter [EMAIL PROTECTED] wrote: Here is a simple example showing how to do this -- we could add support for this in a built-in function. It would be nice if we encapsulated the scroll mouse in our event handling, since the scroll is the natural way to browse these images I just added a scroll_event to backend bases -- it fires a mouse event setting the button attribute to either 'up' or 'down' and added this example to examples/image_slices_viewer.py Developers who use/develop other backends -- if you get a minute it would be nice to connect up your backend to the new scroll_event. See backend_gtk.py for example code Thanks, JDH - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] how to find window that generated an event
I have a matplotlib script that generates several figures. When a figure receives an event, how do I know which figure it did it? For example, the key event 'w' is meant to close the figure, but so far, I have no way to control which figure gets closed. In the pick_event_demo.py example, each figure is connected to an event handler specific to it. I think this wouldn't work in my case because I don't know how many figures I'd have until I process some data. In any case, all my event handlers can be independent of the figure generating the event. They just need to know which figure to refer to. My work-around right now is to save the canvas attributes from all the figure handle. I compare this canvas to the canvas attribute of the event. When I found a match, I know I have the right figure. This seems kludgey, especially after most of the figures have been closed. I'd appreciate any help or pointers. Brian - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] how to find window that generated an event
On Wed, Jun 27, 2007 at 09:16:09AM -0500, John Hunter wrote: On 6/26/07, Brian T.N. Gunney [EMAIL PROTECTED] wrote: I have a matplotlib script that generates several figures. When a figure receives an event, how do I know which figure it did it? For example, the key event 'w' is meant to close the figure, but so far, I have no way to control which figure gets closed. All events are connected to figures by definition -- the figure is placed inside a GUI canvas and that is what manages the events. The pylab connect function is just a thing wrapper to the canvas mpl_connection function. pylab's connect just grabs the current figure with gcf and makes the call fig.canvas.mpl_connect So in matplotlib, events do not make since w/o reference to specific figures. That makes sense. However, it's not clear to me which figure is to be the current figure. It does not appear to be the figure where the event occured. In the pick_event_demo.py example, each figure is connected to an event handler specific to it. I think this wouldn't work in my case because I don't know how many figures I'd have until I process some data. I don't see why this is a problem -- just set up the connections when It's a problem because the number of figures is variable. I don't know how many call-back functions to define when I write the script. you create the figure as you process the data. You'll probably need to post an example if you have further troubles, because it is hard to advise in the abstract. Ok. Here is an example. Run this and type 'w' in window 0. You should expect figure 0 to be closed, but instead, figure 2 is closed. #!/usr/bin/env python import sys from pylab import * # This is meant to illustrate that the number of figures is # unknown until run time. if len(sys.argv) 1: nfigs = int(sys.argv[1]) else: nfigs = 3 # Process key presses. def on_key(event): if event.key=='w': # Close current window. # How do we control which window gets closed? close() elif event.key=='q': # Exit. sys.exit(0) # Generate as many figures as specified on command line. for i in range(nfigs): figure(i) title( str(i) ) plot(range(i+2)) connect('key_press_event', on_key) show() Thanks for helping. Brian - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib-users@lists.sourceforge.net
Sorry, forgot to copy the list. On 6/27/07, Ryan Krauss [EMAIL PROTECTED] wrote: I think what you are asking is how to make mpl plot different line types in colors and styles that are easily distinguishable when plotted in grayscale. I had tinkered with this a bit in the past and the final suggestion was to write some helper functions so that I could do the following: from mycyclers import colorcycler, linecycler for data in mydata: ax.plot(data, linestyle=linecycler(), color=colorcycler()) so that by writing a linecycler function I could control the line types plotted each time and the same with the color. Color would be specified as a grayscale such as '#808080' for a medium gray or '#00' for black. I didn't actually do it this way or I would post the code (I was in a hurry and did something hackish). I think that linecycler and colorcycler would be helper classes thta increment there own internal count when called and return a linestyle or color. I think what you want in the end is a simple way to do this: t=arange(0,1,0.01) y=sin(2*pi*t) x=cos(2*pi*t) plot(t,x,color='#00',linestyle='-') plot(t,y,color='#808080',linestyle=':') where color and line style would increment pseudo-automatically through lists you have defined and that you like. A slightly better approach might be: t=arange(0,1,0.01) y=sin(2*pi*t) x=cos(2*pi*t) data=[x,y] mycolors=['#00','#808080'] mytypes=['-',':'] def grayscaleplot(data,t): for n,item in enumerate(data): plot(t,item, color=mycolors[n], linestyle=mytypes[n]) FWIW, Ryan On 6/27/07, Emmanuel Favre-Nicolin [EMAIL PROTECTED] wrote: Hi, I didn't find any tip for preparation of simple black and white 2D plot, especially for nice output in eps for publication. Any suggestions are welcome. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Prompt in MPL - NEVER MIND
Hello everybody, in my last version I forgot to include a very useful function (it is comparable with the 'Button.on_clicked' function). I added it now. It allows the user to interact with other widgets ( I needed it to interact with the Silder) or his own program (e.g. updating external values or plots). I attached this new version. best regards, Matthias On Tuesday 26 June 2007 19:46, Matthias Michler wrote: Hello John, Hello all, I thought once more about the textbox and added some of your (Johns) features to my class 'InputButton'. Probably my solution isn't the best possible, but I attached this version to express what I'm thinking of and to see what others think about my solution and needed skills of the textbox . Could this be helpful / useful for others? best regards, Matthias On Wednesday 06 June 2007 17:25, John Hunter wrote: On 6/6/07, Matthias Michler [EMAIL PROTECTED] wrote: By the way: What do you think about the insert a 'l' or 'g' into your TextBox and get a grid or log-scale-issue? Is there a possibility to switch the mpl-meaning of 'l', 'g' and 'f' off? Yes, this is clearly an issue that has to be dealt with in a cleanup. The current implementation has no concept of whether the text box is the active widget. We would need to do something like activate the text box when you click on it (and figure out the right cursor location based on the click if there is already text in there) and deactivate it on a carriage return or click in another axes. The current implementation was only a proof of concept. JDH InputButton_mpl2.py Description: application/python - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] a patch in matplotlib/__init__.py about get_py2exe_datafiles function
Hi Tocer, Thanks for the patch to matplotlib/__init__.py. I changed an obvious issue ('.nil' to '.nib'), but otherwise committed it as-is. Can you (or Werner, who was also having this issue) test the current svn version (=3418) and report back? Cheers! Andrew tocer wrote: Hi, matplotlib developer You know there is a bug about get_py2exe_datafiles in MPL0.90.1. I think I fix it below. - matplotlib/__init__.py -- def get_py2exe_datafiles(): datapath = get_data_path() head, tail = os.path.split(datapath) d = {} for root, dirs, files in os.walk(datapath): # Need to explicitly remove cocoa_agg files or py2exe complains # NOTE I dont know why, but do as previous version if 'Matplotlib.nib' in files: files.remove('Matplotlib.nil') files = [os.path.join(root, filename) for filename in files] root = root.replace(tail, 'matplotlibdata') root = root[root.index('matplotlibdata'):] d[root] = files return d.items() - end - and the sample of setup.py is below: - setup.py sample --- from distutils.core import setup import py2exe import matplotlib dist_dir = r'r:\matplotlib_dist_dir' setup( console=['simple_demo.py'], options={ 'py2exe': { 'packages' : ['matplotlib', 'pytz'], 'dist_dir': dist_dir } }, data_files=matplotlib.get_py2exe_datafiles() ) it work well in my box. -- Tocer - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] how to find window that generated an event
On 6/27/07, Brian T.N. Gunney [EMAIL PROTECTED] wrote: # Process key presses. def on_key(event): if event.key=='w': # Close current window. # How do we control which window gets closed? close() The event has a canvas attribute, which is the figure canvas that contains the figure, so you should be able to do close(event.canvas.figure) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] how to find window that generated an event
On Wed, Jun 27, 2007 at 11:40:39AM -0500, John Hunter wrote: On 6/27/07, Brian T.N. Gunney [EMAIL PROTECTED] wrote: # Process key presses. def on_key(event): if event.key=='w': # Close current window. # How do we control which window gets closed? close() The event has a canvas attribute, which is the figure canvas that contains the figure, so you should be able to do close(event.canvas.figure) That is exactly what I need. Thank you. Brian - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] mouse events, get data and disconnect
Hello, I don't know what I'm doing wrong, but it don't work for me. I have to open different sets of data, plot it, select an initial point, make some calculations and save all the data. Each plot have a diferente initial point, so I thought of do this with a for sentences, opening each plot, doing all and so on. But I open the first one, and then it plots the second one, but don't let me select the original point, it catches the previos one. And the same for the rest. And I don't know why it doesn't work. Here you have all the program: -- #!/usr/bin/python # -*- encoding: latin1 -*- #Importamos los módulos necesarios: import Numeric as num import pylab import random import array import sys from matplotlib.widgets import SpanSelector from matplotlib.widgets import Cursor #Leemos el fichero que contiene el valor de la energia y la suma de los espines: def readfiles(filename): Lee el fichero donde estan los datos. La primera fila del fichero nos da la temperatura y el numero de puntos. Las dos columnas tienen la energia y la suma de los spines. fin = open (filename, 'r') fields = fin.readline() fin.close() labels = fields[1:].split() t = eval(labels[1]) n = eval(labels[6]) datos = pylab.load(filename,comments='#') energia =datos[:,0] sumspines =datos[:,1] return t, n, energia, sumspines def filelist(filename): fin = open(filename,'r') files = [] for line in fin: files.append(line[:-1]), return files def writefile(filename,start,cv,mag,t): Escribimos en un fichero todos los datos de punto de corte, calores especificos, magnetizacion y temperatura fout = open(filename,'w') fout.write (#punto de cortecvmagnetizaciontemperatura) for i in range (len(start)): fout.write(%f \t %f \t %f \t %f \n % (start[i],cv[i], mag[i], t[i])) fout.close() def cv(energia,T,n,g,start): Calculamos el calor específico segun la formula: Cv= k*B**2/(nx*ny)*(H² - H² donde: H² = (sumatorio H/n) **2 H² = (sumatorio H) **2 /n hp = sum(energia[start:])/(n*g*g*2.) energia2 = num.asarray(energia) hp2 = sum(energia2[start:]**2)/n*(g*g*2)**2 #print 'Algunos valores de la energia: ',energia[start:start+10] return (hp2-hp**2)/(g*g*T**2) def mag(sumspines,n,g,start): Calculamos la magnetizacion, usando la formula: M = (sumatorio S) /n #print 'Algunos valores de sumspines: ', sumspines[start:start+10] #print 'la n es: ', n return sum(sumspines[start:]) /(n*g*g) def grid(zn): im1 = pylab.imshow(zn, cmap=pylab.cm.gray, interpolation='nearest') pylab.show() def plotear(energia): fig=pylab.figure(figsize=(8,6)) ax = fig.add_subplot(111) x=pylab.arange(0,len(energia),1) ax.plot(x,energia,linewidth=2) pylab.grid(True) cursor = Cursor(ax, useblit=False, color='red', linewidth=2) cursor.horizOn = False def click(event): global x #x,y = event.x,event.y if event.button == 1: if event.inaxes: #print 'coordenada x', event.xdata x = event.xdata pylab.disconnect(cid) pylab.close() return x def main0 (): global cid filename = raw_input(Introduce el fichero de datos: ) # t= temperatura # n= numero de pasos # energia = valores de la energia, sin normalizar (hay que multiplicar por # 1/( 2*nx*ny) # sumspines= valor de la suma de los espines para cada energia # g = grid (nx =ny) t, n, energia, sumspines = readfiles(filename) g = float(filename[(filename.find('-')+1):]) plotear(energia) cid = pylab.connect('button_press_event', click) pylab.show() x1 = int(x) print 'Coordenada x: ',x1 print 'El calor especifico es: ',cv(energia,t, n,g,x1) print 'La magnetizacion es: ', mag(sumspines,n,g,x1) def main1(): global x, cid filename = raw_input(Introduce el fichero con la lista: ) files = filelist(filename) start=[] cvall=[] magall=[] ts=[] for i in range(len(files)): t,n,energia,sumspines= readfiles(files[i]) g = float(files[1][(files[1].find('-')+1):]) plotear(energia) cid = pylab.connect('button_press_event', click) pylab.show() x1 = int(x) start.append(x1) cv1=cv(energia,t, n,g,start[i]) mag1= mag(sumspines,n,g,start[i]) cvall.append(cv1) magall.append(mag1) ts.append(t) print 'Coordenada x: ',x1 print 'El calor especifico es: ',cv1 print 'La magnetizacion es: ', mag1 filename2='resultados_globales.%s' % (g) writefile(filename2,start,cvall,magall,ts) def main2(): print todavia no esta hecho if __name__ == __main__: print Selecciona una de las
[Matplotlib-users] multiple line title
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Folks, Is there a way to make a multiple line title? I have looked through the documentation and googled, but have not found an answer. I would like something that looks like this This is the first line second:line Thanks, Dave - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGgtB6Nu7GcwGNZSMRAqHOAKCvb1Km0EqjClU/Za/bsEI2xmnETgCgsmtI sWKt0+VAu16xCtWZTaeiPV4= =AG8W -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] multiple line title
David D Clark a écrit : Is there a way to make a multiple line title? I have looked through the documentation and googled, but have not found an answer. I would like something that looks like this This is the first line second:line title('This is the first line\nsecond:line') ? -- http://scipy.org/FredericPetit - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] multiple line title
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Fred, That did the trick. I thought I had tried that and it failed. I must have made a typo. Thanks, Dave fred wrote: David D Clark a écrit : Is there a way to make a multiple line title? I have looked through the documentation and googled, but have not found an answer. I would like something that looks like this This is the first line second:line title('This is the first line\nsecond:line') ? - -- David D. Clark Electrical Engineer P-23, Neutron Science and Technology ph. 505.667.4147 fx. 505.665.4121 pg. 505.996.1416 e-mail mailto:[EMAIL PROTECTED] GPG Public key 0x018D6523 available at http://www.us.pgp.net http://www.gnupg.org has information about public key cryptography -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGgtv5Nu7GcwGNZSMRAudZAJ9Vj4bXb1iPHhryOg7FYYCS9cKfTwCeJQMJ +lJdVeHtBy3wfcerDVxtLWY= =JgS8 -END PGP SIGNATURE- - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] export of a zone in png
Hi, I would like to export a zone of a Figure in .png. Something like figure.savefig(mypicture.png, box = (0,0,5,5)) How may I proceed, without drawing all the plots again ? I use wxagg. Thanks, Nicolas - Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] viewing an image cube / sequence with imshow
Thanks John and Angus. I can't wait to try out your recommendations. I'm upgrading my system at the moment, so I'm not able to try them out just now. It is promising that matplotlib seems to be able to handle this pretty easily. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] mathtext.mathtext2 KeyError
Hi Steve, On 6/27/07, Steve Sweet [EMAIL PROTECTED] wrote: Hi, I've installed matplotlib-0.90.1 on a Centos 5.0 box (Centos is identical to RedHat Enterprise). One of my users is running a script that previously worked with matplotlib on another system. I'm seeing the following errors [Wed Jun 27 12:25:17 2007] [error] [client 10.0.0.92] PythonHandler cv_wms: KeyError: 'mathtext.mathtext2' I've done a bit of snooping through the code and I searched the mailing list archive. I saw a message relating to matplotlib-0.87 indicating that the missing key needed to be added to the matplotlibrc file. However when I do so I get this message: [Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] Bad key mathtext.mathtext2 on line 260 in [Wed Jun 27 12:17:35 2007] [error] [client x.x.x.x] /var/www/.matplotlib/matplotlibrc. When I remove the offending key I am back to the first error. I am using the matplotlibrc file that came with the 0.90.1 tarball. Does anyone have any suggestions? Thanks. It seems like you have another (older) installation of matplotlib somewhere on that system. Note that newer matplotlibs don't even require a matplotlibrc file in the $HOME/.matplotlib dir. Have you tried removing it completely? If you still have problems, please post some more info. Edin - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users