-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable embedding hyperlinks in TLegend #16512
Comments
@vepadulano can you post the 2 files generated by your macro ? |
Thanks, I think I have an idea: TText inherits from TNamed. The text to be drawn is stored in the member |
After a discussion with @vepadulano it appears that it might be better to add a data member |
I add preliminary support of URLs also in the JSROOT - see example link: It also works when export into PDF. And I do not think that Most straight solution - just introduce |
That also can be done - one can extend
Using TLatex syntax, one can provide more attributes like colors or underline. |
@linev Yes that's also a nice possibility. Yes the TAttText approach might be not correct. You are right. What is the sense of TGaxis::SetUrl? |
This is exactly my point. I will provide preliminary implementation of |
#16572 includes implementation of Means in any place where Unfortunately, such feature is very difficult to implement in interactive classical graphics :( |
|
I think instead of |
Looking for |
Yes, it is a detail. I am only saying that a new keyword is not mandatory if we follow the markdown syntax. |
I would not mix Markdown and TLatex. TLatex is a single-line text, like axis or histogram title. It cannot provide Markdown features in this respect. Markdown is more about page layout. |
Ok, up to you |
Explain what you would like to see improved and how.
I have a simple snippet which produces a plot (in PDF or SVG) where the text items in the legend are clickable hyperlinks:
Can be run with
python repro.py
and saves both SVG and PDF files with the clickable links in the legend.It would be nice to have the same feature also for TLegend. I have taken a look at TLink but despite what the docs hint at, that cannot be used to show hyperlinks, rather only links between different graphical components of the same canvas/browser.
ROOT version
Any
Installation method
Any
Operating system
Any
Additional context
No response
The text was updated successfully, but these errors were encountered: