Ho you got the point...
self.clutter_low.GetPosition() didn't returned an int...
self.clutter_low.GetValue return an int an it works now.
I missed this because I thought that 
self.norm = plt.Normalize(vmin=self.low_clutter_val,
vmax=self.high_clutter_val)
would have crashed before in this case, but seems it does not do any
computation on Normalize call.

Anyhow, thank you a lot, sorry to have send this error, I could have read my
code deeper first.

Regards,
Lauent

> -----Message d'origine-----
> De : John Hunter [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 30 juillet 2008 02:04
> À : Laurent Dufrechou
> Cc : matplotlib-users@lists.sourceforge.net
> Objet : Re: [Matplotlib-users] imshow update norm make my app crash.
> 
> On Tue, Jul 29, 2008 at 6:52 PM, Laurent Dufrechou
> <[EMAIL PROTECTED]> wrote:
> 
> > I've applied the idea you've said later about colormap.
> >
> > Now I would like on an event to refresh my view so I've written this
> code:
> 
> 
> I would like to see what
> 
>         self.low_clutter_val = self.clutter_low.GetPosition()
> 
>         self.high_clutter_val = self.clutter_high.GetPosition()
> 
> low and high clutter val are (can you print them, as well as their
> type, eg
> 
>   print low', type(self.low_clutter_val), self.low_clutter_val
> 
> and likewise for the high val.  From the error, it looks lik they are
> not scalars.
> 
> JDH


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to