[Paraview] tex in scalar bar

David Lonie david.lonie at kitware.com
Thu Nov 21 11:20:30 EST 2013


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131121/d9213968/attachment.htm>


More information about the ParaView mailing list