[vtkusers] How to put a legend box?

Rakesh Patil rakeshthp at in.com
Mon Feb 1 12:23:08 EST 2010


 Thanks David,I understand the concept of legendboxactor now.. But I hope you know why i want touse different sized symbol.. I am displaying vector plots. So to show the magnitude range of a vector (min and max size of arrow) i need different sized shapes in legendboxactor.As you said, colors, these vectors can be plotted either in black color, or with colorscaled by the vector magnitude. So in second case, i need both color and size to indicate range. Whereas in first case i only need size...So, Apart from writing my own actor, can anyone suggest some other solution..??Thanks 'n' Regards Original message From:David Doria< daviddoria+vtk at gmail.com >Date: 01 Feb 10 19:29:20Subject:Re: [vtkusers] How to put a legend box?To: rakeshthp at in.comOn Mon, Feb 1, 2010 at 5:24 AM, Rakesh Patilwrote:> Hello,>> I want to display a legend box ... The legend should be an arrow. One big> arrow and one small arrow along with the smallest and the largest length of> the arrow. How do i do this..
 ??>> Thanks>The problem was that he was trying to put different sized symbols inthe legend box. Rakesh, the legend actor automatically resizes thesymbols, as we discussed in the last thread about this. Differentsized symbols in a legend is probably not a good idea, hence whythey've written the code as such. You'll probably either want to diginto the code of the actor or find a different way (maybe color?) toindicate which arrows are which.Thanks,DavidPowered by www.kitware.comVisit other Kitware opensource projects at http://www.kitware.com/opensource/opensource.htmlPlease keep messages ontopic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTKFAQFollow this link to subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusers 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/2128a152/attachment.htm>


More information about the vtkusers mailing list