示例#1
0
def fig(name, title=''):
    '''Create and return new Figure window with internal @name
    If @title is True, automatically set to @name (default no title)
    Set window title to @title if string.
    '''
    fig_ = Figure(name).new()
    fig_.clear()
    if title is True:
        title = name
    if title:
        plt.title(title)
    return fig_
示例#2
0
def fig(name, title=''):
    '''Create and return new Figure window with internal @name
    If @title is True, automatically set to @name (default no title)
    Set window title to @title if string.
    '''
    fig_ = Figure(name).new()
    fig_.clear()
    if title is True:
        title = name
    if title:
        plt.title(title)
    return fig_