


Was used must be specified as the dpi argument. The value used when saving the figure, then the value that For the web application, if figure.dpi is not Simpler to call the method after saving the figure.ĭpi defaults to the renderer dpi is Specifying clickable regions in a png file on a web page. In addition to being used internally, this is useful for Get the font weight as string or number get_window_extent ( renderer=None, dpi=None ) ¶ Return the font variant as a string get_verticalalignment ( ) ¶

The value of rcParams get_va ( ) ¶Īlias for getverticalalignment() get_variant ( ) ¶ If the user has not manually set this value, it will default to Return whether this Text object will render using TeX. Return the unitless position of the text as a tuple ( x, y) get_usetex ( ) ¶ Get the text as string get_unitless_position ( ) ¶ Return the font style as string get_text ( ) ¶ 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 (e.g., 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 ( renderer=None ) ¶ 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į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. String or anything printable with ‘%s’ conversion. OffsetFrom ( artist, ref_coord, unit=u'points' ) ¶Ĭallable helper class for working with Annotation Parameters:įloat (0.0 transparent through 1.0 opaque)Ī matplotlib.font_manager.FontProperties instance “Update the pixel positions of the annotated point and the set_figure ( fig ) ¶ update_positions ( renderer ) ¶ Theĭpi used defaults to the renderer dpi is Simpler to call the method after saving the figure. To call get_window_extent() prior to the firstĭraw(). This is not assigned until the first execution ofĭraw(), so you must use this kwarg if you want Renderer defaults to the _renderer attribute of the text The text and arrow annotation, in display units. The default is None, which behave as True only ifĪnncoords ¶ contains ( event ) ¶ draw ( artist, renderer, *args, **kwargs ) ¶ĭraw the Annotation object to the given renderer. If False, the annotation willĪlways be drawn regardless of its position. If True, the annotation will only be drawn when the Head_length=0.5,head_width=0.5,tail_width=0.2Ĭontrols the visibility of the annotation when it goes If the arrowprops contains the key 'arrowstyle' theĪbove keys are forbidden. The width of the base of the arrow head in pointsįraction of total length to ‘shrink’ from both endsĪny key to If arrowprops does not contain the key 'arrowstyle' the Textcoords : str, Artist, Transform, callable or tuple, optional See Advanced Annotation for more details. Used for the x coordinate and the second for y. If a tuple must be length 2 tuple of str, Artist, In use that to transform xy to screen coordinates If a Artist object is passed in the units are (theta,r) if not native ‘data’ coordinates Use the coordinate system of the object being The coordinate system that xy is given in.įor a str the allowed values are: Property
