Changeset 19435


Ignore:
Timestamp:
07/13/15 08:48:11 (10 years ago)
Author:
cborstad
Message:

CHG: changed text fontsize naming for consistency

Location:
issm/trunk-jpl/src/m/plot
Files:
2 edited

Legend:

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

    r19431 r19435  
    272272                textx=options.getfieldvalue('textx')
    273273                texty=options.getfieldvalue('texty')
    274                 textsize=options.getfieldvalue('textsize')
    275274                textcolor=options.getfieldvalue('textcolor')
    276275                textweight=options.getfieldvalue('textweight')
    277276                textrotation=options.getfieldvalue('textrotation')
    278                 for label,x,y,size,color,weight,rotation in zip(text,textx,texty,textsize,textcolor,textweight,textrotation):
    279                         ax.text(x,y,label,transform=ax.transAxes,fontsize=size,color=color,weight=weight,rotation=rotation)
     277                textfontsize=options.getfieldvalue('textfontsize')
     278                for label,x,y,size,color,weight,rotation in zip(text,textx,texty,textfontsize,textcolor,textweight,textrotation):
     279                        ax.text(x,y,label,transform=ax.transAxes,fontsize=textfontsize,color=color,weight=weight,rotation=rotation)
    280280        #}}}
    281281
  • issm/trunk-jpl/src/m/plot/checkplotoptions.py

    r19426 r19435  
    7171
    7272                # font size
    73                 if options.exist('textsize'):
    74                         textsize=options.getfieldvalue('textsize',12)
     73                if options.exist('textfontsize'):
     74                        textfontsize=options.getfieldvalue('textfontsize',12)
    7575                        sizelist=[]
    76                         sizelist.extend(textsize if isinstance(textsize,list) else [textsize])
     76                        sizelist.extend(textsize if isinstance(textfontsize,list) else [textfontsize])
    7777                else:
    7878                        sizelist=[12]
     
    113113                options.addfield('textx',textx)
    114114                options.addfield('texty',texty)
    115                 options.changefieldvalue('textsize',sizelist)
     115                options.changefieldvalue('textfontsize',sizelist)
    116116                options.changefieldvalue('textcolor',colorlist)
    117117                options.changefieldvalue('textweight',weightlist)
Note: See TracChangeset for help on using the changeset viewer.