[vtkusers] scalarBar with text labels?

Randy Heiland heiland at indiana.edu
Sat Feb 5 12:19:40 EST 2011


In case anyone cares about a hack for doing this, here's a Python script which basically just uses a scalarBarActor, textActors, and viewport coords.

http://www.compucell3d.org/mediawiki1.7/index.php/Labels_on_scalarbar

-Randy

On Feb 3, 2011, at 11:32 AM, Randy Heiland wrote:

> Does anyone have a suggestion for creating a customized scalarBar-like actor that would display text as labels instead of numbers?  For example, given a scalar field in the range[0,100], I'd like to display one of ['poor','good','excellent'] instead of numeric values for various sub-ranges.
> 
> Seems to have been asked before (http://vtk.1045678.n5.nabble.com/Change-label-from-vtkScalarBarActor-td1242020.html), but I didn't see any replies.
> 
> thanks, Randy
> _______________________________________________
> 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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list