File tree 1 file changed +27
-2
lines changed
examples/text_labels_and_annotations
1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 1
- """
2
- ===================
1
+ """===================
3
2
Demo Annotation Box
4
3
===================
5
4
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
+
6
10
"""
11
+
7
12
import matplotlib .pyplot as plt
8
13
import numpy as np
9
14
95
100
ax .set_ylim (0 , 1 )
96
101
97
102
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
You can’t perform that action at this time.
0 commit comments