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
5 changes: 5 additions & 0 deletions Py6S/SixSHelpers/all_angles.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ def plot_polar_contour(
After that code the azimuths, zeniths and values lists will be ready to be passed into this function.

"""
try:
from matplotlib.pyplot import subplots
except ImportError:
raise ImportError("You must install matplotlib to use the plotting functionality")

theta = np.radians(azimuths)
zeniths = np.array(zeniths)

Expand Down