Skip to content
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

edgecolor argument not working in matplotlib.pyplot.bar #11628

Closed
dsalaj opened this issue Jul 11, 2018 · 0 comments · Fixed by #11640
Closed

edgecolor argument not working in matplotlib.pyplot.bar #11628

dsalaj opened this issue Jul 11, 2018 · 0 comments · Fixed by #11640

Comments

@dsalaj
Copy link

dsalaj commented Jul 11, 2018

Bug report

Passing the edgecolor="none" to the matplotlib.pyplot.bar does not remove the edges from the bars in the plot.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

fig, ax = plt.subplots()
data = [61, 96, 75, 96]
ind = np.arange(len(data))

rects1 = ax.bar(ind, data, alpha=0.3, color="blue", edgecolor="none")

# This is a workaround that solves the problem and proves that the edgecolor argument is not used
# for r in rects1:
#     r.set_edgecolor("none")

plt.show()

Actual outcome

actual outcome

Expected outcome
(produced by adding the commented out code)
expected outcome

Matplotlib version

  • Operating system: Linux Mint 18.3 Cinnamon 64-bit
  • Cinnamon version: 3.6.7
  • Linux Kernel: 4.4.0-122-generic
  • Matplotlib version: 2.2.2
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.5.2

matplotlib installed by pip3 install matplotlib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants