Skip to content

Commit

Permalink
Fix this on Python 3.12. The code should work on earlier versions too.
Browse files Browse the repository at this point in the history
  • Loading branch information
fjankowsk committed Jun 20, 2024
1 parent 6694f12 commit 980dd37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scatfit/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ def plot_frb_scat(

model = Model(scat_model)

cmap1 = matplotlib.cm.get_cmap(cmap1)
cmap1 = plt.get_cmap(cmap1)
color1 = [cmap1((ii + 2) / (df.shape[0] + 2)) for ii in range(df.shape[0])]
cmap2 = matplotlib.cm.get_cmap(cmap2)
cmap2 = plt.get_cmap(cmap2)
color2 = [cmap2((ii + 2) / (df.shape[0] + 2)) for ii in range(df.shape[0])]

# setting up plot
Expand Down

0 comments on commit 980dd37

Please sign in to comment.