Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 947099e

Browse filesBrowse files
committed
DOC removing pyplot_annotate.py
1 parent 7252158 commit 947099e
Copy full SHA for 947099e

File tree

Expand file treeCollapse file tree

3 files changed

+8
-30
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-30
lines changed

‎examples/pyplots/annotation_basic.py

Copy file name to clipboard
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
"""
2-
================
3-
Annotation Basic
4-
================
2+
=================
3+
Annotating a plot
4+
=================
5+
6+
This example shows how to annotate a plot with an arrow pointing to provided
7+
coordinates. We modify the defaults of the arrow, to "shrink" it.
58
69
"""
710
import numpy as np
811
import matplotlib.pyplot as plt
912

10-
fig = plt.figure()
11-
ax = fig.add_subplot(111)
13+
fig, ax = plt.subplots()
1214

1315
t = np.arange(0.0, 5.0, 0.01)
1416
s = np.cos(2*np.pi*t)
@@ -17,6 +19,4 @@
1719
ax.annotate('local max', xy=(2, 1), xytext=(3, 1.5),
1820
arrowprops=dict(facecolor='black', shrink=0.05),
1921
)
20-
21-
ax.set_ylim(-2,2)
22-
plt.show()
22+
ax.set_ylim(-2, 2)

‎examples/pyplots/pyplot_annotate.py

Copy file name to clipboardExpand all lines: examples/pyplots/pyplot_annotate.py
-21Lines changed: 0 additions & 21 deletions
This file was deleted.

‎pytest.ini

Copy file name to clipboardExpand all lines: pytest.ini
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ pep8ignore =
126126
*examples/pyplots/boxplot_demo.py E231
127127
*examples/pyplots/compound_path_demo.py E231
128128
*examples/pyplots/fig_axes_customize_simple.py E261
129-
*examples/pyplots/pyplot_annotate.py E231
130129
*examples/pyplots/pyplot_formatstr.py E231
131130
*examples/pyplots/pyplot_mathtext.py E231
132131
*examples/pyplots/pyplot_simple.py E231

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.