Skip to content

Commit

Permalink
matplotlib: updated code that selects colormaps (matplotlib 3.9 intro…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaasRostock committed May 22, 2024
1 parent 6c0ea76 commit c71673e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ospx/watch/watchCosim.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import numpy as np
import pandas as pd
from dictIO import DictReader, DictWriter
from matplotlib import cm
from matplotlib import colormaps
from matplotlib.axes import Axes
from matplotlib.figure import Figure
from numpy import ndarray
Expand Down Expand Up @@ -147,7 +147,7 @@ def plot(self, converge: bool = False):
time_key,
current_key,
linewidth=2,
color=cm.get_cmap("gist_rainbow")(index / self.number_of_subplots),
color=colormaps["gist_rainbow"](index / self.number_of_subplots),
data=df[[time_key, current_key]],
)
except (TypeError, ValueError):
Expand Down

0 comments on commit c71673e

Please sign in to comment.