You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have been using lcviz to plot xmm-newton lightcurve data. To do that I have been using a read_lightcurve() function that converts XMM-Newton light curve file into a LightCurve object. I have been wondering how could I change the displayed y-axis name from flux to count rate when the data is plotted, as this is the usual way we present xmm lightcurves. Furthermore, I have been struggling to display any of the y-axis error bars. I have included it in my LightCurve object conversion ( LightCurve(time=time, data=tab, flux=tab['rate'], flux_err=tab['error']) ), but for some reason they are not displayed. Am I perhaps missing a step? Many thanks!
The text was updated successfully, but these errors were encountered:
I have been wondering how could I change the displayed y-axis name from flux to count rate when the data is plotted
Changing the axes labels isn't technically supported, as they are managed automatically by the code. However, you can access internal methods to "hack" a change to the labels (i.e. before exporting the plot) if you'd like. Note that this is not considered public API so is subject to change in future releases:
lcviz.viewers['flux-vs-time']._obj.state.x_axislabel = 'new x label'
lcviz.viewers['flux-vs-time']._obj.state.y_axislabel = 'new y label'
I have been struggling to display any of the y-axis error bars...
Uncertainty handling is unfortunately not yet implemented (but already on our list - I'll try to bump it up to get it in sooner).
Thank you for the answer! Looking forward to the uncertainty handling.
Also one last final question, is there another internal method/hack I can use to change the plotting of the time in seconds instead of days. The LightCurve object I pass does indeed have the time column in seconds however when i plot it, its in days and I was hoping to keep it so.
Hello, I have been using lcviz to plot xmm-newton lightcurve data. To do that I have been using a read_lightcurve() function that converts XMM-Newton light curve file into a LightCurve object. I have been wondering how could I change the displayed y-axis name from flux to count rate when the data is plotted, as this is the usual way we present xmm lightcurves. Furthermore, I have been struggling to display any of the y-axis error bars. I have included it in my LightCurve object conversion (
LightCurve(time=time, data=tab, flux=tab['rate'], flux_err=tab['error'])
), but for some reason they are not displayed. Am I perhaps missing a step? Many thanks!The text was updated successfully, but these errors were encountered: