diff --git a/petab/v1/visualize/plotting.py b/petab/v1/visualize/plotting.py index 8ff813a3..e2c55755 100644 --- a/petab/v1/visualize/plotting.py +++ b/petab/v1/visualize/plotting.py @@ -211,12 +211,11 @@ def from_df( if col in VISUALIZATION_DF_SUBPLOT_LEVEL_COLS: entry = vis_spec.loc[:, col] entry = np.unique(entry) - if entry.size > 1: + if entry.size > 1 and not all(pd.isna(x) for x in entry): warnings.warn( f"For {PLOT_ID} {plot_id} in column " - f"{col} contradictory settings ({entry})" - f". Proceeding with first entry " - f"({entry[0]}).", + f"{col} contradictory settings ({entry}). " + f"Proceeding with first entry ({entry[0]}).", stacklevel=2, ) entry = entry[0]