I have a very trivial question. In the jsROOT example [https://jsroot.gsi.de/latest/?nobrowser&file=../files/hsimple.root&item=ntuple;1&opt=px:py::pz>4 ] the buttons for toggling the log scale and additional functionalities are placed on the bottom left. Is there a way to ask it to be placed at bottom right ?
Not, but this is can be easily implemented.
Actually, in any canvas sub-pad buttons situated in bottom-right corner.
I will try this soon.
This is exactly what I am looking for. Let me know once you propagate the changes to a release
This is how it looks in “dev” version now:
JSROOT.gStyle.ToolBarSide = "right";
Will appear in next JSROOT release - most probably end of June.
The option “&toobar=right” doesn’t seem to have the desired effect. Did something else break the change in the dev branch ?
It has desired effect, but you probably confused by buttons associated with subpads.
These buttons appears in opposite corner to the canvas buttons.
Also one side effect - buttons on right side not hidden by default.
Now fixed in dev branch - buttons on right side are hidden by default
Lets check this URL
One should expect the menu buttons to appear on the right… no ? [notice that I have the appropriate query string]
Sorry, we not always update dev versions on http://jsroot.gsi.de and https://root.cern/js/ website synchronously.
Now it is there (thanks to @bellenot)
May I request another feature ?
Currently the buttons are placed horizontally (parallel to the x-axis), Would it be easy to add another option to place the buttons aligned along the y-axis ? (that is vertically )
I will try to implement this.
Now it is possible in dev version:
Could you please propagate these changes to https://root.cern.ch/js/dev//scripts/JSRootCore
Now changes also applied on https://root.cern/js/dev/ server
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.