Hi all,
I'm still trying to analyse my data using the contour directive. When adding
fmt='1.3f' to the arguments, here's what happens:
In [25]:contour(r[0:zmax],z[0:zmax],rho[0:zmax],30,fmt = '1.3f')
···
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most recent
call last)
/home/ngirard/.python/<console>
/usr/lib/python2.4/site-packages/matplotlib/pylab.py in contour(*args,
**kwargs)
1784 hold(h)
1785 try:
-> 1786 ret = gca().contour(*args, **kwargs)
1787 draw_if_interactive()
1788 except:
/usr/lib/python2.4/site-packages/matplotlib/axes.py in contour(self, *args,
**kwargs)
1251
1252 def contour(self, *args, **kwargs):
-> 1253 return self._contourHelper.contour(*args, **kwargs)
1254 contour.__doc__ = ContourSupport.contour.__doc__
1255
/usr/lib/python2.4/site-packages/matplotlib/contour.py in contour(self, *args,
**kwargs)
685 col.set_linestyle((0, (6.,6.)),)
686 #print "setting dashed"
--> 687 col.set_label(fmt%level)
688 self.ax.add_collection(col)
689 collections.append(col)
TypeError: not all arguments converted during string formatting
Any hint ?
Thanks in advance,
cheers,
Nicolas