欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

python matplotlib.pyplot.show() plt.show()(显示一个图表)

程序员文章站 2024-01-19 14:46:46
...

from matplotlib\pyplot.py

def show(*args, **kw):
    """
    Display a figure.
    显示一个图表。

    When running in ipython with its pylab mode, display all
    figures and return to the ipython prompt.
    当以pylab模式在ipython中运行时,显示所有图形并返回到ipython提示符。

    In non-interactive mode, display all figures and block until
    the figures have been closed; in interactive mode it has no
    effect unless figures were created prior to a change from
    non-interactive to interactive mode (not recommended).  In
    that case it displays the figures but does not block.
    在非交互模式下,显示所有图形并阻止直到图形关闭。 
    在交互模式下,除非在非交互模式更改为交互模式之前创建图形(不推荐),否则它不会起作用。 
    在这种情况下,它会显示图形,但不会阻塞。

    A single experimental keyword argument, *block*, may be
    set to True or False to override the blocking behavior
    described above.
    可以将单个实验关键字参数* block *设置为True或False,以覆盖上述阻止行为。
    """
    global _show
    return _show(*args, **kw)
相关标签: Python