[Paraview] pvpython changing the location of a color legend

Jonas Asche asche.j at googlemail.com
Wed Jan 27 10:36:32 EST 2016


Hello,
i am trying to figure out how to control the position of a scalarbar.
>From what i could find online this should be possible by using two commands:
import paraview.simple as pvs

pvs.GetScalarBar(mylookuptable_fluid, myview).Position = [x, y]
pvs.GetScalarBar(mylookuptable_fluid, myview).Position2 = [x2, y2]

Can anyone point out what impact x, x2, y, y2 have towards the overall
position ?
I have been playing with them for quite some time but it seems that x and
x2 have no impact and y and y2 determine the distance of the scalarbar from
the bottom of the view in percent.

Maybe it is important that i use a Horizontal orientation.
The goal is that the Bar is in the top left corner.


Regards,

Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160127/14236826/attachment.html>


More information about the ParaView mailing list