Skip to content

Commit

Permalink
removed "\" from axis labels to fix problems in strings with python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
GuenterQuast committed May 10, 2024
1 parent 68acc73 commit 94779a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/test_hFit.py
Expand Up @@ -71,7 +71,7 @@ def generate_data(N, min, max, p, w, s):
plot_band=True, # plot model confidence-band
plot_cor=False, # plot profiles likelihood and contours
quiet=False, # suppress informative printout
axis_labels=["x", "entries / bin \ f(x, *par)"],
axis_labels=["x", "entries / bin | f(x, *par)"],
data_legend="pseudo-data",
model_legend="model",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/test_k2hFit.py
Expand Up @@ -71,7 +71,7 @@ def generate_data(N, min, max, p, w, s):
plot_residual=True, # show residual w.r.t. model
plot_cor=True, # plot profiles likelihood and contours
quiet=False, # suppress informative printout
axis_labels=["x", "entries / bin \ f(x, *par)"],
axis_labels=["x", "entries / bin | f(x, *par)"],
data_legend="pseudo-data",
model_legend="model",
model_name=r"N\,", # name for model
Expand Down
2 changes: 1 addition & 1 deletion examples/test_xyFit.py
Expand Up @@ -76,7 +76,7 @@ def model(x, A=1.0, x0=1.0):
plot_band=True, # plot model confidence-band
plot_cor=True, # plot profiles likelihood and contours
quiet=False, # suppress informative printout
axis_labels=["x", "y \ f(x, *par)"],
axis_labels=["x", "y | f(x, *par)"],
data_legend="random data",
model_legend="exponential model",
)
Expand Down
2 changes: 1 addition & 1 deletion examples/toyMC_Fit.py
Expand Up @@ -140,7 +140,7 @@ def MC_loop():
# plot_band=False, # plot model confidence-band
plot_cor=False, # plot profiles likelihood and contours
showplots=False, # call plt.show() in user code if False
axis_labels=["x", "y \ f(x, *par)"],
axis_labels=["x", "y | f(x, *par)"],
data_legend="pseudo-data",
model_legend="model",
)
Expand Down

0 comments on commit 94779a6

Please sign in to comment.