AlbertoPdRF / root-file-viewer

View ROOT files directly in VS Code!
https://marketplace.visualstudio.com/items?itemName=albertopdrf.root-file-viewer
MIT License
47 stars 5 forks source link

Needs a command line #16

Closed RPeschke closed 2 years ago

RPeschke commented 2 years ago

Hi,

very nice addon! really enjoy using it but i think it could benefit from having a command line to use the usual commands for plotting 2 branches of a tree or set filters etc.

tree->Draw("y:x","sector==1","colz");

something like that.

thanks, Richard

AlbertoPdRF commented 2 years ago

Hey @RPeschke!

Please note that this can already be done by right-clicking on the tree, selecting "Draw > player", and entering the desired expression. All supported features can be seen at https://github.com/root-project/jsroot/blob/master/docs/JSROOT.md#ttree-draw.

RPeschke commented 2 years ago

Hi,

thank you for the answer. just tried it works like a charm.

thanks for you work!