Skip to content

Commit c4bfd15

Browse files
committed
Add explanatory comment for annotation box example
1 parent 345607a commit c4bfd15

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

examples/text_labels_and_annotations/demo_annotation_box.py

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
"""
2-
===================
1+
"""===================
32
Demo Annotation Box
43
===================
54
5+
The AnnotationBbox Artist creates an annotation using an OffsetBox. This
6+
example demonstrates three different OffsetBoxes: TextArea, DrawingArea and
7+
OffsetImage. AnnotationBbox gives more fine-grained control than using the axes
8+
method annotate.
9+
610
"""
11+
712
import matplotlib.pyplot as plt
813
import numpy as np
914

@@ -95,3 +100,23 @@
95100
ax.set_ylim(0, 1)
96101

97102
plt.show()
103+
104+
#############################################################################
105+
#
106+
# ------------
107+
#
108+
# References
109+
# """"""""""
110+
#
111+
# The use of the following functions, methods and classes is shown in this
112+
# example:
113+
114+
Circle
115+
TextArea
116+
DrawingArea
117+
OffsetImage
118+
AnnotationBbox
119+
get_sample_data
120+
plt.subplots
121+
plt.imread
122+
plt.show

0 commit comments

Comments
 (0)