Skip to content

Commit

Permalink
Updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMantani committed Jan 22, 2025
1 parent ea192fb commit 4dd7fce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/smefit/analyze/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ def plot_data_scales(self, path):
r"$t$",
r"$tV$",
r"$VV$",
r"$\rm FCC-ee\:91\:GeV$",
r"$\rm FCC-ee\:161\:GeV$",
r"$\rm FCC-ee\:240\:GeV$",
r"$\rm FCC-ee\:365\:GeV$",
r"$\mathrm{FCC\textnormal{-}ee\:91\:GeV}$",
r"$\mathrm{FCC\textnormal{-}ee\:161\:GeV}$",
r"$\mathrm{FCC\textnormal{-}ee\:240\:GeV}$",
r"$\mathrm{FCC\textnormal{-}ee\:365\:GeV}$",
]

# Create a dictionary to map order to their indices
Expand Down Expand Up @@ -316,14 +316,14 @@ def plot_data_scales(self, path):
)

cbar = heatmap.collections[0].colorbar
cbar.set_label("\\# of Data-points", fontsize=14)
cbar.set_label("\\# of Data points", fontsize=14)

# Adjust the x-tick positions to align with bin edges
xtick_positions = [i for i in range(len(bins))]

Check notice on line 322 in src/smefit/analyze/summary.py

View check run for this annotation

codefactor.io / CodeFactor

src/smefit/analyze/summary.py#L322

Unnecessary use of a comprehension, use list(range(len(bins))) instead. (unnecessary-comprehension)
ax.set_xticks(xtick_positions) # Set tick positions
ax.set_xticklabels([f"{int(bins[i])}" for i in range(len(bins))])

ax.set_title(f"Data Scales for Fit {self.fits[i].label}", fontsize=16)
ax.set_title(f"Data Scales for {self.fits[i].label}", fontsize=16)
ax.set_xlabel(
"Scales [GeV]",
fontsize=14,
Expand Down

0 comments on commit 4dd7fce

Please sign in to comment.