8000 Move float() casting in Rectangle patch by dstansby · Pull Request #8938 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Move float() casting in Rectangle patch #8938

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 6 commits into from
Jul 26, 2017
Merged
Show file tree
Hide file tree
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
Remove image test for uint8 bar
  • Loading branch information
dstansby committed Jul 26, 2017
commit 17ec69e174006089719bc1474be1b8a4fea671d5
Binary file not shown.
6 changes: 4 additions & 2 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4946,9 +4946,11 @@ def test_ls_ds_conflict():
plt.plot(range(32), linestyle='steps-pre:', drawstyle='steps-post')


@image_comparison(baseline_images=['bar_uint8'], extensions=['png'])
def test_bar_uint8():
plt.bar(np.array([0, 1, 2, 3], dtype=np.uint8), [2, 3, 4, 5])
xs = [0, 1, 2, 3]
b = plt.bar(np.array(xs, dtype=np.uint8), [2, 3, 4, 5])
for (patch, x) in zip(b.patches, xs):
assert patch.xy[0] == x


@image_comparison(baseline_images=['date_timezone_x'], extensions=['png'])
Expand Down
0