Skip to content

Fix: Lightcurve.plot(witherrors=True) fails to plot error bars #928#949

Closed
isha822 wants to merge 1 commit intoStingraySoftware:mainfrom
isha822:fix-lightcurve-errors
Closed

Fix: Lightcurve.plot(witherrors=True) fails to plot error bars #928#949
isha822 wants to merge 1 commit intoStingraySoftware:mainfrom
isha822:fix-lightcurve-errors

Conversation

@isha822
Copy link
Copy Markdown
Contributor

@isha822 isha822 commented Dec 7, 2025

I identified that StingrayTimeseries.plot was ignoring the error column because it wasn't in array_attrs.
The Fix:
I updated Lightcurve.plot to manually plot the error bars using ax.errorbar if witherrors=True, bypassing the parent class's strict check.
Closes #928

@matteobachetti
Copy link
Copy Markdown
Member

@isha822 thanks for your PR, and sorry for the slow response. The problem, unfortunately, was deeper than plotting, and needed a more complete solution (#959).

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.

Lightcuve.plot(witherrors=True) does not plot error bars

2 participants