Jean-Baptiste> S?ll ! I would like to be able to move my
Jean-Baptiste> Figure.legend Because the optimal position of the
Jean-Baptiste> legend on my figure is not always the same, I added
Jean-Baptiste> a button to the navigation toolbar to give the suer
Jean-Baptiste> a chance to choose the position of the legend I
Jean-Baptiste> knwo that I can get a handle on my first legend
Jean-Baptiste> drawing, but how can I just modify its location ?
Jean-Baptiste> Is there a move_location method for the
Jean-Baptiste> Figure.legend ?
There is currently no "move to" location, but there is an offset
method where you can supply a deltxa, deltay in relative sizes, in
your case fractions of the figure width and height. So if you wanted
to move the legend 5% of the figure width to the right and 10% of the
figure height up, you can call
The leading underscore means that this method was intended for
internal use, and may change in future releases, but you can try it
and see if it works for you. If it does, I can probably make it
a public method for the next release.
As always you'll need to call canvas.draw after setting the new legend