Re: [Matplotlib-users] zoomed in detail box

2012-09-13 Thread darkside
-Dale > > > > Maybe this is a bug in old version of matplotlib. > > > > Regards, > > > > -JJ > > > > > > On Wed, Sep 12, 2012 at 6:16 PM, darkside > wrote: > >> Thank you for your help. > >> > >> A simple example th

Re: [Matplotlib-users] Fwd: zoomed in detail box

2012-09-12 Thread darkside
- The "bbox_to_anchor" label is supposed to move the zoomed axis, but it does nothing, no matter what two numbers I place there. I guess that I miss something, but I can't figure out what. I really appreciate your help. Best regards, Illa 2012/9/5 Jae-Joon Lee >

Re: [Matplotlib-users] Fwd: zoomed in detail box

2012-08-20 Thread darkside
l. Cheers! Illa 2012/8/9 Benjamin Root > > On Wed, Aug 8, 2012 at 7:03 AM, darkside wrote: > >> >> >> -- Forwarded message -- >> From: darkside >> Date: 2012/8/2 >> Subject: Re: [Matplotlib-users] zoomed in detail box >> To: Jae-

[Matplotlib-users] Fwd: zoomed in detail box

2012-08-08 Thread darkside
-- Forwarded message -- From: darkside Date: 2012/8/2 Subject: Re: [Matplotlib-users] zoomed in detail box To: Jae-Joon Lee Hi everyone! I'm also trying to do a detailed zoomed area of my plot, but I can't manage to put the box in the position I want, bbox_to_anc

[Matplotlib-users] zoomed_inset_axes bbox_to_anchor not working

2012-08-07 Thread darkside
Hi everyone, I'm trying to make a zoom of a single plot. The problem is that the zoomed axes yticks overlap with the yaxes so I tried to use the bbox_to_anchor option in the zoom: axins = zoomed_inset_axes(ax, 3,bbox_to_anchor=(0.4,0.4),bbox_transform=ax.transAxes, loc=2) with different (x,y) par

[Matplotlib-users] zero division: warning and exception

2009-05-14 Thread darkside
Hi list, I have to make a division that sometimes yields and inf, and I want to replace it by 0. I have try this: --- import pylab as p p.seterr(divide='raise') l = array vector defined along the program try: a = (dr*R*dl)/(1.-((R0/R)*p.sin(l))**2

[Matplotlib-users] grayscale function

2009-05-14 Thread darkside
Hello, First of all, I'm so sorry if I make a silly question or if it's explained anywhere, buy I can't find help. I have to do a grayscale figure for the function show in fig1, using a density function, and obtain the picture from fig2. I have tried a lot of things, but at the end I don't know ho

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread darkside
't work in anyway. Maybe because of the \n? Do I have to put them off before trying fromstring? 2009/4/22 Jouni K. Seppänen > darkside writes: > > >>>> x = np.fromstring(b,sep='') > > That should be sep=' ' (a space) to make it read ASCII repres

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread darkside
Thanks, your solution is very good. But I have still one problem: the last line makes this: >>> x = np.fromstring(b,sep='') >>> x array([ 8.56506822e-072, 2.92021791e-033, 2.25187638e+006, ..., 6.99021630e-077, 1.39804329e-076, 2.66133772e-260]) As you can see, it doesn't load t

Re: [Matplotlib-users] load signed data joins problem

2009-04-22 Thread darkside
f doing it. Thank you very much 2009/4/22 Chloe Lewis > Looks like all the numbers use the same number of characters -- try > splitting 16 characters at a time off, and then interpreting those > substrings as numbers. > > On Apr 21, 2009, at 21 Apr, 7:10 PM, darkside wrote: > >

[Matplotlib-users] load signed data joins problem

2009-04-21 Thread darkside
Hi, I found a problem loading data: I have a file of signed numbers like: -1.370674456E+02-1.662854139E+02 0.0E+00 0.0E+00 0.0E+00 6.964865599E+10 8.394798002E-11 4.348192658E+03 9.455873862E+02 3.292484968E-09 The problem is that the signed numbers join so I always find

Re: [Matplotlib-users] error on different mouse events

2007-06-29 Thread darkside
t;[EMAIL PROTECTED]>: Hello darkside, I tried your example and it works for me (with mpl-svn) using GTKAgg and doesn't work (like you reported) using TKAgg (Is this a bug?). Maybe you can switch to GTKAgg? Otherwise you should report the mpl-version you are using. >-

[Matplotlib-users] error on different mouse events

2007-06-28 Thread darkside
Hello everyone, I'm trying to do a program that opens two different plots and select one point of each one with a mouse event. Here you have my example: -- import pylab def click(event): global x # allow to change global variable if event.button == 1:

[Matplotlib-users] Fwd: mouse events, get data and disconnect

2007-06-28 Thread darkside
__main__": print "Selecciona una de las siguientes opciones: \n " print "Un solo fichero de datos (0)" print "Lista de ficheros de datos (1)" print "Lista de ficheros de datos y valores de corte (2)"

Re: [Matplotlib-users] mouse events, get data and disconnect

2007-06-27 Thread darkside
__main__": print "Selecciona una de las siguientes opciones: \n " print "Un solo fichero de datos (0)" print "Lista de ficheros de datos (1)" print "Lista de ficheros de datos y valores de corte (2)"

[Matplotlib-users] mouse events, get data and disconnect

2007-06-03 Thread darkside
I'm trying to use matplotlib to get an x point on some figures by mouse clicking. To do this I try the next example: - datax=[] datay =[] def click(event): x, y = event.x, event.y if event.button == 1: if event.inaxes: print

Re: [Matplotlib-users] mlab.rk4

2007-04-27 Thread darkside
2007/4/27, John Hunter <[EMAIL PROTECTED]>: On 4/27/07, darkside <[EMAIL PROTECTED]> wrote: > hi everyone, > I'm trying to solve a lineal differential equation system, and I,m proving > with the mlab.rk4 function. > The problem I've found is that if the sol

[Matplotlib-users] mlab.rk4

2007-04-27 Thread darkside
hi everyone, I'm trying to solve a lineal differential equation system, and I,m proving with the mlab.rk4 function. The problem I've found is that if the solution if a complex number, I can't use this functin, because it doesn't accept complex number, and I can only get the real case. Have anyone

Re: [Matplotlib-users] animations with subplot

2007-02-28 Thread darkside
Hello, I'm new in matplotlib, but I have became a fat! First of all, I have to apologize for my bad English, I hope you can understand what I mean. Making some programs I have found the same problem: -What I want? I want to plot two sets of changing data using the same windows. -The problem? My