Skip to content

Fix PlotCurveItem errors when pen=None#2315

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
campagnola:no-pen-fix
May 26, 2022
Merged

Fix PlotCurveItem errors when pen=None#2315
j9ac9k merged 1 commit intopyqtgraph:masterfrom
campagnola:no-pen-fix

Conversation

@campagnola
Copy link
Copy Markdown
Member

I received errors when using a PlotCurveItem with pen=None. This used to work; I'm not sure what changed.

MWE:

import pyqtgraph as pg
plt = pg.plot()
c = pg.PlotCurveItem([1, 2, 3, 4], [5, 2, 4, 3], pen=None)
plt.addItem(c)

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 26, 2022

While I question the utility of plotting a curve without a pen, I admit pyqtgraph shouldn't blow up if that happens haha. LGTM, thanks @campagnola

@j9ac9k j9ac9k merged commit b2b8372 into pyqtgraph:master May 26, 2022
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