Closed
Description
Bug report
In matplotlib 2.1 radial lines starting at r = 0 do not start at the origin of the graph, because the r = 0 circle has a non-zero radius.
Code for reproduction
import matplotlib.pyplot as plt
r = [1.9, 2, 2.1]
theta = [0.5, 0.75, 1]
fig = plt.figure(figsize=(5, 5))
ax = plt.subplot(111, projection = 'polar')
for i in range(len(r)):
ax.plot([0, theta[i]], [0, r[i]])
fig.savefig('phases.pdf', format = 'pdf')
Actual outcome
Expected outcome
Outcome in matplotlib 2.0.2:
Matplotlib version
- Operating system: Ubuntu 16.04 / also on macOS 10.13.1
- Matplotlib version: 2.1.0
- Matplotlib backend (
print(matplotlib.get_backend())
): Qt5Agg - Python version: 3.6.3
- Other libraries:
I use python from conda, latest update, and downgraded matplotlib to 2.0.2 to produce the second figure.