[Matplotlib-users] contour question

2008-03-11 Thread humufr
Hello, I'm using a svn version of matplotlib and the API changed for contour. I want to have the coordinate of the contour. Before Eric Firing (I think) gave a solution to do it: val = contour(xRange,yRange,delchi2,[1]) t = asarray(val.collections[0].get_verts()) but now get_ve

Re: [Matplotlib-users] colorbar problem

2008-03-11 Thread humufr
Le Sunday 09 March 2008 14:32:05 Eric Firing, vous avez écrit : > [EMAIL PROTECTED] wrote: > > Hello, > > > > I have some stupid questions about how to use colorbar. > > > > 1) I would like to be able to put the colorbar where I went: top, bottom, > > left, right. For wh

[Matplotlib-users] colorbar problem

2008-03-09 Thread humufr
Hello, I have some stupid questions about how to use colorbar. 1) I would like to be able to put the colorbar where I went: top, bottom, left, right. For what I see I can do only a vertical left and horizontal bottom ones (with a simple use of the function). I kn

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-29 Thread humufr
Le Monday 29 October 2007 10:57:52 Darren Dale, vous avez écrit : > On Monday 29 October 2007 10:45:22 am Michael Droettboom wrote: > > Darren Dale wrote: > > > On Monday 29 October 2007 10:09:21 am Michael Droettboom wrote: > > >> Michael Droettboom wrote: > > >>> Darren Dale wrote: > > I thi

Re: [Matplotlib-users] [SOLVED] bug or problem in my configuration

2007-10-26 Thread humufr
I tried to change the value and the highest one I can use is 2 so it's not a big improvement for what I understand. You can contact me if you need other test naturally N. Le Friday 26 October 2007 12:24:34 Michael Droettboom, vous avez écrit : > It's great to have narrowed this down! Unfortuna

Re: [Matplotlib-users] [SOLVED] bug or problem in my configuration

2007-10-26 Thread humufr
Le Friday 26 October 2007 11:22:06, vous avez écrit : > Thanks for this information. It looks like the font outline data is > somehow getting corrupted before freetype renders it. Again, however, I > can't reproduce it on my machine (I've attached a copy of what it looks > like for me), so I'm st

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-25 Thread humufr
Yep that can be a good idea. I don't know anything on how mathtext is working but I'm not completely sure that the problem is with freetype because sometime that can work. In reality every character I tested worked but you have to put in a certain order. To understand a little bit more what I tr

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-19 Thread humufr
Sorry I didn't know the difference... N. Le Friday 19 October 2007 10:52:25 Darren Dale, vous avez écrit : > On Friday 19 October 2007 10:38:36 am [EMAIL PROTECTED] wrote: > > Le Friday 19 October 2007 08:37:00 Darren Dale, vous avez écrit : > > > On Thursday 18 October 2007 11:49:50 am [EMAIL PR

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-19 Thread humufr
Oups I found the problem, I don't know why because it was working fine before the upgrade to gutsy but I have to change matplotlib configuration and everything is working fine if I put in the file: rc('text', usetex=True) sorry to have bother you with this, N. Le Friday 19 October 2007 08:37:

Re: [Matplotlib-users] bug or problem in my configuration

2007-10-19 Thread humufr
I don't think the problem is in dvipng because I have exactly the same when I'm using GtkAgg and before your message I didn't have dvipng installed. I'm using ubuntu gutsy so perhaps there are a change in the lib. N. Le Friday 19 October 2007 08:37:00 Darren Dale, vous avez écrit : > On Thursd

[Matplotlib-users] bug or problem in my configuration

