Changeset 392


Ignore:
Timestamp:
Oct 13, 2011 2:12:16 PM (12 years ago)
Author:
vondreele
Message:

put parmNames on y-axis of covariance plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r391 r392  
    13921392
    13931393    def OnMotion(event):
     1394        if event.button:
     1395            ytics = imgAx.get_yticks()
     1396            ytics = np.where(ytics<len(varyList),ytics,-1)
     1397            ylabs = [np.where(0<=i ,varyList[int(i)],' ') for i in ytics]
     1398#            ylabs = [varyList[int(i)] for i in ytics[:-1]]
     1399            imgAx.set_yticklabels(ylabs)
     1400           
    13941401        if event.xdata and event.ydata:                 #avoid out of frame errors
    13951402            xpos = int(event.xdata+.5)
     
    14171424    acolor = mpl.cm.get_cmap(self.ContourColor)
    14181425    Img = Plot.imshow(covArray,aspect='equal',cmap=acolor,interpolation='nearest',origin='lower')
     1426    imgAx = Img.get_axes()
     1427    ytics = imgAx.get_yticks()
     1428    ylabs = [varyList[int(i)] for i in ytics[:-1]]
     1429    imgAx.set_yticklabels(ylabs)
    14191430    colorBar = Page.figure.colorbar(Img)
    14201431    Plot.set_title('Variance-Covariance matrix from LS refinement')
    14211432    Plot.set_xlabel('Variable number')
    1422     Plot.set_ylabel('Variable number')
     1433    Plot.set_ylabel('Variable name')
    14231434    Page.canvas.draw()
    14241435
Note: See TracChangeset for help on using the changeset viewer.