Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/solarpy/plotting/multiplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ def multiplot(times, data, meta, horizon=None, google_api_key=None, figsize=(24,

# Add message to plots if DNI was calculated from GHI and DHI
if not has_dni:
for ax in [axes["line"][1], axes["heatmap"][1], axes["mid_l"][1], axes["mid_r"][1], axes["sun2"]]:
for ax in [axes["line"][1], axes["heatmap"][1], axes["mid_l"][1], axes["mid_r"][1],
axes["sun2"]]:
ax.text(
0.97,
0.97,
Expand All @@ -703,5 +704,14 @@ def multiplot(times, data, meta, horizon=None, google_api_key=None, figsize=(24,
color="black",
transform=ax.transAxes,
)

for ax in [axes["ts_scatter"][1], axes["mid_l"][3], axes["mid_r"][3]]:
ax.text(
0.5,
0.5,
"DNI not available.",
ha="center",
va="bottom",
color="black",
transform=ax.transAxes,
)
return fig, axes
Loading