Changeset 25816


Ignore:
Timestamp:
12/03/20 05:41:30 (4 years ago)
Author:
bdef
Message:

BUG:fixing some spacing in plotoption

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/plotoptions.py

    r25065 r25816  
    7474
    7575            #if alloptions flag is on, apply to all plots
    76             if (allflag and 'data' not in rawlist[i][0] and '  #' not in rawlist[i][0]):
     76            if (allflag and 'data' not in rawlist[i][0] and '#' not in rawlist[i][0]):
    7777
    7878                for j in range(numberofplots):
    7979                    self.list[j].addfield(rawlist[i][0], rawlist[i][1])
    8080
    81             elif '  #' in rawlist[i][0]:
     81            elif '#' in rawlist[i][0]:
    8282                #get subplots associated
    83                 string = rawlist[i][0].split('  #')
     83                string = rawlist[i][0].split('#')
    8484                plotnums = string[-1].split(', ')
    8585                field = string[0]
     
    9393                        continue
    9494
    95                     # '  #all'
     95                    # '#all'
    9696                    elif 'all' in plotnum:
    9797                        for j in range(numberofplots):
    9898                            self.list[j].addfield(field, rawlist[i][1])
    9999
    100                     # '  #i - j'
     100                    # '#i-j'
    101101                    elif '-' in plotnum:
    102                         nums = plotnum.split(' - ')
     102                        nums = plotnum.split('-')
    103103                        if len(nums) != 2:
    104104                            continue
Note: See TracChangeset for help on using the changeset viewer.