Changeset 19444


Ignore:
Timestamp:
07/16/15 04:15:09 (10 years ago)
Author:
cborstad
Message:

BUG: wrong variable passed to fontsize argument

File:
1 edited

Legend:

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

    r19435 r19444  
    269269        #text {{{
    270270        if options.exist('text'):
    271                 text=options.getfieldvalue('text')
    272                 textx=options.getfieldvalue('textx')
    273                 texty=options.getfieldvalue('texty')
    274                 textcolor=options.getfieldvalue('textcolor')
    275                 textweight=options.getfieldvalue('textweight')
    276                 textrotation=options.getfieldvalue('textrotation')
    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)
     271            text=options.getfieldvalue('text')
     272            textx=options.getfieldvalue('textx')
     273            texty=options.getfieldvalue('texty')
     274            textcolor=options.getfieldvalue('textcolor')
     275            textweight=options.getfieldvalue('textweight')
     276            textrotation=options.getfieldvalue('textrotation')
     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=size,color=color,weight=weight,rotation=rotation)
    280280        #}}}
    281281
Note: See TracChangeset for help on using the changeset viewer.