Skip to content

Commit

Permalink
Update tests with new plotting syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrzycki committed Nov 27, 2023
1 parent 2f4aaa2 commit 47dfd5d
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,31 @@ def test_plot_extents():

def test_plot_frame_options(frame_setup):
frame = copy.deepcopy(frame_setup)
frame.plot(xtype="fmid")
frame.plot(ftype="fmid")
plt.show()
frame.plot(xtype="fmin", colorbar=False)
frame.plot(ftype="fmin", colorbar=False)
plt.show()
frame.plot(xtype="f", minor_ticks=True, label=True)
frame.plot(ftype="f", minor_ticks=True, label=True)
plt.show()
frame.plot(xtype="px", db=False, grid=True)
frame.plot(ftype="px", db=False, grid=True)
plt.show()
frame.plot(ftype="fmid", ttype="px", swap_axes=True)
plt.show()
frame.plot(ftype="px", ttype="trel", swap_axes=True)
plt.show()


def test_plot_cadence_options(cadence_setup):
cad = copy.deepcopy(cadence_setup)
cad.plot(xtype="fmid", slew_times=True)
cad.plot(ftype="fmid", slew_times=True)
plt.show()
cad.plot(ftype="fmin", colorbar=False, title=True)
plt.show()
cad.plot(ftype="f", minor_ticks=True, labels=False)
plt.show()
cad.plot(xtype="fmin", colorbar=False, title=True)
cad.plot(ftype="px", db=False, grid=True)
plt.show()
cad.plot(xtype="f", minor_ticks=True, labels=False)
cad.plot(ftype="fmid", ttype="px")
plt.show()
cad.plot(xtype="px", db=False, grid=True)
cad.plot(ftype="px", ttype="trel")
plt.show()

0 comments on commit 47dfd5d

Please sign in to comment.