Ignore:
Timestamp:
06/18/20 16:01:39 (5 years ago)
Author:
jdquinn
Message:

CHG: Saving progress on SLR/Solid Earth translation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/src/m/plot/applyoptions.py

    r24565 r25065  
     1from cmaptools import getcolormap
     2try:
     3    import matplotlib as mpl
     4    import matplotlib.pyplot as plt
     5    from matplotlib.ticker import MaxNLocator
     6except ImportError:
     7    print("could not import pylab, matplotlib has not been installed, no plotting capabilities enabled")
    18import numpy as np
    2 from cmaptools import getcolormap
     9
     10from expdisp import expdisp
    311from plot_contour import plot_contour
    412from plot_streamlines import plot_streamlines
    5 from expdisp import expdisp
    6 
    7 try:
    8     from matplotlib.ticker import MaxNLocator
    9     import matplotlib as mpl
    10     import matplotlib.pyplot as plt
    11 except ImportError:
    12     print("could not import pylab, matplotlib has not been installed, no plotting capabilities enabled")
    1313
    1414
     
    2020    render the data.  This object is used for adding a colorbar.
    2121
    22         Usage:
    23             applyoptions(md, data, options)
    24 
    25         See also: PLOTMODEL, PARSE_OPTIONS
     22    Usage:
     23        applyoptions(md, data, options)
     24
     25    See also: PLOTMODEL, PARSE_OPTIONS
    2626    '''
    2727
     
    3434    fontweight = options.getfieldvalue('fontweight', 'normal')
    3535    fontfamily = options.getfieldvalue('fontfamily', 'sans - serif')
    36     font = {'fontsize': fontsize,
    37             'fontweight': fontweight,
    38             'family': fontfamily}
     36    font = {
     37        'fontsize': fontsize,
     38        'fontweight': fontweight,
     39        'family': fontfamily
     40    }
    3941    # }}}
    4042    # {{{ title
Note: See TracChangeset for help on using the changeset viewer.