Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pandas/tests/plotting/frame/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2572,6 +2572,14 @@ def test_plot_period_index_makes_no_right_shift(self, freq):
result = ax.get_lines()[0].get_xdata()
assert all(str(result[i]) == str(expected[i]) for i in range(4))

def test_plot_display_xlabel_and_xtick_labels(self):
# GH#44050
df = DataFrame(np.random.default_rng(2).random((10, 2)), columns=["a", "b"])
ax = df.plot.hexbin(x="a", y="b")

_check_visible([ax.xaxis.get_label()], visible=True)
_check_visible(ax.get_xticklabels(), visible=True)


def _generate_4_axes_via_gridspec():
gs = mpl.gridspec.GridSpec(2, 2)
Expand Down