Deflate axis#8760
Conversation
|
Starting build on |
|
Build failed on ROOT-debian10-i386/cxx14. Failing tests: |
lmoneta
left a comment
There was a problem hiding this comment.
Thank you Olivier for the PR.
Checking on the fact that an axis can be extended and is alphanumeric is the correct thing, because you can have histograms with labels and the users explicitly does not want the axis to be inflated/deflated.
| return; | ||
| } | ||
|
|
||
| // Deflate the labels in case of alphanumeric labels |
There was a problem hiding this comment.
The correct condition is:
if (fXaxis.CanExtend() && fXaxis.IsAlphanumeric()) fH->LabelsDeflate("X");
if (fYaxis.CanExtend() && fYaxis.IsAlphanumeric()) fH->LabelsDeflate("Y");
and should we add also the case for the Z axis (for TH3 objects) ?
|
Starting build on |
|
@lmoneta |
lmoneta
left a comment
There was a problem hiding this comment.
LGTM now !
Thank you Olivier for the update !
* [skip-ci] images are not generated foe these tutorials * Deflate axis at painting time * Better testing
fix #8598
It is reasonable to call automatically LabelsDeflate at drawing time when plotting histogram with labels.