Difference between revisions of "STIX Flare Analysis Bot"
Line 1: | Line 1: | ||
== How to contribute code to the STIX flare analysis bot == | == How to contribute code to the STIX flare analysis bot == | ||
Plugins can be inserted to the bot. They should look similar to the example below: | Plugins can be inserted to the bot. They should look similar to the example below: | ||
− | + | ||
<code> | <code> | ||
from matplotlib import pyplot as plt | from matplotlib import pyplot as plt | ||
Line 13: | Line 13: | ||
return filename | return filename | ||
</code> | </code> | ||
− |
Revision as of 20:02, 11 May 2021
How to contribute code to the STIX flare analysis bot
Plugins can be inserted to the bot. They should look similar to the example below:
from matplotlib import pyplot as plt
def plot_goes_x_ray_flux(start_utc, end_utc):
code to retrieve GOES light curve data
plot the data
plt.plot(xx)
filename='filename.svg'
plt.savefig(filename)
return filename