[mayavi] number of colorbar colors...

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[mayavi] number of colorbar colors...

fred-2
Hi all,

When I change the number of colorbar colors, this seems to not be
updated to the modules...

Am I doing something wrong?

TIA

Cheers,

CME: contours.py in advanced_visualization.


--
Fred

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev

snapshot4.png (395K) Download Attachment
snapshot256.png (390K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

Gael Varoquaux
On Thu, Apr 15, 2010 at 05:42:26PM +0200, Fred wrote:
> When I change the number of colorbar colors, this seems to not be  
> updated to the modules...

Did you trying forcing a refresh?

Gaël
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

fred-2
Le 15/04/2010 19:03, Gael Varoquaux a écrit :
> On Thu, Apr 15, 2010 at 05:42:26PM +0200, Fred wrote:
>> When I change the number of colorbar colors, this seems to not be
>> updated to the modules...
>
> Did you trying forcing a refresh?
How can I do that?

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

Gael Varoquaux
On Thu, Apr 15, 2010 at 07:32:39PM +0200, Fred wrote:
> > Did you trying forcing a refresh?
> How can I do that?

mlab.draw(), or equivalently figure.render()

Gaël

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

fred-2
Le 15/04/2010 20:33, Gael Varoquaux a écrit :
> On Thu, Apr 15, 2010 at 07:32:39PM +0200, Fred wrote:
>>> Did you trying forcing a refresh?
>> How can I do that?
>
> mlab.draw(), or equivalently figure.render()
It seems it that does not the trick :-/


Cheers,

--
Fred

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev

snapshot1.png (275K) Download Attachment
snapshot2.png (271K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

Gael Varoquaux
On Sat, Apr 17, 2010 at 08:11:29PM +0200, Fred wrote:
> Le 15/04/2010 20:33, Gael Varoquaux a écrit :
>> On Thu, Apr 15, 2010 at 07:32:39PM +0200, Fred wrote:
>>>> Did you trying forcing a refresh?
>>> How can I do that?

>> mlab.draw(), or equivalently figure.render()
> It seems it that does not the trick :-/

OK, if m is the module of which you are displaying the LUT, this will
work:

m.module_manager.scalar_lut_manager.render()

Gaël
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

fred-2
Le 18/04/2010 11:56, Gael Varoquaux a écrit :

> OK, if m is the module of which you are displaying the LUT, this will
> work:
>
> m.module_manager.scalar_lut_manager.render()
Mmmh, I wrote a CME, and all works fine with simply

lut_manager.number_of_colors = int

No need to call render().

But it does not work at all in my Traits app :-(((

I have to dig in why... :-//


Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

fred-2
Le 18/04/2010 13:56, Fred a écrit :
> Le 18/04/2010 11:56, Gael Varoquaux a écrit :

> But it does not work at all in my Traits app :-(((
>
> I have to dig in why... :-//
In this CME, if you comment line lut_mode = 'pink', it works fine.

If you uncomment it, it does not.

Is it expected?

I'll get a try with render() call...



Cheers,

--
Fred

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev

cme.py (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [mayavi] number of colorbar colors...

fred-2
Le 23/04/2010 11:39, Fred a écrit :

> I'll get a try with render() call...
Not better :-(


Any hint?


Cheers,

--
Fred

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev

cme.py (2K) Download Attachment