Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaharid committed Jun 19, 2023
1 parent 88a00f8 commit 9b861be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions validphys2/src/validphys/dataplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ def plot_replica_sum_rules(pdf, sum_rules, Q):


@figuregen
def plot_smpdf(pdf, dataset, obs_pdf_correlations, mark_threshold:float=0.9):
def plot_smpdf(pdf, dataset, obs_pdf_correlations, mark_threshold: float = 0.9):
"""
Plot the correlations between the change in the observable and the change
in the PDF in (x,fl) space.
Expand Down Expand Up @@ -893,7 +893,8 @@ def plot_smpdf(pdf, dataset, obs_pdf_correlations, mark_threshold:float=0.9):

categorical = not np.issubdtype(plotting_var.dtype, np.number)
if categorical:
# Categorical
# Plot lines using a categorical color map (for a reasonable number of
# categories), and set up the categorical labels (used below).
categorical_keys, values = np.unique(plotting_var, return_inverse=True)
plotting_var = values
num_categories = len(categorical_keys)
Expand Down

0 comments on commit 9b861be

Please sign in to comment.