Changeset 3975


Ignore:
Timestamp:
May 13, 2019 8:34:12 AM (2 years ago)
Author:
vondreele
Message:

some fixup of fprime - more still to do

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fprime.py

    r3968 r3975  
    338338        try:
    339339            if rePlot:
    340                 asb,bsb = self.Page.get_children()[1:]
     340                asb,bsb = self.Page.figure.get_axes()[1:3]
    341341                axylim = asb.get_xlim(),asb.get_ylim()
    342342                bxylim = bsb.get_xlim(),bsb.get_ylim()
     
    350350            newPlot = True
    351351        self.Page.Choice = (' key press','g: toggle grid',)
    352         self.Page.keyPress = self.OnKeyPress   
     352        self.Page.keyPress = self.OnKeyPress
    353353        self.fplot.set_visible(False)
    354         ax = self.Page.figure.add_subplot(211)
    355         ax.clear()
     354        ax,bx = self.Page.figure.subplots(1,2)
     355        ax.cla()
     356        bx.cla()
    356357        ax.set_title('Resonant Scattering Factors',x=0,ha='left')
    357358        ax.set_ylabel("f ',"+' f ", e-',fontsize=14)
     
    379380        if self.FPPS:
    380381            ax.legend(loc='best')
    381         bx = self.Page.figure.add_subplot(212)
    382382        self.Page.figure.subplots_adjust(hspace=0.25)
    383         bx.clear()
    384383        if self.ifWave:
    385384            bx.set_title('%s%s%6.4f%s'%('Form factors (',r'$\lambda=$',self.Wave,r'$\AA)$'),x=0,ha='left')
Note: See TracChangeset for help on using the changeset viewer.