Changeset 4224 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jan 2, 2020 5:30:48 AM (3 years ago)
Author:
vondreele
Message:

put try/except around Plot.set_aspect(aspect='equal'). It worked in mpl 3.03 but is broken in mpl 3.1.1 (most recent)
Maybe somebody will fix it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4213 r4224  
    10461046        if 'HKLF' in Name:
    10471047            Page.Choice += ('w: select |DFsq|/sig','1: select |DFsq|>sig','3: select |DFsq|>3sig',)
    1048     Plot.set_aspect(aspect='equal')
     1048    try:
     1049        Plot.set_aspect(aspect='equal')
     1050    except:  #broken in mpl 3.1.1; worked in mpl 3.0.3
     1051        pass
    10491052   
    10501053    Type = Data['Type']           
     
    57395742            Plot.set_ylim3d(XYZlim)
    57405743            Plot.set_zlim3d(XYZlim)
    5741             Plot.set_aspect('equal')
     5744            try:
     5745                Plot.set_aspect('equal')
     5746            except: #broken in mpl 3.1.1; worked in mpl 3.0.3
     5747                pass
     5748#            Plot.autoscale()
    57425749        if plotType == 'Size':
    57435750            Plot.set_title('Crystallite size for '+phase+'\n'+coeff[0]+' model')
     
    60086015                Plot.set_ylim3d(XYZlim)
    60096016                Plot.set_zlim3d(XYZlim)
    6010                 Plot.set_aspect('equal')                       
     6017                try:
     6018                    Plot.set_aspect('equal')
     6019                except: #broken in mpl 3.1.1; worked in mpl 3.0.3
     6020                    pass                       
    60116021                Plot.set_title('%d %d %d Pole distribution for %s'%(h,k,l,pName))
    60126022                Plot.set_xlabel(r'X, MRD')
Note: See TracChangeset for help on using the changeset viewer.