Changeset 4790 for trunk


Ignore:
Timestamp:
Feb 1, 2021 5:06:20 PM (9 months ago)
Author:
vondreele
Message:

fix aspect for hkl plots - reflections now circles independent of window boundaries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4789 r4790  
    970970            Page.Choice += ('w: select |DFsq|/sig','1: select |DFsq|>sig','3: select |DFsq|>3sig',)
    971971    try:
    972         Plot.set_box_aspect((1,1,1))
    973 #                Plot.set_aspect('equal')
     972        Plot.set_aspect(aspect='equal')
    974973    except: #broken in mpl 3.1.1; worked in mpl 3.0.3
    975974        pass
     
    995994    sumFo = 0.
    996995    sumDF = 0.
    997 #    GSASIIpath.IPyBreak()
    998996    for refl in HKLref:
    999997        H = refl[:3]
     
    53265324            try:
    53275325                Plot.set_box_aspect((1,1,1))
    5328 #                Plot.set_aspect('equal')
    53295326            except: #broken in mpl 3.1.1; worked in mpl 3.0.3
    53305327                pass
     
    60166013            try:
    60176014                Plot.set_box_aspect((1,1,1))
    6018 #                Plot.set_aspect('equal')
    60196015            except: #broken in mpl 3.1.1; worked in mpl 3.0.3
    60206016                pass
    6021 #            Plot.autoscale()
    60226017        if plotType == 'Size':
    6023             Plot.set_title('Crystallite size for '+phase+'\n'+coeff[0]+' model')
     6018            Plot.set_title('Crystallite size for '+phase+'; '+coeff[0]+' model')
    60246019            Plot.set_xlabel(r'X, $\mu$m')
    60256020            Plot.set_ylabel(r'Y, $\mu$m')
    60266021            Plot.set_zlabel(r'Z, $\mu$m')
    60276022        else:   
    6028             Plot.set_title(r'$\mu$strain for '+phase+'\n'+coeff[0]+' model')
     6023            Plot.set_title(r'$\mu$strain for '+phase+'; '+coeff[0]+' model')
    60296024            Plot.set_xlabel(r'X, $\mu$strain')
    60306025            Plot.set_ylabel(r'Y, $\mu$strain')
     
    62916286                try:
    62926287                    Plot.set_box_aspect((1,1,1))
    6293     #                Plot.set_aspect('equal')
    62946288                except: #broken in mpl 3.1.1; worked in mpl 3.0.3
    62956289                    pass
Note: See TracChangeset for help on using the changeset viewer.