Python matplotlib.axes.Axes.text() Examples

The following are 30 code examples of matplotlib.axes.Axes.text(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module matplotlib.axes.Axes , or try the search function .
Example #1
Source File: pyplot.py    From neural-network-animation with MIT License 6 votes vote down vote up
def ylabel(s, *args, **kwargs):
    """
    Set the *y* axis label of the current axis.

    Defaults override is::

        override = {
           'fontsize'            : 'small',
           'verticalalignment'   : 'center',
           'horizontalalignment' : 'right',
           'rotation'='vertical' : }

    .. seealso::

        :func:`~matplotlib.pyplot.text`
            For information on how override and the optional args
            work.
    """
    l = gca().set_ylabel(s, *args, **kwargs)
    draw_if_interactive()
    return l 
Example #2
Source File: pyplot.py    From neural-network-animation with MIT License 6 votes vote down vote up
def xlabel(s, *args, **kwargs):
    """
    Set the *x* axis label of the current axis.

    Default override is::

      override = {
          'fontsize'            : 'small',
          'verticalalignment'   : 'top',
          'horizontalalignment' : 'center'
          }

    .. seealso::

        :func:`~matplotlib.pyplot.text`
            For information on how override and the optional args work
    """
    l =  gca().set_xlabel(s, *args, **kwargs)
    draw_if_interactive()
    return l 
Example #3
Source File: pyplot.py    From Computable with MIT License 6 votes vote down vote up
def xlabel(s, *args, **kwargs):
    """
    Set the *x* axis label of the current axis.

    Default override is::

      override = {
          'fontsize'            : 'small',
          'verticalalignment'   : 'top',
          'horizontalalignment' : 'center'
          }

    .. seealso::

        :func:`~matplotlib.pyplot.text`
            For information on how override and the optional args work
    """
    l =  gca().set_xlabel(s, *args, **kwargs)
    draw_if_interactive()
    return l 
Example #4
Source File: pyplot.py    From Computable with MIT License 6 votes vote down vote up
def ylabel(s, *args, **kwargs):
    """
    Set the *y* axis label of the current axis.

    Defaults override is::

        override = {
           'fontsize'            : 'small',
           'verticalalignment'   : 'center',
           'horizontalalignment' : 'right',
           'rotation'='vertical' : }

    .. seealso::

        :func:`~matplotlib.pyplot.text`
            For information on how override and the optional args
            work.
    """
    l = gca().set_ylabel(s, *args, **kwargs)
    draw_if_interactive()
    return l 
Example #5
Source File: pyplot.py    From matplotlib-4-abaqus with MIT License 6 votes vote down vote up
def ylabel(s, *args, **kwargs):
    """
    Set the *y* axis label of the current axis.

    Defaults override is::

        override = {
           'fontsize'            : 'small',
           'verticalalignment'   : 'center',
           'horizontalalignment' : 'right',
           'rotation'='vertical' : }

    .. seealso::

        :func:`~matplotlib.pyplot.text`
            For information on how override and the optional args
            work.
    """
    l = gca().set_ylabel(s, *args, **kwargs)
    draw_if_interactive()
    return l 
Example #6
Source File: pyplot.py    From matplotlib-4-abaqus with MIT License 6 votes vote down vote up
def xlabel(s, *args, **kwargs):
    """
    Set the *x* axis label of the current axis.

    Default override is::

      override = {
          'fontsize'            : 'small',
          'verticalalignment'   : 'top',
          'horizontalalignment' : 'center'
          }

    .. seealso::

        :func:`~matplotlib.pyplot.text`
            For information on how override and the optional args work
    """
    l =  gca().set_xlabel(s, *args, **kwargs)
    draw_if_interactive()
    return l 
Example #7
Source File: axes3d.py    From opticspy with MIT License 5 votes vote down vote up
def get_zlabel(self) :
        """
        Get the z-label text string.

        .. versionadded :: 1.1.0
            This function was added, but not tested. Please report any bugs.
        """
        label = self.zaxis.get_label()
        return label.get_text()

    #### Axes rectangle characteristics 
Example #8
Source File: pyplot.py    From neural-network-animation with MIT License 5 votes vote down vote up
def text(x, y, s, fontdict=None, withdash=False, **kwargs):
    ret = gca().text(x, y, s, fontdict=fontdict, withdash=withdash, **kwargs)
    draw_if_interactive()
    return ret

# This function was autogenerated by boilerplate.py.  Do not edit as
# changes will be lost 
Example #9
Source File: pyplot.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def figtext(x, y, s, *args, **kwargs):
    return gcf().text(x, y, s, *args, **kwargs) 
Example #10
Source File: pyplot.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def annotate(text, xy, *args, **kwargs):
    return gca().annotate(text=text, xy=xy, *args, **kwargs)

# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example #11
Source File: pyplot.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def text(x, y, s, fontdict=None, withdash=False, **kwargs):
    return gca().text(
        x=x, y=y, s=s, fontdict=fontdict, withdash=withdash, **kwargs)

# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example #12
Source File: axes3d.py    From GraphicDesignPatternByPython with MIT License 5 votes vote down vote up
def get_zlabel(self):
        """
        Get the z-label text string.

        .. versionadded :: 1.1.0
            This function was added, but not tested. Please report any bugs.
        """
        label = self.zaxis.get_label()
        return label.get_text()

    #### Axes rectangle characteristics 
Example #13
Source File: pyplot.py    From python3_ios with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def figtext(x, y, s, *args, **kwargs):
    return gcf().text(x, y, s, *args, **kwargs) 
Example #14
Source File: pyplot.py    From python3_ios with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def text(x, y, s, fontdict=None, withdash=False, **kwargs):
    return gca().text(x, y, s, fontdict=fontdict, withdash=withdash, **kwargs)


# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example #15
Source File: pyplot.py    From Computable with MIT License 5 votes vote down vote up
def figtext(*args, **kwargs):

    ret =  gcf().text(*args, **kwargs)
    draw_if_interactive()
    return ret 
Example #16
Source File: axes3d.py    From opticspy with MIT License 5 votes vote down vote up
def text(self, x, y, z, s, zdir=None, **kwargs):
        '''
        Add text to the plot. kwargs will be passed on to Axes.text,
        except for the `zdir` keyword, which sets the direction to be
        used as the z direction.
        '''
        text = Axes.text(self, x, y, s, **kwargs)
        art3d.text_2d_to_3d(text, z, zdir)
        return text 
Example #17
Source File: pyplot.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def figtext(x, y, s, *args, **kwargs):
    return gcf().text(x, y, s, *args, **kwargs) 
Example #18
Source File: pyplot.py    From coffeegrindsize with MIT License 5 votes vote down vote up
def text(x, y, s, fontdict=None, withdash=False, **kwargs):
    return gca().text(x, y, s, fontdict=fontdict, withdash=withdash, **kwargs)


# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example #19
Source File: pyplot.py    From CogAlg with MIT License 5 votes vote down vote up
def figtext(x, y, s, *args, **kwargs):
    return gcf().text(x, y, s, *args, **kwargs) 
Example #20
Source File: pyplot.py    From CogAlg with MIT License 5 votes vote down vote up
def text(
        x, y, s, fontdict=None,
        withdash=cbook.deprecation._deprecated_parameter, **kwargs):
    return gca().text(x, y, s, fontdict=fontdict, withdash=withdash, **kwargs)


# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example #21
Source File: axes3d.py    From CogAlg with MIT License 5 votes vote down vote up
def get_zlabel(self):
        """
        Get the z-label text string.

        .. versionadded :: 1.1.0
            This function was added, but not tested. Please report any bugs.
        """
        label = self.zaxis.get_label()
        return label.get_text()

    #### Axes rectangle characteristics 
Example #22
Source File: axes3d.py    From CogAlg with MIT License 5 votes vote down vote up
def text(self, x, y, z, s, zdir=None, **kwargs):
        '''
        Add text to the plot. kwargs will be passed on to Axes.text,
        except for the `zdir` keyword, which sets the direction to be
        used as the z direction.
        '''
        text = super().text(x, y, s, **kwargs)
        art3d.text_2d_to_3d(text, z, zdir)
        return text 
Example #23
Source File: pyplot.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def figtext(*args, **kwargs):
    return gcf().text(*args, **kwargs) 
Example #24
Source File: pyplot.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def text(x, y, s, fontdict=None, withdash=False, **kwargs):
    ret = gca().text(x, y, s, fontdict=fontdict, withdash=withdash, **kwargs)
    return ret

# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example #25
Source File: axes3d.py    From Computable with MIT License 5 votes vote down vote up
def get_zlabel(self) :
        """
        Get the z-label text string.

        .. versionadded :: 1.1.0
            This function was added, but not tested. Please report any bugs.
        """
        label = self.zaxis.get_label()
        return label.get_text()

    #### Axes rectangle characteristics 
Example #26
Source File: axes3d.py    From Computable with MIT License 5 votes vote down vote up
def text(self, x, y, z, s, zdir=None, **kwargs):
        '''
        Add text to the plot. kwargs will be passed on to Axes.text,
        except for the `zdir` keyword, which sets the direction to be
        used as the z direction.
        '''
        text = Axes.text(self, x, y, s, **kwargs)
        art3d.text_2d_to_3d(text, z, zdir)
        return text 
Example #27
Source File: pyplot.py    From Computable with MIT License 5 votes vote down vote up
def text(x, y, s, fontdict=None, withdash=False, **kwargs):
    ret = gca().text(x, y, s, fontdict=fontdict, withdash=withdash, **kwargs)
    draw_if_interactive()
    return ret

# This function was autogenerated by boilerplate.py.  Do not edit as
# changes will be lost 
Example #28
Source File: pyplot.py    From neural-network-animation with MIT License 5 votes vote down vote up
def figtext(*args, **kwargs):

    ret =  gcf().text(*args, **kwargs)
    draw_if_interactive()
    return ret 
Example #29
Source File: axes3d.py    From matplotlib-4-abaqus with MIT License 5 votes vote down vote up
def text(self, x, y, z, s, zdir=None, **kwargs):
        '''
        Add text to the plot. kwargs will be passed on to Axes.text,
        except for the `zdir` keyword, which sets the direction to be
        used as the z direction.
        '''
        text = Axes.text(self, x, y, s, **kwargs)
        art3d.text_2d_to_3d(text, z, zdir)
        return text 
Example #30
Source File: axes3d.py    From matplotlib-4-abaqus with MIT License 5 votes vote down vote up
def get_zlabel(self) :
        """
        Get the z-label text string.

        .. versionadded :: 1.1.0
            This function was added, but not tested. Please report any bugs.
        """
        label = self.zaxis.get_label()
        return label.get_text()

    #### Axes rectangle characteristics