Python matplotlib.cm.hot() Examples

The following are 13 code examples for showing how to use matplotlib.cm.hot(). These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.

You may also want to check out all available functions/classes of the module matplotlib.cm , or try the search function .

Example 1
Project: Computable   Author: ktraunmueller   File: pyplot.py    License: MIT License 5 votes vote down vote up
def sci(im):
    """
    Set the current image.  This image will be the target of colormap
    commands like :func:`~matplotlib.pyplot.jet`,
    :func:`~matplotlib.pyplot.hot` or
    :func:`~matplotlib.pyplot.clim`).  The current image is an
    attribute of the current axes.
    """
    gca()._sci(im)


## Any Artist ##
# (getp is simply imported) 
Example 2
Project: Computable   Author: ktraunmueller   File: pyplot.py    License: MIT License 5 votes vote down vote up
def hot():
    '''
    set the default colormap to hot and apply to current image if any.
    See help(colormaps) for more information
    '''
    rc('image', cmap='hot')
    im = gci()

    if im is not None:
        im.set_cmap(cm.hot)
    draw_if_interactive()


# This function was autogenerated by boilerplate.py.  Do not edit as
# changes will be lost 
Example 3
Project: matplotlib-4-abaqus   Author: Solid-Mechanics   File: pyplot.py    License: MIT License 5 votes vote down vote up
def sci(im):
    """
    Set the current image.  This image will be the target of colormap
    commands like :func:`~matplotlib.pyplot.jet`,
    :func:`~matplotlib.pyplot.hot` or
    :func:`~matplotlib.pyplot.clim`).  The current image is an
    attribute of the current axes.
    """
    gca()._sci(im)


## Any Artist ##
# (getp is simply imported) 
Example 4
Project: matplotlib-4-abaqus   Author: Solid-Mechanics   File: pyplot.py    License: MIT License 5 votes vote down vote up
def hot():
    '''
    set the default colormap to hot and apply to current image if any.
    See help(colormaps) for more information
    '''
    rc('image', cmap='hot')
    im = gci()

    if im is not None:
        im.set_cmap(cm.hot)
    draw_if_interactive()


# This function was autogenerated by boilerplate.py.  Do not edit as
# changes will be lost 
Example 5
Project: neural-network-animation   Author: miloharper   File: pyplot.py    License: MIT License 5 votes vote down vote up
def sci(im):
    """
    Set the current image.  This image will be the target of colormap
    commands like :func:`~matplotlib.pyplot.jet`,
    :func:`~matplotlib.pyplot.hot` or
    :func:`~matplotlib.pyplot.clim`).  The current image is an
    attribute of the current axes.
    """
    gca()._sci(im)


## Any Artist ##
# (getp is simply imported) 
Example 6
Project: neural-network-animation   Author: miloharper   File: pyplot.py    License: MIT License 5 votes vote down vote up
def hot():
    '''
    set the default colormap to hot and apply to current image if any.
    See help(colormaps) for more information
    '''
    rc('image', cmap='hot')
    im = gci()

    if im is not None:
        im.set_cmap(cm.hot)
    draw_if_interactive()


# This function was autogenerated by boilerplate.py.  Do not edit as
# changes will be lost 
Example 7
Project: GraphicDesignPatternByPython   Author: Relph1119   File: pyplot.py    License: MIT License 5 votes vote down vote up
def hot():
    """
    Set the colormap to "hot".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    """
    set_cmap("hot")

# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example 8
Project: python3_ios   Author: holzschu   File: pyplot.py    License: BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def hot():
    """
    Set the colormap to "hot".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    """
    set_cmap("hot")


# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example 9
Project: PySNN   Author: BasBuller   File: file_io.py    License: MIT License 5 votes vote down vote up
def _show_td_1d(TD, frame_rate=24, pre_compute_frames=True, repeat=False):
    assert TD.dim != 1, f"Expected TD dimension to be 1. It was: {TD.dim}"
    fig = plt.figure()
    interval = 1e3 / frame_rate  # in ms
    x_dim = TD.x.max() + 1
    tMax = TD.t.max()
    tMin = TD.t.min()
    pMax = TD.p.max() + 1
    min_frame = int(np.floor(tMin / interval))
    max_frame = int(np.ceil(tMax / interval)) + 1

    # ignore pre_compute_frames

    def animate(i):
        fig.clear()
        t_end = (i + min_frame + 1) * interval
        ind = TD.t < t_end
        # plot raster
        plt.plot(TD.t[ind], TD.x[ind], ".")
        # plt.plot(TD.t[ind], TD.x[ind], '.', c=cm.hot(TD.p[ind]))
        # plot raster scan line
        plt.plot([t_end + interval, t_end + interval], [0, x_dim])
        plt.axis((tMin - 0.1 * tMax, 1.1 * tMax, -0.1 * x_dim, 1.1 * x_dim))
        plt.draw()

    anim = animation.FuncAnimation(
        fig, animate, frames=max_frame, interval=42, repeat=repeat
    )  # 42 means playback at 23.809 fps

    return anim 
Example 10
Project: coffeegrindsize   Author: jgagneastro   File: pyplot.py    License: MIT License 5 votes vote down vote up
def hot():
    """
    Set the colormap to "hot".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    """
    set_cmap("hot")


# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example 11
Project: CogAlg   Author: boris-kz   File: pyplot.py    License: MIT License 5 votes vote down vote up
def hot():
    """
    Set the colormap to "hot".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    """
    set_cmap("hot")


# Autogenerated by boilerplate.py.  Do not edit as changes will be lost. 
Example 12
Project: twitter-stock-recommendation   Author: alvarobartt   File: pyplot.py    License: MIT License 5 votes vote down vote up
def sci(im):
    """
    Set the current image.  This image will be the target of colormap
    commands like :func:`~matplotlib.pyplot.jet`,
    :func:`~matplotlib.pyplot.hot` or
    :func:`~matplotlib.pyplot.clim`).  The current image is an
    attribute of the current axes.
    """
    gca()._sci(im)


## Any Artist ##
# (getp is simply imported) 
Example 13
Project: twitter-stock-recommendation   Author: alvarobartt   File: pyplot.py    License: MIT License 5 votes vote down vote up
def hot():
    """
    Set the colormap to "hot".

    This changes the default colormap as well as the colormap of the current
    image if there is one. See ``help(colormaps)`` for more information.
    """
    set_cmap("hot")


# Autogenerated by boilerplate.py.  Do not edit as changes will be lost.