case = range(8, 15)
res = 'coarse'
o = 'case{}_total_wind_{}.pdf'

''' creates plot with seaborn style '''
with sns.axes_style("white"):
    

    scale=1
    plt.figure(figsize=(11*scale, 8.5*scale))
    
    gs0 = gridspec.GridSpec(3, 1,hspace=0.35)
    
    gs00 = gssp(1, 3,
                subplot_spec=gs0[0],
                wspace=0.05)
    
    gs01 = gssp(1, 3,
                subplot_spec=gs0[1],
                wspace=0.05)

    gs02 = gssp(1, 3,
                subplot_spec=gs0[2],
                width_ratios=[1.2,1,1])

    axes = range(7)    
    axes[0] = plt.subplot(gs00[0],gid='(a) Jan 2003')
    axes[1] = plt.subplot(gs00[1],gid='(b) Jan 2003')
    axes[2] = plt.subplot(gs00[2],gid='(c) Feb 2003')
    axes[3] = plt.subplot(gs01[0],gid='(d) Jan 2004')
''' creates plot with seaborn style '''
with sns.axes_style("white"):
    sns.set_style('ticks',
              {'xtick.direction': u'in',
               'ytick.direction': u'in'}
              )    
    
    scale=1.3
    fig = plt.figure(figsize=(8*scale,6*scale))
    

    gsA = gridspec.GridSpec(1, 1,
                            hspace=0.2)

    gsAA = gssp(2, 1,
                subplot_spec=gsA[0],
                hspace=0.25)

    gs00 = gssp(1, 3,
                subplot_spec=gsAA[0],
                wspace=0.15
                )
    
    gs01 = gssp(1, 3,
                subplot_spec=gsAA[1],
                wspace=0.15
                )


    ax00 = plt.subplot(gs00[0],gid='(a)')
    ax01 = plt.subplot(gs00[1],gid='(b)')
Example #3
0
    outwr
except NameError:
    outwr = cfad(year=[1998] + range(2001, 2013), **params)
''' creates plot with seaborn style '''
with sns.axes_style("white"):
    sns.set_style('ticks', {
        'xtick.direction': u'in',
        'ytick.direction': u'in'
    })

    scale = 1.3
    fig = plt.figure(figsize=(8 * scale, 6 * scale))

    gsA = gridspec.GridSpec(1, 1, hspace=0.2)

    gsAA = gssp(2, 1, subplot_spec=gsA[0], hspace=0.25)

    gs00 = gssp(1, 3, subplot_spec=gsAA[0], wspace=0.15)

    gs01 = gssp(1, 3, subplot_spec=gsAA[1], wspace=0.15)

    ax00 = plt.subplot(gs00[0], gid='(a)')
    ax01 = plt.subplot(gs00[1], gid='(b)')
    ax02 = plt.subplot(gs00[2], gid='(c)')
    ax03 = plt.subplot(gs01[0], gid='(d)')
    ax04 = plt.subplot(gs01[1], gid='(e)')
    ax05 = plt.subplot(gs01[2], gid='(f)')

plot = outwr.plot('u',
                  axes=[ax00, ax01, ax02],
                  add_median=True,
 ''' creates plot with seaborn style '''
 with sns.axes_style("white"):
     sns.set_style('ticks',
               {'xtick.direction': u'in',
                'ytick.direction': u'in'}
               )    
     
     scale=1.3
     fig = plt.figure(figsize=(6*scale,8*scale))
     
 
     gsA = gridspec.GridSpec(1, 1,
                            )
 
     gsAA = gssp(1, 2,
                 subplot_spec=gsA[0],
                 wspace=0.05
                 )
 
     gs00 = gssp(3, 1,
                 subplot_spec=gsAA[0],
                 hspace=0.1,
                 )
     
     gs01 = gssp(3, 1,
                 subplot_spec=gsAA[1],
                 hspace=0.1,
                 )
 
 
     ax00 = plt.subplot(gs00[0],gid='(a)')
     ax01 = plt.subplot(gs01[0],gid='(b)')
Example #5
0
    ''' creates plot with seaborn style '''
    with sns.axes_style("white"):
        sns.set_style('ticks', {
            'xtick.direction': u'in',
            'ytick.direction': u'in'
        })

        scale = 1.3
        fig = plt.figure(figsize=(6 * scale, 8 * scale))

        gsA = gridspec.GridSpec(
            1,
            1,
        )

        gsAA = gssp(1, 2, subplot_spec=gsA[0], wspace=0.05)

        gs00 = gssp(
            3,
            1,
            subplot_spec=gsAA[0],
            hspace=0.1,
        )

        gs01 = gssp(
            3,
            1,
            subplot_spec=gsAA[1],
            hspace=0.1,
        )
''' creates plot with seaborn style '''
with sns.axes_style("white"):
    sns.set_style('ticks',
                  {'xtick.direction': u'in',
                   'ytick.direction': u'in'}
                  )

    scale = 1.3
    plt.figure(figsize=(8 * scale, 10 * scale))

    gs0 = gridspec.GridSpec(4, 1,
                            hspace=0.25,
                            )

    gs00 = gssp(1, 2,
                subplot_spec=gs0[0],
                wspace=0.05
                )

    gs01 = gssp(1, 2,
                subplot_spec=gs0[1],
                wspace=0.05
                )

    gs02 = gssp(1, 2,
                subplot_spec=gs0[2],
                wspace=0.05
                )

    gs03 = gssp(1, 2,
                subplot_spec=gs0[3],
                wspace=0.05
''' creates plot with seaborn style '''
with sns.axes_style("white"):
    sns.set_style('ticks',
                  {'xtick.direction': u'in',
                   'ytick.direction': u'in'}
                  )

    scale = 1.3
    plt.figure(figsize=(8 * scale, 10 * scale))

    gs0 = gridspec.GridSpec(4, 1,
                            hspace=0.25,
                            )

    gs00 = gssp(1, 2,
                subplot_spec=gs0[0],
                wspace=0.05
                )

    gs01 = gssp(1, 2,
                subplot_spec=gs0[1],
                wspace=0.05
                )

    gs02 = gssp(1, 2,
                subplot_spec=gs0[2],
                wspace=0.05
                )

    gs03 = gssp(1, 2,
                subplot_spec=gs0[3],
                wspace=0.05
homedir = '/localdata'
topdf = False

case = range(8, 15)
res = 'coarse'
o = 'case{}_total_wind_{}.pdf'
''' creates plot with seaborn style '''
with sns.axes_style("white"):

    scale = 1
    plt.figure(figsize=(11 * scale, 8.5 * scale))

    gs0 = gridspec.GridSpec(3, 1, hspace=0.35)

    gs00 = gssp(1, 3, subplot_spec=gs0[0], wspace=0.05)

    gs01 = gssp(1, 3, subplot_spec=gs0[1], wspace=0.05)

    gs02 = gssp(1, 3, subplot_spec=gs0[2], width_ratios=[1.2, 1, 1])

    axes = range(7)
    axes[0] = plt.subplot(gs00[0], gid='(a) Jan 2003')
    axes[1] = plt.subplot(gs00[1], gid='(b) Jan 2003')
    axes[2] = plt.subplot(gs00[2], gid='(c) Feb 2003')
    axes[3] = plt.subplot(gs01[0], gid='(d) Jan 2004')
    axes[4] = plt.subplot(gs01[1], gid='(e) Feb 2004')
    axes[5] = plt.subplot(gs01[2], gid='(f) Feb 2004')
    axes[6] = plt.subplot(gs02[0], gid='(g) Feb 2004')
''' define ranges for tta and xpol in fraction of axis '''
times = {