Closed
Description
Bug report
Unable to draw straight horizontal arrow using annotation
Code for reproduction
from pylab import figure, show, np
t = np.arange(0.0, 2.0, 0.01)
s1 = np.sin(2*np.pi*t)
fig = figure()
ax1 = fig.add_subplot(111)
xstmark=0.5
xenmark=1.0
ystmark=0.5
an1=ax1.annotate(s=' ',xy=(xstmark, ystmark), xycoords='data',
xytext=(xenmark, ystmark),textcoords='data',
arrowprops=dict(arrowstyle="<->"))
ax1.annotate(s='tr',xy=(((xstmark+xenmark)/2), ystmark), xycoords='data',fontsize=12.0,textcoords='data',ha='center')
ax1.plot(t, s1)
show()
Matplotlib 2.1.0 outcome
Expected outcome (Matplotlib 2.0.2 outcome)
- Operating system: Windows 7 64 bit
- Matplotlib version: 2.1.0
- Matplotlib backend: qt4agg
- Python version: 2.7.10
- Jupyter version (if applicable): NA
- Other libraries: NA
- Installed using whl files
Metadata
Metadata
Assignees
Labels
No labels