Skip to content

Commit

Permalink
Remove "aim" section
Browse files Browse the repository at this point in the history
Change hysteresis plot
  • Loading branch information
cgalelli committed Oct 4, 2024
1 parent 56154ab commit b16793e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions examples/tutorials/analysis-time/Time_resolved_spectroscopy.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
"""
A time resolved spectroscopy estimator
Time resolved spectroscopy estimator
======================================
Aim
---
Perform spectral fits of a blazar in different time bins to investigate
spectral changes during flares.
Expand Down Expand Up @@ -257,7 +254,6 @@ def time_resolved_spectroscopy(datasets, model, time_intervals):


def create_table(time_intervals, fit_result):

t = QTable()

t["tstart"] = np.array(time_intervals).T[0]
Expand Down Expand Up @@ -325,11 +321,18 @@ def create_table(time_intervals, fit_result):
# amplitude
#

plt.errorbar(
table["amplitude"],
table["index"],
xerr=table["amplitude_err"],
yerr=table["index_err"],
linestyle=":",
linewidth=0.5,
)
plt.scatter(table["amplitude"], table["index"], c=time_axis.center.value)
plt.plot(table["amplitude"], table["index"], linewidth=0.5)
plt.xlabel("amplitude")
plt.ylabel("index")
plt.colorbar()
plt.colorbar().set_label("time")
plt.show()


Expand Down

0 comments on commit b16793e

Please sign in to comment.