-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[hist] Add SetRefPad for consistent axis scaling #20770
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
Open
JasMehta08
wants to merge
5
commits into
root-project:master
Choose a base branch
from
JasMehta08:fix-axis-scaling
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+70
−3
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d1c338c
[hist] Add SetRefPad for consistent axis scaling
JasMehta08 5540984
Increment TAxis ClassDef version to 11 to fix build
JasMehta08 1f300cb
Revert TAxis ClassDef version to 10
JasMehta08 f0556a3
Revert unrelated changes in Legend and Pave classes
JasMehta08 0f96d53
Revert unrelated changes in TAxisPainter.mjs
JasMehta08 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to increment the class version here: the only data member you added to the class was
fRefLength, which is not taking part in the I/O. This is also called a "transient" data member, and these are marked by the exclamation mark in the associated doc string.What made you increase the class version in your most recent commit?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification regarding the transient member. I initially kept the
ClassDefversion unchanged for that exact reason.However, I later bumped it because the CI failed on
roottest-root-aclic-offset-offsetwith a size mismatch error (Expected: 1000, Got: 1024). I misinterpreted this failure as the system rejecting the class layout change, which is why I attempted the version bump to fix it.I have now re-analyzing the test output, I realize the failure is simply detecting the 24-byte size increase (3 axes × 8 bytes padding/float) caused by adding
fRefLength.I have reverted the ClassDef change in the latest commit. Could you advise on how to handle the roottest failure? Does the reference file (offset.ref) need to be updated to reflect the new TH1 size?
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @guitargeek can you let me know if you have any idea how should i go about combating the failing test case?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@guitargeek could please let me know how should i fix the failing test case.
Also i tried to scale the status box and legend too, but i had a few issues in it due to the internal scaling logic of them, please let me know if i should continue to try to fix them too, or only the axis being scaled is enough.
The changes only work on the local graph(c++ painters) not the web graph(JSROOT) i was also looking into if that could be implemented in the web graph too, please let me know if i should try to work on that too.
Thanks!