Skip to content

Commit

Permalink
showcases: eliminated setticklabels() warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgeorge309 committed Jul 19, 2024
1 parent 6b53048 commit 41d69e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6026,13 +6026,14 @@ ax_queue_vi.set_ylabel("")
ax_numtokens_vi.set_ylabel("")
ax_gatestate_vi.set_ylabel("")
ax_gatestate_be.set_yticks([0,1])
ax_txstate.set_yticks([0,1])
ax_gatestate_vi.set_yticks([0,1])
ax_gatestate_be.set_yticklabels(['closed', 'open'])
ax_txstate.set_yticklabels(['idle', 'transmitting'])
ax_gatestate_vi.set_yticklabels(['closed', 'open'])
ax_gatestate_be.set_yticks([0,1])
ax_txstate.set_yticks([0,1])
ax_gatestate_vi.set_yticks([0,1])
plt.subplots_adjust(left = 0.1, right = 0.99, top = 0.95, bottom = 0.1, wspace=0.1, hspace=0.4)
Expand Down Expand Up @@ -6742,13 +6743,14 @@ ax_queue_vi.set_ylabel("")
ax_numtokens_vi.set_ylabel("")
ax_gatestate_vi.set_ylabel("")
ax_gatestate_be.set_yticks([0,1])
ax_txstate.set_yticks([0,1])
ax_gatestate_vi.set_yticks([0,1])
ax_gatestate_be.set_yticklabels(['closed', 'open'])
ax_txstate.set_yticklabels(['idle', 'transmitting'])
ax_gatestate_vi.set_yticklabels(['closed', 'open'])
ax_gatestate_be.set_yticks([0,1])
ax_txstate.set_yticks([0,1])
ax_gatestate_vi.set_yticks([0,1])
plt.subplots_adjust(left = 0.1, right = 0.99, top = 0.95, bottom = 0.1, wspace=0.1, hspace=0.4)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ ax0, ax1, ax2 = inet.scave.plot.plot_vectors_separate_grouped([df0, df1, df2], p
utils.postconfigure_plot(props)
ax0.set_xticks(range(0,12,2))
ax1.set_xticks(range(0,12,2))
ax2.set_xticks(range(0,12,2))
ax0.set_xticklabels(range(0,12,2), visible=False)
ax1.set_xticklabels(range(0,12,2), visible=False)
ax2.set_xticklabels(range(0,12,2))
Expand Down

0 comments on commit 41d69e2

Please sign in to comment.