Skip to content

Commit

Permalink
fixed import error that failed readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
eccoope committed Apr 29, 2024
1 parent 8b309cb commit c7daed4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/examples/snow-detection/snow-mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
import numpy as np
import re
import pvlib
from matplotlib import colormaps as cm
import matplotlib.pyplot as plt
from matplotlib.dates import DateFormatter
import matplotlib.patches as mpatches
Expand Down Expand Up @@ -600,7 +599,7 @@ def wrapper(voltage, current, temp_cell, effective_irradiance,

N = 6
alpha = 0.5
cmap = cm.get_cmap('plasma').resampled(N)
cmap = plt.get_cmap('plasma', N)

loss_cols = [c for c in data.columns if "Loss" in c]
mode_cols = [c for c in data.columns if "mode" in c and "modeled" not in c]
Expand Down Expand Up @@ -660,8 +659,6 @@ def wrapper(voltage, current, temp_cell, effective_irradiance,
my_patch = mpatches.Patch(color=cmap.colors[i], label=f'Mode {i}')
handles.append(my_patch)

# handles.append(gray_patch)

ax.set_xlabel('Date', fontsize='xx-large')
ax.set_ylabel('DC Power [W]', fontsize='xx-large')
ax.legend(handles=handles, fontsize='xx-large', loc='upper left')
Expand Down

0 comments on commit c7daed4

Please sign in to comment.