[chaco] number of colors of ColorBar...

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

[chaco] number of colors of ColorBar...

fred-2
Hi,

Is it possible to set the number of colors for a ColorBar trait,
like for Mayavi's colorbar?

TIA


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: [chaco] number of colors of ColorBar...

fred-2
Le 02/03/2010 15:54, fred a écrit :
> Hi,
>
> Is it possible to set the number of colors for a ColorBar trait,
> like for Mayavi's colorbar?
Peter,

Any chance that you can look at it, please?

TIA.


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: [chaco] number of colors of ColorBar...

fred-2
In reply to this post by fred-2
Le 02/03/2010 15:54, fred a écrit :
> Hi,
>
> Is it possible to set the number of colors for a ColorBar trait,
> like for Mayavi's colorbar?
Hi all,

I finally get the trick.

Anyway, for 2 colors, I should have blue and red (min & max) colors, and
not blue & yellow, no ?

And when I reverse the colormap, instead of yellow - blue, I get red-yellow.

     def _update_colors(self):
         p = self.tab.plot.plots.get('cmap_image_plot0')
         if (p is None):
             p = self.tab.plot.plots.get('colormapped_scatterplot0')
         if (p is not None):
             q = p[0]
             colormap = q.color_mapper
             colormap.steps = self.number_of_colors + 1
             colormap._recalculate()
             q.request_redraw()

TIA

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: [chaco] number of colors of ColorBar...

fred-2
In reply to this post by fred-2
Oops!

Cheers,

--
Fred

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

a.png (113K) Download Attachment
b.png (110K) Download Attachment
c.png (109K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [chaco] number of colors of ColorBar...

Brennan Williams
Remind me, what font is that?

Brennan

Fred wrote:

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


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

Re: [chaco] number of colors of ColorBar...

fred-2
Le 29/04/2010 11:13, Brennan Williams a écrit :
> Remind me, what font is that?
:-)

A TrueType one: bosanova

Downloaded a long long time ago, from a lot of others fonts, called
policesland.

But I can't get hand on the website :-(


Cheers,

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