diff --git a/petab/v1/visualize/plotting.py b/petab/v1/visualize/plotting.py index e690df2c..b607350b 100644 --- a/petab/v1/visualize/plotting.py +++ b/petab/v1/visualize/plotting.py @@ -64,6 +64,8 @@ def __init__( self.data_to_plot.sort_index(inplace=True) self.conditions = conditions_ + if self.conditions is not None: + self.conditions = self.conditions.copy() self.inf_point = ( np.inf in self.conditions if self.conditions is not None else False )