Skip to content

Commit

Permalink
Merge pull request #47 from jzuhone/fix_plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone authored Feb 12, 2022
2 parents 35840e5 + 067a120 commit 5511a7f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions acis_thermal_check/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ def __init__(self, fig_id, x, y, x2=None, y2=None, yy=None,
fig.clf()
ax = fig.add_subplot(1, 1, 1)
# Plot left y-axis
ax.plot_date(xt, y, linestyle='-', linewidth=2,
color=self._color)
ax.plot(xt, y, linestyle='-', linewidth=2,
color=self._color)
if yy is not None:
ax.plot_date(xt, yy, linestyle='--', linewidth=2,
color=self._color2)
ax.plot(xt, yy, linestyle='--', linewidth=2,
color=self._color2)
if xmin is None:
xmin = min(xt)
if xmax is None:
Expand All @@ -185,8 +185,8 @@ def __init__(self, fig_id, x, y, x2=None, y2=None, yy=None,
if x2 is not None and y2 is not None:
ax2 = ax.twinx()
xt2 = cxctime2plotdate(x2)
ax2.plot_date(xt2, y2, linestyle='-',
linewidth=2, color="magenta")
ax2.plot(xt2, y2, linestyle='-',
linewidth=2, color="magenta")
ax2.set_xlim(xmin, xmax)
if ylim2:
ax2.set_ylim(*ylim2)
Expand Down

0 comments on commit 5511a7f

Please sign in to comment.