Closed as not planned
Description
Bug report
Bug summary
When plotting a bar graph of some data from np.histogram
on several different axis the outcome always slightly differs from each other.
Code for reproduction
import numpy as np
import matplotlib.pyplot as plt
data = np.random.uniform(0, 100, size = 100)
hist, bins = np.histogram(data, bins=100)
fig, ax = plt.subplots(ncols = 3)
for a in ax:
a.bar(bins[:-1], hist)
Expected outcome
The same barplot three times.
Matplotlib version
- Operating system: Ubuntu 18.04
- Matplotlib version: 3.0.2
- Matplotlib backend (
print(matplotlib.get_backend())
): module://ipykernel.pylab.backend_inline - Python version: 3.7.1
- Jupyter version (if applicable): IPython 7.2.0
Matplotlib installed via standard conda channel.