<div dir="ltr"><div><div><div>Thank you, i had problems figuring that out.<br></div>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.<br><br></div>Gruß,<br><br></div>Jonas<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-29 21:15 GMT+01:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Jonas,<div><br></div><div>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.</div><div><br></div><div>Setting the position to [0.05, 0.5] moves the scalar bar to the top left corner of the view for me.</div><div><br></div><div>HTH,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Jan 27, 2016 at 10:36 AM, Jonas Asche via ParaView <span dir="ltr"><<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hello,<br>i am trying to figure out how to control the position of a scalarbar.<br>From what i could find online this should be possible by using two commands:<br></div>import paraview.simple as pvs<br><div><br>pvs.GetScalarBar(mylookuptable_fluid, myview).Position = [x, y]<br>pvs.GetScalarBar(mylookuptable_fluid, myview).Position2 = [x2, y2]<br><br></div><div>Can anyone point out what impact x, x2, y, y2 have towards the overall position ?<br></div><div>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.<br><br></div><div>Maybe it is important that i use a Horizontal orientation.<br></div><div>The goal is that the Bar is in the top left corner.<br><br><br></div><div>Regards,<br><br></div><div>Jonas <br></div></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</font></span></div>
</blockquote></div><br></div>