-
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
Graph: non correct display of error bars when exceeding y-range #16070
Comments
Thanks for your report. I will check. (note: the option "same" does not exist fro graph drawing) |
I have the fix for the 1st issue. It is not only in TGRaphAssymErrors but also in TGraphErrors and TGraphBentErrors and also for the drawing options > |> || [] |
The 2nd one seems more tricky as your y scale has negative values which is always tricky with log scale. I will first make a PR for the first one and once merged I will tackle the 2nd issue. |
This PR fixes the 1st issue: #16093 |
Many thanks @couet for the fix of the first issue! |
Check duplicate issues.
Description
Dear ROOT developpers,
I would like to report some bugs that I observed when displaying some TGraph errors (please find the reproducers code provided below). Here I used
TGraphAsymmErrors
.The first issue
testErrorGraph_v1
is I am creating a frame to display a graph with error but controling the y-range for the display (see screen shot below).The points have increasing errors bars and some should go beyond that y-range (starting from
x=4
) however the end of error bars are displayed on the x-bottom and top axis. So it looks like it is the total error bar while it is indeed not.It would be nice to not have those vertical lines if the error bars exceed the y-range used for the plot.
For the rightest most point (
x=9
) I have put the data point on purpose to be below the ymin value and you can see the weird display too.The second issue
testErrorGraph_v2
is related to a very weird interplay betweenTPad::SetBottomMargin()
function and usingTPad::SetLogy()
function0
withpad.SetBottomMargin(0)
here is the plotx>=3
should go beyondymin=0.1
.ymin= 0.1
.0
with e.g.pad.SetBottomMargin(0.1)
, notice the last point atx=9
disappear with a white space. If I increase the marker size you can see that this white space increases as shown in the two screen shots below--> I believe the best would be to not have that point or white space displayed in any case
Many thanks in advance for the fix that would be super helpful,
In the meantime I have found some very hacky workaround (not very useful here I just played with several ways of displaying the information to arrive to what I want),
Best,
Romain
Reproducer
Below are the two codes that allow reprocuding the errors
testErrorGraph_v1
testErrorGraph_v2
ROOT version
I think all versions are affected but I tested it with ROOT
6.30/02
and6.30/00
Installation method
Build from source
Operating system
Linux, MacOs
Additional context
No response
The text was updated successfully, but these errors were encountered: