Thank you, i had problems figuring that out. Something was probably wrong with my script, i used another way to get the diagram i wanted but next time i will keep this in mind and test it.
Gruß, Jonas 2016-01-29 21:15 GMT+01:00 Cory Quammen <[email protected]>: > Jonas, > > You should only have to modify the Position property to move the scalar > bar. Position2 adjusts the size. If the scalar bar is horizontal, x2 > controls the width. If the scalar bar is vertical, y2 controls the height. > > Setting the position to [0.05, 0.5] moves the scalar bar to the top left > corner of the view for me. > > HTH, > Cory > > On Wed, Jan 27, 2016 at 10:36 AM, Jonas Asche via ParaView < > [email protected]> wrote: > >> 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 >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/paraview >> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
