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
4 changes: 2 additions & 2 deletions gwsumm/tabs/guardian.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import numpy

from matplotlib.cm import get_cmap
from matplotlib import colormaps
from matplotlib.colors import Normalize

from astropy.time import Time
Expand Down Expand Up @@ -113,7 +113,7 @@ def from_ini(cls, config, section, plotdir='plots', **kwargs):
labels = ['[%d] %s' % (grdidxs[state], state) for state in pstates]

# define colours
cmap = get_cmap('brg')(Normalize(-1, 1)(
cmap = colormaps['brg'](Normalize(-1, 1)(
numpy.linspace(-1, 1, len(pstates))))[::-1]
th = len(flags) > 8 and (new.span[1] - new.span[0])/200. or 0

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies = [
"lxml",
"markdown",
"MarkupPy",
"matplotlib >=3.5",
"matplotlib >=3.9",
"numpy >=1.16",
"pygments >=2.7.0",
"python-dateutil",
Expand Down
Loading