2007-10-18 Thread humufr
Hi, I have a small problem with label. plot([0,1],[0,1]) xlabel(r'$ABCDEF$',fontsize=35) (but the size doesn't change anything) I obtain the result visible on the figure join. I think there are a problem when using latex and how the first character is handle. Thanks for matplotlib.

Re: [Matplotlib-users] Importing Binary files

2007-02-05 Thread humufr
Le Friday 02 February 2007 08:14:37 Vijay Kumar, vous avez écrit : > Hi, > > I want to import binary files generated from C/FORTRAN into matplotlib for > plotting. > Can this be done using 'load'? > > Thanks > Vijay no load can read only text file. --

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

2006-11-02 Thread humufr
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 ticklabels for the global plot, ie on the

Re: [Matplotlib-users] subplot_adjust bug?

2006-11-02 Thread humufr
Le Jeudi 2 Novembre 2006 09:19, John Hunter a écrit : > > "John" == John Hunter <[EMAIL PROTECTED]> writes: > > John> I need to tweak the overlap function to take an optional arg > John> so that endpoint overlap is OK. > > OK, this is now fixed in svn. Thanks for the report. The solut

[Matplotlib-users] subplot_adjust bug?

2006-11-01 Thread humufr
Hi, I have a problem with subplot_adjust but I don't know if it's a bug or because I didn't understand how to use it... I would like to create a 2 by 3 plots without space between the subplot and I can't arrive to manage it... Is the results of the next script is normal? import pylab fig1

Re: [Matplotlib-users] tex problem

2006-11-01 Thread humufr
Le Mardi 31 Octobre 2006 23:47, Robert Kern a écrit : > [EMAIL PROTECTED] wrote: > > I tried: > > > > label='$\textrm{test}_2$ > > xlabel(r label) > > xlabel(r+label) > > > > etc but it not working (like I expected). So I would like to know if > > there are a way to precise that the text is a raw s

Re: [Matplotlib-users] tex problem

2006-10-31 Thread humufr
Le Mardi 31 Octobre 2006 23:14, Eric Firing a écrit : > [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}$') #

[Matplotlib-users] tex problem

2006-10-31 Thread humufr
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: xlabel('$\textit{toto}$') #bad xlabel(r'$\textit

Re: [Matplotlib-users] How to label the each line by the corresponding values in the contour plot?

2006-10-19 Thread humufr
CS=pylab.contour(X,Y,Z) pylab.clabel(CS, inline=1, fontsize=10) Le mercredi 18 octobre 2006 17:03, [EMAIL PROTECTED] a écrit : > HI, all: > How to label the each line by the corresponding values in the contour plot? > Thanks! > -

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

2006-10-17 Thread Humufr
did you try to fix the size of the figure and the dpi? N. Eric Emsellem wrote: > Hi, > > I have a problem saving eps files in certain conditions. Unfortunately I > am unable to find a simple example which may be very illustrative here > to show you when it works and when it does not. > I include

Re: [Matplotlib-users] contour bug?

2006-10-16 Thread humufr
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 want

[Matplotlib-users] bug or feature?

2006-10-16 Thread humufr
Hi, I have some problem with this kind of script: #!/usr/bin/env python import numpy import numpy.random import pylab a = numpy.random.rand(10,10) pylab.matshow(a) pylab.colorbar() pylab.figure(figsize=(4.8,8),dpi=100) pylab.imshow(a,aspect='equal',interpolation='nearest') pylab.colorbar() pyl

Re: [Matplotlib-users] Upgraded mayplotlib won't plot

2006-10-10 Thread humufr
clean completely your precedent installation. That means remove the directory matplotlib in the site-package directory. N. Le mardi 10 octobre 2006 09:46, Bill Dandreta a écrit : > I upgraded matplotlib (from 0.84 to 0.87.4 and then 0.87.5) and my > scripts that previously worked no longer plot.

[Matplotlib-users] load and comments

2006-10-10 Thread humufr
Hi, I'm using very often the load command, I would like to know why the default comments character is still '%', the one from matlab, other than historical? I would prefer to have the one from python '#'. I know it's just a personal preference but we are using python so for cons

Re: [Matplotlib-users] markercolor broken

2006-10-09 Thread humufr
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)" but: markerfacecolor='#88' is working

Re: [Matplotlib-users] bug in numerix?

