Skip to content

black to legend - #1246

Merged
sergey-yaroslavtsev merged 2 commits into
masterfrom
black_legend
Aug 25, 2026
Merged

sergey-yaroslavtsev merged 2 commits into
masterfrom
black_legend

Conversation

@sergey-yaroslavtsev

Copy link
Copy Markdown
Collaborator

Selected curve is colored black in the plot - this PR makes the legend to follow.

Screen.Recording.2026-08-25.104809.mp4

Comment on lines +1507 to +1512
activeCurve = self.getActiveCurve(just_legend=True)
for i in range(len(self._curveList)):
legend = self._curveList[i]
_defaultColor = qt.QApplication.instance().palette().color(qt.QPalette.Text).name()
color = self._curveDict[legend][3].get('plot_color',
_defaultColor)
if legend == activeCurve:
color = self._activeCurveColor

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
activeCurve = self.getActiveCurve(just_legend=True)
for i in range(len(self._curveList)):
legend = self._curveList[i]
_defaultColor = qt.QApplication.instance().palette().color(qt.QPalette.Text).name()
color = self._curveDict[legend][3].get('plot_color',
_defaultColor)
if legend == activeCurve:
color = self._activeCurveColor
activeLegend = self.getActiveCurve(just_legend=True)
for i in range(len(self._curveList)):
legend = self._curveList[i]
_defaultColor = qt.QApplication.instance().palette().color(qt.QPalette.Text).name()
if legend == activeLegend:
color = self._activeCurveColor

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

activeCurve -> activeLegend ?

@sergey-yaroslavtsev
sergey-yaroslavtsev merged commit d45a48d into master Aug 25, 2026
10 checks passed
@sergey-yaroslavtsev
sergey-yaroslavtsev deleted the black_legend branch August 25, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants