Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions specparam/plts/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

from collections import OrderedDict

import matplotlib.pyplot as plt
from specparam.core.modutils import safe_import

plt = safe_import('.pyplot', 'matplotlib')

###################################################################################################
###################################################################################################

# Define list of default plot colors
DEFAULT_COLORS = plt.rcParams['axes.prop_cycle'].by_key()['color']
DEFAULT_COLORS = plt.rcParams['axes.prop_cycle'].by_key()['color'] if plt else None

# Define default figure sizes
PLT_FIGSIZES = {'spectral' : (8.5, 6.5),
Expand Down
5 changes: 3 additions & 2 deletions specparam/plts/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
from itertools import cycle
from functools import wraps

import matplotlib.pyplot as plt

from specparam.core.modutils import safe_import
from specparam.plts.settings import (AXIS_STYLE_ARGS, LINE_STYLE_ARGS, COLLECTION_STYLE_ARGS,
CUSTOM_STYLE_ARGS, STYLE_ARGS, TICK_LABELSIZE, TITLE_FONTSIZE,
LABEL_SIZE, LEGEND_SIZE, LEGEND_LOC)

plt = safe_import('.pyplot', 'matplotlib')

###################################################################################################
###################################################################################################

Expand Down