8000 Inconsistent indexes for tick label plotting by nrebena · Pull Request #28733 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Inconsistent indexes for tick label plotting #28733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Nov 21, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
CLN: Clean up test_bar_numeric
  • Loading branch information
nrebena committed Sep 12, 2020
commit e22710a2528dd3d797fe89f4da8bd19bfb65ff43
4 changes: 2 additions & 2 deletions pandas/tests/plotting/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3472,11 +3472,11 @@ def test_bar_numeric(self):
# Bar plot with numeric index have tick location values equal to index
# values
# GH: 11465
index = np.arange(10, 20, dtype=np.int64)
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
ax = df.plot.bar()
ticklocs = ax.xaxis.get_ticklocs()
tm.assert_numpy_array_equal(ticklocs, index)
expected = np.arange(10, 20, dtype=np.int64)
tm.assert_numpy_array_equal(ticklocs, expected)

def test_bar_multiindex(self):
# Test from pandas/doc/source/user_guide/visualization.rst
Expand Down
0