[vtkusers] Hide legends for plots in vtkChartXY

Marcus D. Hanwell marcus.hanwell at kitware.com
Tue Apr 5 11:41:57 EDT 2011


On Thu, Mar 24, 2011 at 9:23 AM, Carsten Panch Pedersen
<panch at trivision.dk> wrote:
> Hi everyone,
>
> 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.
>
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



More information about the vtkusers mailing list