Skip to content

Commit

Permalink
Merge branch 'main' into peakheights
Browse files Browse the repository at this point in the history
  • Loading branch information
TomDonoghue committed Nov 28, 2024
2 parents 9df44bd + cbbec68 commit 3927fe2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
MODULE_NAME: specparam
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
platforms = 'any',
project_urls = {
Expand Down
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

0 comments on commit 3927fe2

Please sign in to comment.