MantisBT - VTK
View Issue Details
0012047VTK(No Category)public2011-04-05 16:442013-04-05 20:27
Carsten Panch Pedersen 
Marcus D. Hanwell 
normalfeatureN/A
closedfixed 
Windows7 SP1
 
 
0012047: Possibility to hide vtkPlot legends
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.

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
No tags attached.
Issue History
2011-04-05 16:44Carsten Panch PedersenNew Issue
2011-04-05 16:52Marcus D. HanwellAssigned To => Marcus D. Hanwell
2011-04-05 16:52Marcus D. HanwellStatusbacklog => tabled
2011-04-05 16:53Marcus D. HanwellStatustabled => @30@
2011-05-01 12:05Marcus D. HanwellNote Added: 0026292
2011-05-01 12:05Marcus D. HanwellStatus@30@ => @80@
2011-05-01 12:05Marcus D. HanwellResolutionopen => fixed
2011-06-16 13:12Zack GalbreathCategoryDevelopment => (No Category)
2013-04-05 20:27Berk GeveciStatuscustomer review => closed

Notes
(0026292)
Marcus D. Hanwell   
2011-05-01 12:05   
Commit abc45ac adds a new test verifying this functionality. You should set the plot label to an empty string, and this will case the legend to skip that plot.