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 | + | Plugins written in python are supported. They should look similar to the example below: |
<syntaxhighlight lang="python" line='line'> | <syntaxhighlight lang="python" line='line'> | ||
from matplotlib import pyplot as plt | from matplotlib import pyplot as plt |
Revision as of 20:05, 11 May 2021
How to contribute code to the STIX flare analysis bot
Plugins written in python are supported. They should look similar to the example below:
1 from matplotlib import pyplot as plt
2 def plot_goes_x_ray_flux(start_utc, end_utc):
3 '''code to retrieve GOES light curve data
4 plot the data
5 '''
6 plt.plot(xx)
7 filename='filename.svg'
8 plt.savefig(filename)
9 return filename