Ignore:
Timestamp:
02/01/19 03:29:03 (6 years ago)
Author:
bdef
Message:

CHG: adding missing directories and cleaning code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/py3/plot/checkplotoptions.py

    r23670 r23677  
    2929                if 'on' in options.getfieldvalue('showsection','on'):
    3030                        options.changefieldvalue('showsection',4)
    31         # }}}   
     31        # }}}
    3232        # {{{ smooth values
    3333        if options.exist('smooth'):
     
    5454                textlist.extend([text] if isinstance(text,str) else text)
    5555                numtext=len(textlist)
    56                 # text position 
     56                # text position
    5757                textpos=options.getfieldvalue('textposition',[0.5,0.5])
    5858                if not isinstance(textpos,list):
    5959                        raise Exception('textposition should be passed as a list')
    6060                if any(isinstance(i,list) for i in textpos):
    61                     textx=[item[0] for item in textpos]
    62                     texty=[item[1] for item in textpos]
    63                 else:
    64                     textx=[textpos[0]]
    65                     texty=[textpos[1]]
     61                        textx=[item[0] for item in textpos]
     62                        texty=[item[1] for item in textpos]
     63                else:
     64                        textx=[textpos[0]]
     65                        texty=[textpos[1]]
    6666                if len(textx)!=numtext or len(texty)!=numtext:
    6767                        raise Exception('textposition should contain one list of x,y vertices for every text instance')
Note: See TracChangeset for help on using the changeset viewer.