Пример #1
0
def add_ensocomparisonplot(axes, *args, **kwargs):
    """
    Adds a :class:`ClimateSeriesPlot` to the current plot.
    
    """
    kwargs.update(SubplotClass=ENSOPhaseComparisonPlot)
    if 'series' not in kwargs.keys():
        series = getattr(axes, '_series', getattr(axes, 'series', None))
        kwargs['series'] = series
    return mpl.add_generic_subplot(axes, *args, **kwargs)
Пример #2
0
def add_ensocomparisonplot(axes, *args, **kwargs):
    """
    Adds a :class:`ClimateSeriesPlot` to the current plot.
    
    """
    kwargs.update(SubplotClass=ENSOPhaseComparisonPlot)
    if 'series' not in kwargs.keys():
        series = getattr(axes, '_series', getattr(axes, 'series', None))
        kwargs['series'] = series
    return mpl.add_generic_subplot(axes, *args, **kwargs)
Пример #3
0
def add_csplot(axes, *args, **kwargs):
    """
    Adds a :class:`ClimateSeriesPlot` to the current plot.
    
    """
    kwargs.update(SubplotClass=ClimateSeriesPlot)
    if 'series' not in kwargs.keys():
        if hasattr(axes, 'series'):
            kwargs['series'] = axes.series
        elif hasattr(axes, '_series'):
            kwargs['series'] = axes._series
        else:
            kwargs['series'] = None
    return mpl.add_generic_subplot(axes, *args, **kwargs)
Пример #4
0
def add_csplot(axes, *args, **kwargs):
    """
    Adds a :class:`ClimateSeriesPlot` to the current plot.
    
    """
    kwargs.update(SubplotClass=ClimateSeriesPlot)
    if 'series' not in kwargs.keys():
        if hasattr(axes, 'series'):
            kwargs['series'] = axes.series
        elif hasattr(axes, '_series'):
            kwargs['series'] = axes._series
        else:
            kwargs['series'] = None
    return mpl.add_generic_subplot(axes, *args, **kwargs)