Uniform colormap for scenes in animation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Uniform colormap for scenes in animation

Tanyakarn Treeratanaphitak
I used vmax and vmin to fix the colorbar, but the label of the intervals on the colorbar still changes with each plot. Is there a way to fix that as well?

On Sep 8, 2012, at 1:00 PM, [hidden email] wrote:

>
> Date: Fri, 7 Sep 2012 22:40:47 -0400
> From: Tanyakarn Treeratanaphitak <[hidden email]>
> Subject: [Enthought-Dev] Uniform colormap for scenes in animation
> To: [hidden email]
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I'm animating a series of velocity profiles that vary over time. When I animate the data for the quiver3d plot, the colormap also updates to a new scale based on the current set of data. Is there a way to fix the range of the colormap so that it remains the same throughout my animation? For example, if the value 0.5 corresponds to the color red in one plot, is there a way to keep it that way in all plots?
>
> Thank you,
> Tanyakarn Treeratanaphitak
>
> ------------------------------
>
> Message: 2
> Date: Fri, 7 Sep 2012 21:48:39 -0500
> From: Warren Weckesser <[hidden email]>
> Subject: Re: [Enthought-Dev] Uniform colormap for scenes in animation
> To: [hidden email]
> Message-ID:
> <CAM-+wY9e6jMdAuPr0MYqt8ULLCGJ6WpOy3bmBPTaA_q=[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
> On Fri, Sep 7, 2012 at 9:40 PM, Tanyakarn Treeratanaphitak <
> [hidden email]> wrote:
>
>> Hi,
>>
>> I'm animating a series of velocity profiles that vary over time. When I
>> animate the data for the quiver3d plot, the colormap also updates to a new
>> scale based on the current set of data. Is there a way to fix the range of
>> the colormap so that it remains the same throughout my animation? For
>> example, if the value 0.5 corresponds to the color red in one plot, is
>> there a way to keep it that way in all plots?
>>
>
>
> The vmin and vmax arguments of quiver3d allow you to set the scale of the
> colormap (see the docstring).
>
> Warren
>
>
>
>
>>
>> Thank you,
>> Tanyakarn Treeratanaphitak
>> _______________________________________________
>> Enthought-Dev mailing list
>> [hidden email]
>> https://mail.enthought.com/mailman/listinfo/enthought-dev
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mail.enthought.com/pipermail/enthought-dev/attachments/20120907/bee4dd56/attachment-0001.html 
>
>
> *********************************************
>

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