Skip to content

Commit

Permalink
Plotting bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone committed Apr 18, 2022
1 parent 952782a commit 9593f75
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion scripts/multiplot_archive
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python

import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
import argparse
import acispy
from acispy.utils import state_labels
matplotlib.use("Qt5Agg")


parser = argparse.ArgumentParser(description='Make plots of MSIDs and commanded states from the engineering archive')
parser.add_argument("tstart", type=str, help='The start time in YYYY:DOY:HH:MM:SS format')
Expand Down
3 changes: 2 additions & 1 deletion scripts/multiplot_tracelog
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python

import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
import argparse
import acispy
from acispy.utils import state_labels
matplotlib.use("Qt5Agg")


parser = argparse.ArgumentParser(description='Make plots of MSIDs from a tracelog file. Commanded states will be loaded from the commanded states database.')
parser.add_argument("tracelog", type=str, help='The tracelog file to load the MSIDs from')
Expand Down
3 changes: 2 additions & 1 deletion scripts/phase_histogram_plot
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python

import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
import argparse
import acispy
from acispy.utils import state_labels, mylog
matplotlib.use("Qt5Agg")


parser = argparse.ArgumentParser(description='Make a phase plot of one MSID or state versus another within a certain time frame.')
parser.add_argument("tstart", type=str, help='The start time in YYYY:DOY:HH:MM:SS format')
Expand Down
3 changes: 2 additions & 1 deletion scripts/phase_scatter_plot
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python

import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
import argparse
import acispy
from acispy.utils import state_labels, mylog
matplotlib.use("Qt5Agg")


parser = argparse.ArgumentParser(description='Make a phase scatter plot of one MSID or state versus another within a certain time frame.')
parser.add_argument("tstart", type=str, help='The start time in YYYY:DOY:HH:MM:SS format')
Expand Down
3 changes: 2 additions & 1 deletion scripts/plot_10day_tl
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env python

import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
import argparse
import acispy
from acispy.utils import state_labels, mylog
from Chandra.Time import date2secs, secs2date
matplotlib.use("Qt5Agg")


parser = argparse.ArgumentParser(description='Plot one or more MSIDs or states from the ACIS 10-day tracelog files.')
parser.add_argument("fields", type=str, help='The MSIDs and states to plot, comma-separated')
Expand Down
3 changes: 2 additions & 1 deletion scripts/plot_model
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python

import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
import argparse
import acispy
from acispy.utils import state_labels
matplotlib.use("Qt5Agg")


parser = argparse.ArgumentParser(description='Plot a single model component with another component or state')
parser.add_argument("load", type=str, help='The load to take the model from')
Expand Down
3 changes: 2 additions & 1 deletion scripts/plot_msid
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/usr/bin/env python

import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
import argparse
import acispy
from acispy.utils import state_labels, mylog
matplotlib.use("Qt5Agg")


parser = argparse.ArgumentParser(description='Plot a single MSID with another MSID or state')
parser.add_argument("tstart", type=str, help='The start time in YYYY:DOY:HH:MM:SS format')
Expand Down

0 comments on commit 9593f75

Please sign in to comment.