Skip to content

Commit f07f969

Browse files
authored
Remove precision specifier for flow bin labels (#506)
1 parent 11d70df commit f07f969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mplhep/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,8 +551,8 @@ def iterable_not_string(arg):
551551
)
552552

553553
elif flow == "show":
554-
underflow_xticklabel = f"<{flow_bins[1]:.2g}"
555-
overflow_xticklabel = f">{flow_bins[-2]:.2g}"
554+
underflow_xticklabel = f"<{flow_bins[1]:g}"
555+
overflow_xticklabel = f">{flow_bins[-2]:g}"
556556

557557
# Loop over shared x axes to get xticks and xticklabels
558558
xticks, xticklabels = np.array([]), []

0 commit comments

Comments
 (0)