Skip to content
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

[web graphics] support of haxis draw option #16068

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Conversation

linev
Copy link
Member

@linev linev commented Jul 19, 2024

"haxis" draw option draw histogram axis as for hbar - with swapped X/Y.
Swapped axis must be specially handled by painters.
Therefore only limited options are supported for TH1.
These are: B - bar, P - marker, L - line, TEXT

Provide demo macro "haxis.C"

Canvas

"haxis" draw option draw histogram axis as for hbar - with swapped X/Y. Swapped axis must be handled by painters.
Therefore only limited options are supported for TH1.
These are: B - bar, P - marker, L - line, TEXT
Swap X/Y axes drawing and use to draw TH1 as bar and as markers
Option "haxisg;y+" draw histogram axis as for "hbar" plus allow to draw grids plus draw Y labels on other side
Option "bar,base0,same" draws histogram as bars with 0 as reference value
Option "P,same" draws histogram as markers
Macro also shows how frame margins can be configured and poly-line drawing like filled arow can be placed relative to frame.

Functionality available only in web-based graphics
Copy link

Test Results

    13 files      13 suites   2d 18h 44m 43s ⏱️
 2 653 tests  2 653 ✅ 0 💤 0 ❌
32 671 runs  32 671 ✅ 0 💤 0 ❌

Results for commit 4e482cc.

Copy link
Member

@couet couet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@linev linev merged commit e6be2a7 into root-project:master Jul 26, 2024
17 of 18 checks passed
@linev linev deleted the web_haxis branch July 26, 2024 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants