File tree Expand file tree Collapse file tree
examples/text_labels_and_annotations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- """
2- ===================
1+ """===================
32Demo 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+
712import matplotlib .pyplot as plt
813import numpy as np
914
95100ax .set_ylim (0 , 1 )
96101
97102plt .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