Skip to content

Commit

Permalink
Merge pull request #300 from alhom/master
Browse files Browse the repository at this point in the history
Filter MPL-included colormaps with a version check
  • Loading branch information
alhom authored Dec 17, 2024
2 parents 5fa277f + 0163a5a commit 05ca57d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyPlots/colormaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,9 @@
for _f in _SCMfiles:
(_dummypath, _cm_name) = os.path.split(_f)
_cm_name = _cm_name[:-4]
if Version(mpl_version) >= Version("3.10.0"): # MPL 3.10.0 included these colormaps, skip
if _cm_name in ["berlin","vanimo","managua"]:
continue
_cm_data = np.loadtxt(_f)
_cm = LinearSegmentedColormap.from_list(_cm_name, _cm_data)
try:
Expand Down

0 comments on commit 05ca57d

Please sign in to comment.