[vtkusers] Displaying plot legends in Charts

Jenya Burstein taijinian at gmail.com
Wed Apr 20 18:10:04 EDT 2011


Hello,

We need to be able to:
1) Display plot legends that can be interactively moved. It appears that
vtkChart's legend doesn't not allow legend to be repositioned interactively.
Is that correct?
2) Display plot legends only for some plots of a chart. There doesn't seem
to be an easy way to specify whether a legend should be drawn for a plot of
a chart. Looking at VTK code, it appears that if the Labels member of the
vtkPlot class is set to null, VTK will create and use AutoLabels. The only
way I can think of making a plot to be skipped for drawing a legend is to
subclass the vtkPlot[Line] and override the GetLabels() method to return
null. Is that the intended way?

Any info is much appreciated,
Jenya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110420/1b1dfb61/attachment.htm>


More information about the vtkusers mailing list