2006-09-26 Thread humufr
; Python's own help system. > > object? -> Details about 'object'. ?object also works, ?? prints more. > > > > Welcome to pylab, a matplotlib-based Python environment. > > For more information, type 'help(pylab)'. > > > > In [1]: import numpy > > > > I

[Matplotlib-users] bug in numerix?

2006-09-26 Thread humufr
)'. In [1]: import numpy In [2]: a = numpy.arange(123) In [3]: pylab.where(a>23) --- exceptions.TypeError Traceback (most recent call last) /home/humufr/ TypeError: where() takes exactly 3 arguments (1 given) In [4]: from matplotlib import rcParams In [5]: rcPara rcParams

Re: [Matplotlib-users] large postscript files

2006-09-06 Thread humufr
Le mercredi 6 septembre 2006 09:49, Darren Dale a écrit : > On Wednesday 06 September 2006 07:49, [EMAIL PROTECTED] wrote: > > Hi, > > > > The following plot > > > > >>> from numarray import * > > >>> x = arange(8) > > >>> from pylab import plot,show > > >>> plot(x,x) > > >>> show() > > > > and

Re: [Matplotlib-users] mathtext2

2006-08-24 Thread humufr
Itś working now, thanks. Just a remark why the fonts must be in mpl-data and why matplotlib is not using the fonts who are in the system? N. Le jeudi 24 août 2006 13:56, vous avez écrit : > On Thursday 24 August 2006 13:42, [EMAIL PROTECTED] wrote: > > Hello, > > > > I saw that mathtext2 wa

[Matplotlib-users] mathtext2

2006-08-24 Thread humufr
Hello, I saw that mathtext2 was include in the svn, I try to test it but even the demo is not working with the error message: ValueError: unrecognized symbol "\frac3" WARNING: Failure executing file: N. - Usin

Re: [Matplotlib-users] order of drawing a plot

2006-07-11 Thread humufr
you can use the zorder option: plot(x_line,y_line,zorder=10) scatter(x_point,y_point,zorder=12) N. Le mardi 11 juillet 2006 14:48, aonghus a écrit : > Hi, > > I would like to draw a line, and then draw some points > on top of the line, so I try something like > > plot(x_line, y_line, ...) > s

Re: [Matplotlib-users] bug?

2006-07-11 Thread humufr
Some change have been introduce in matplotlib? Because I used this sequence before and it was working. I'm a little bit surprise by the fact that the rgb sequence must be three numbers between 0 and 1. Generally rgb sequence are between 0 and 255, aren't they? http://homepage.mac.com/jakesan/D

[Matplotlib-users] bug?

2006-07-10 Thread humufr
Hello, I have a problem with the svn version of matplotlib. I don't know when this problem appeared but it was working before. so the next script gave me an error message: import pylab p = pylab.plot([1,2],[2,3],'o') pylab.setp(p,markerfacecolor=(120,120,120),markersize=5,markeredgewidth=1.,z

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

2006-06-12 Thread humufr
oki sorry for griddata it was my fault. After the mail on the list, I cleaned all precedent installation and now it's working fine with numpy... Thanks, N. Le samedi 10 juin 2006 13:45, Jeff Whitaker a écrit : > Eric Firing wrote: > > Thanks. There were in fact several points of incompatibil

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

2006-06-10 Thread humufr
Le vendredi 9 juin 2006 18:30, Christopher Barker a écrit : > [EMAIL PROTECTED] wrote: > > well, anyone using Numeric (or numarray), can just keep on using it for > a god while. So something that works now should work for a while into > the future. "should" but sometimes perhaps it's too hard to d

[Matplotlib-users] matplotlib, numpy, numarray

2006-06-09 Thread humufr
Hi, just to tell that the new quiver2 sample are not working with numarray. /usr/lib/python2.4/site-packages/matplotlib/quiver.py", line 237, in _make_verts scale = nx.amax(a) * math.sqrt(len(a)) # crude auto-scaling AttributeError: 'module' object has no attribute 'amax'