Commit fbb8f2c1 authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

CommCompGraph: do not use color usually for comm if first curve is a comp one

parent 4cbcbc05
......@@ -642,7 +642,10 @@ class CommCompGraph:
if (min_values is None and max_values is not None) or (min_values is not None and max_values is None):
raise Exception("You have to provide either both min and max values or none.")
if self.nb_curves > 0 and not use_previous_color:
if (self.nb_curves > 0 and not use_previous_color) or (self.nb_curves == 0 and ax == self._ax_right):
# We are plotting another curve, and we want to change color, so do it
# or
# the first curve is a comp one, so skip the first color, usually used for comm
self._current_color = next(self._colors)
line_style = "-"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment