Changeset 3323


Ignore:
Timestamp:
Mar 28, 2018 6:22:44 PM (6 years ago)
Author:
toby
Message:

fix image plotting at expense of 'w' plots; note code to be obsoleted

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3320 r3323  
    429429                Plot = Page.figure.gca()          #get previous plot
    430430                limits = [Plot.get_xlim(),Plot.get_ylim()] # save previous limits
    431                 if len(Axes)>1:
    432                     limits[1] = Axes[1].get_ylim()
     431                #======================================================================
     432                # this is needed for PWDR (etc) "w" plots, but breaks image plotting
     433                # removed for now (BHT)
     434                #if len(Axes)>1:
     435                #    limits[1] = Axes[1].get_ylim()
     436                #======================================================================
    433437#                    print('Axes[1]',Axes[1].get_ylim())
    434438#                print ('Plot limits:',limits,Axes)
  • trunk/imports/G2img_1TIF.py

    r3195 r3323  
    7070            import scipy.misc
    7171            self.Image = scipy.misc.imread(filename,flatten=True)
     72            # for scipy 1.2 & later  scipy.misc.imread will be removed
     73            # with note to use imageio.imread instead
     74            # (N.B. scipy.misc.imread uses PIL/pillow perhaps better to just use pillow)
    7275            self.Npix = self.Image.size
    7376            if ParentFrame:
Note: See TracChangeset for help on using the changeset viewer.