[Paraview] tex in scalar bar
Utkarsh Ayachit
utkarsh.ayachit at kitware.com
Sun Nov 24 18:13:46 EST 2013
There indeed is an easier way to do this. You can directly change the
label used for the color scalar bar without having to change the array
name. Refer to the following blog post on how to edit the Color Legend
parameters:
http://www.kitware.com/blog/home/post/578
There you can enter the mathtext as Dave suggested in the "Title" field.
This is indeed the recommended way for changing color legend titles. I
would not use the calculator as that would unnecessarily result in
duplicating of the data array.
Utkarsh
On Thu, Nov 21, 2013 at 11:20 AM, David Lonie <david.lonie at kitware.com> wrote:
> Hi Shiyuan,
>
> The scalar bar label is taken from the name of the array in the "Coloring"
> property. By renaming the array to a string containing tex markup (such as
> "$\pi^2$") you can get special characters, superscripts, etc.
>
> There might be an easier way to do this, but arrays can be renamed with the
> Calculator filter:
>
> 1) Add a calculator filter
> 2) Set "Attribute Mode" to Point Data or Cell Data
> 3) Select the input array using the "Scalars" or "Vectors" pulldown menus
> 4) Set the "Result Array Name" to the tex string
> 5) Change the "Coloring" array to the new array
>
> Hope this helps,
> Dave
>
>
> On Thu, Nov 21, 2013 at 10:54 AM, Shiyuan Gu <shiyuangu at gmail.com> wrote:
>>
>> Hi all,
>> Is there a way to use tex notation(ie, superscript) in the label of
>> the color scalar bar? Thanks.
>>
>> Shiyuan
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list