Return the font variant as a string get_verticalalignment ( ) ¶ Return the font style as string get_text ( ) ¶Īlias for getverticalalignment() get_variant ( ) ¶ Get the font stretch as a string or number get_style ( ) ¶ Return the font size as integer get_stretch ( ) ¶ Return the text angle as float in degrees get_rotation_mode ( ) ¶ Want to cache derived information about text (eg layouts) and Not intended to be human readable, but useful for backends who Return the position of the text as a tuple ( x, y) get_prop_tup ( ) ¶ Return the font name as string get_position ( ) ¶ Return the horizontal alignment as string. Return the FontProperties object get_fontsize ( ) ¶Īlias for get_stretch get_fontstyle ( ) ¶Īlias for get_style get_fontvariant ( ) ¶Īlias for get_variant get_fontweight ( ) ¶Īlias for get_horizontalalignment get_horizontalalignment ( ) ¶ Return the list of font families used for font lookup get_font_properties ( ) ¶Īlias for get_fontproperties get_fontfamily ( ) ¶Īlias for get_name get_fontproperties ( ) ¶ Return the color of the text get_family ( ) ¶ Returns None if the theįancyBboxPatch is not made. draw ( artist, renderer, *args, **kwargs ) ¶ĭraws the Text object to the given renderer. In the case of text, a hit is true anywhere in theĪxis-aligned bounding-box containing the text. Test whether the mouse event occurred in the patch. Handle storing and drawing of text in window or data coordinates. Text ( x=0, y=0, text=u'', color=None, verticalalignment=u'baseline', horizontalalignment=u'left', multialignment=None, fontproperties=None, rotation=None, linespacing=None, rotation_mode=None, **kwargs ) ¶ OffsetFrom ( artist, ref_coord, unit=u'points' ) ¶īases: object get_unit ( ) ¶ set_unit ( unit ) ¶ class matplotlib.text. “Update the pixel positions of the annotated point and the Should be used when the position and size of the bbox needs toīe updated before actually drawing the bbox. Update the location and the size of the bbox. set_figure ( fig ) ¶ update_bbox_position_size ( renderer ) ¶ String or anything printable with ‘%s’ conversion.Īnncoords ¶ contains ( event ) ¶ draw ( artist, renderer, *args, **kwargs ) ¶ĭraw the Annotation object to the given renderer. If a ‘points’ or ‘pixels’ option is specified, values will beĪdded to the bottom-left and if negative, values will beįloat (0.0 transparent through 1.0 opaque)Ī matplotlib.font_manager.FontProperties instance System since that is the native “data” coordinate You can specify theta, r for the annotation,Įven in cartesian plots. Specify an offset (in points) from the xy value Use the coordinate system of the object being Pixels from the lower left corner of the figureĠ,0 is lower left of figure and 1,1 is upper rightĠ,0 is lower left of axes and 1,1 is upper right Points from the lower left corner of the figure Xycoords and textcoords are strings that indicate theĬoordinates of xy and xytext, and may be one of the If d is the distance between the text andĪnnotated point, shrink will shorten the arrow so the tipĪnd base are shink percent of the distance d away from Oftentimes it is convenient to have the arrowtipĪnd base a bit away from the text and point beingĪnnotated. The width of the base of the arrow head in points The fraction of the arrow length occupied by the head If the dictionary has a key arrowstyle, a (If xytext = None, defaults to xy,Īnd if textcoords = None, defaults to xycoords).Īrrowprops, if not None, is a dictionary of line properties Annotation ( s, xy, xytext=None, xycoords=u'data', textcoords=None, arrowprops=None, annotation_clip=None, **kwargs ) ¶īases:, matplotlib.text._AnnotationBaseĪnnotate the x, y point xy with text s at x, y
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |