예제 #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)