Skip to content

Commit

Permalink
fix get_cmap import (#392)
Browse files Browse the repository at this point in the history
* fix get_cmap import

* Update structuregraph.py
  • Loading branch information
tschaume authored May 23, 2024
1 parent 1aa9b00 commit dcd3c2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crystal_toolkit/core/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from itertools import chain
from typing import TYPE_CHECKING, Any

from matplotlib.cm import get_cmap
from matplotlib.pyplot import get_cmap
from monty.json import MSONable
from monty.serialization import loadfn
from palettable.colorbrewer.qualitative import Set1_9
Expand Down
2 changes: 1 addition & 1 deletion crystal_toolkit/renderables/structuregraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Sequence

import numpy as np
from matplotlib.cm import get_cmap
from matplotlib.pyplot import get_cmap
from pymatgen.analysis.graphs import StructureGraph
from pymatgen.core import PeriodicSite

Expand Down

0 comments on commit dcd3c2f

Please sign in to comment.