[vtk-developers] [VTK 0012047]: Possibility to hide vtkPlot legends

Mantis Bug Tracker mantis at public.kitware.com
Tue Apr 5 16:44:50 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12047 
====================================================================== 
Reported By:                Carsten Panch Pedersen
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12047
Category:                   Development
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-04-05 16:44 EDT
Last Modified:              2011-04-05 16:44 EDT
====================================================================== 
Summary:                    Possibility to hide vtkPlot legends
Description: 
I’m using a vtkChartXY to display some plots. On the vtkChartXY I can 
choose to show legends (SetShowLegend(true)). Apparently, I cannot 
select which plots to show the legends for. Either it’s all or none.

Is it possible to hide the legends for specific plots? I could set the 
plot label to an empty string, but it still leaves drawing of the plot 
color. I would like to remove it altogether.



Additional Information: 
Answer from Marcus:
It should be quick enough to add a check for the plots having a zero length
label, but that functionality does not currently exist. If you file a bug I will
assign it to myself, which will ensure it remains on my list. No one has
requested this functionality before.

Marcus
--
Marcus D. Hanwell, Ph.D.
R&D Engineer, Kitware Inc.
(518) 881-4937

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-05 16:44 Carsten Panch PedersenNew Issue                                
   
======================================================================




More information about the vtk-developers mailing list