Skip to content

Comments

Fix: restore handling of labels on multi line plots in matplot#521

Merged
giulioungaretti merged 2 commits intomicrosoft:masterfrom
jenshnielsen:multilineplotlabels
Mar 13, 2017
Merged

Fix: restore handling of labels on multi line plots in matplot#521
giulioungaretti merged 2 commits intomicrosoft:masterfrom
jenshnielsen:multilineplotlabels

Conversation

@jenshnielsen
Copy link
Collaborator

@QCoDeS/core

Following the merge of #495 trying to do multiple lineplots with matplotlib as in

plot = qc.MatPlot()
plot.add(data.this)
plot.add(data.that)

results in labels such as "None (None)" on both axes. This is because axsetter is called with the string "None (None)" the same issue does not exist for pyqtgraph as it directly supports units and
setLabel is called as setLabel(None, None) which is simply interpreted as a noop

This pr restores matching behaviour to matplot

@giulioungaretti giulioungaretti merged commit 50c46c7 into microsoft:master Mar 13, 2017
giulioungaretti pushed a commit that referenced this pull request Mar 13, 2017
Author: Jens Hedegaard Nielsen <[email protected]>

    Fix: restore handling of labels on multi line plots in matplot (#521)
giulioungaretti pushed a commit that referenced this pull request Mar 13, 2017
Author: Jens Hedegaard Nielsen <[email protected]>

    Fix: restore handling of labels on multi line plots in matplot (#521)
giulioungaretti pushed a commit that referenced this pull request Mar 13, 2017
Author: Jens Hedegaard Nielsen <[email protected]>

    Fix: restore handling of labels on multi line plots in matplot (#521)
giulioungaretti pushed a commit that referenced this pull request Mar 13, 2017
Author: Jens Hedegaard Nielsen <[email protected]>

    Fix: restore handling of labels on multi line plots in matplot (#521)
@jenshnielsen jenshnielsen deleted the multilineplotlabels branch March 13, 2017 14:26
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