<div dir="ltr">On Fri, May 10, 2013 at 2:19 PM, Bastian A. <span dir="ltr">&lt;<a href="mailto:bastianra@gmail.com" target="_blank">bastianra@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<div><br></div><div>I am using vtkPlotPoints to create a plot in which I am setting the color of the points using vtkPlotPoints::SelectColorArray, SetScalarVisibility(1) and a continuous lookup table. </div>
<div>
This is working great, however I am having trouble displaying a legend that shows how the colors are mapped to the scalar range of the data.</div><div>Using SetShowLegend(1) will turn on a legend that only displays the marker and the name of the column that is plotted.</div>

<div><br></div><div>How can I display a legend that shows how colors map to scalar values (Using vtk 6) ? </div></blockquote><div><br></div><div style>I am afraid that is a feature we currently lack in the charts. I haven&#39;t tried this, but the vtkColorLegend class is used in the 2D histogram chart to display this data. You could probably set the transfer function on it and place it on the scene. That may do most of what you want, then you would need to handle the layout. This could obviously be added to the charts in a future release, but I am not sure about the ideal layout if multiple series using multiple transfer functions and all want to be shown in an extended legend.</div>
<div style><br></div><div style>Marcus</div></div></div></div>