Difference between revisions of "STIX Flare Analysis Bot"
(Created page with "== 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: <code> from matplotlib import p...") |
|||
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: | ||
+ | <nowiki> | ||
<code> | <code> | ||
from matplotlib import pyplot as plt | from matplotlib import pyplot as plt | ||
def plot_goes_x_ray_flux(start_utc, end_utc): | def plot_goes_x_ray_flux(start_utc, end_utc): | ||
− | + | '''code to retrieve GOES light curve data | |
− | + | plot the data | |
+ | ''' | ||
plt.plot(xx) | plt.plot(xx) | ||
filename='filename.svg' | filename='filename.svg' | ||
Line 11: | Line 13: | ||
return filename | return filename | ||
</code> | </code> | ||
+ | </nowiki> |
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: <code> 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 </code>