Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
edgar committed Jun 14, 2024
1 parent 7f0b360 commit 2f89808
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/silx/gui/plot/PlotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,9 @@ def addCurve(
if replace:
self._resetColorAndStyle()

if color is not None:
if color is not None and linestyle is not None:
default_color, default_linestyle = color, linestyle
elif color is not None:
default_color, default_linestyle = color, self._getStyle()
else:
default_color, default_linestyle = self._getColorAndStyle()
Expand Down

0 comments on commit 2f89808

Please sign in to comment.