Changeset 19435
- Timestamp:
- 07/13/15 08:48:11 (10 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/applyoptions.py
r19431 r19435 272 272 textx=options.getfieldvalue('textx') 273 273 texty=options.getfieldvalue('texty') 274 textsize=options.getfieldvalue('textsize')275 274 textcolor=options.getfieldvalue('textcolor') 276 275 textweight=options.getfieldvalue('textweight') 277 276 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) 280 280 #}}} 281 281 -
issm/trunk-jpl/src/m/plot/checkplotoptions.py
r19426 r19435 71 71 72 72 # font size 73 if options.exist('text size'):74 text size=options.getfieldvalue('textsize',12)73 if options.exist('textfontsize'): 74 textfontsize=options.getfieldvalue('textfontsize',12) 75 75 sizelist=[] 76 sizelist.extend(textsize if isinstance(text size,list) else [textsize])76 sizelist.extend(textsize if isinstance(textfontsize,list) else [textfontsize]) 77 77 else: 78 78 sizelist=[12] … … 113 113 options.addfield('textx',textx) 114 114 options.addfield('texty',texty) 115 options.changefieldvalue('text size',sizelist)115 options.changefieldvalue('textfontsize',sizelist) 116 116 options.changefieldvalue('textcolor',colorlist) 117 117 options.changefieldvalue('textweight',weightlist)
Note:
See TracChangeset
for help on using the changeset viewer.