Changeset 3963 for trunk/fprime.py


Ignore:
Timestamp:
May 9, 2019 8:48:07 PM (2 years ago)
Author:
vondreele
Message:

change pylab to pyplot in fprime & absorb
undo the addition of S301 to the set for 3m1 Laue groups. Did bad things even if the fit was "improved". Can be reinstated if I can work out what went wrong.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fprime.py

    r3826 r3963  
    1010import numpy as np
    1111import matplotlib as mpl
    12 import pylab
     12import matplotlib.pyplot as plt
    1313import sys
    1414import GSASIIpath
     
    237237       
    238238    def OnFPRIMEExitMenu(self, event):
    239         pylab.close('all')
     239        plt.close('all')
    240240        self.Close()
    241241        self.Destroy()
     
    341341            newPlot = False
    342342        except:
    343             self.fplot = pylab.figure(facecolor='white',figsize=(8,8))  #BTW: default figsize is (8,6)
     343            self.fplot = plt.figure(facecolor='white',figsize=(8,8))  #BTW: default figsize is (8,6)
    344344            self.fplot.canvas.set_window_title('X-Ray Resonant Scattering')
    345345            self.fplot.canvas.mpl_connect('pick_event', self.OnPick)
     
    391391        DE = E*self.Eres                         #smear by defined source resolution
    392392        StlMax = min(2.0,math.sin(80.0*math.pi/180.)/Wave)
    393         Stl = pylab.arange(0.,StlMax,.01)
     393        Stl = np.arange(0.,StlMax,.01)
    394394        Ymax = 0.0
    395395        for i,Elem in enumerate(self.Elems):
     
    428428        if newPlot:
    429429            newPlot = False
    430             pylab.show()
     430            plt.show()
    431431        else:
    432432            if rePlot:
     
    441441                bxylim = []
    442442                tb.push_current()
    443             pylab.draw()
     443            plt.draw()
    444444       
    445445    def OnPick(self, event):
Note: See TracChangeset for help on using the changeset viewer.