Changeset 392
- Timestamp:
- Oct 13, 2011 2:12:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r391 r392 1392 1392 1393 1393 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 1394 1401 if event.xdata and event.ydata: #avoid out of frame errors 1395 1402 xpos = int(event.xdata+.5) … … 1417 1424 acolor = mpl.cm.get_cmap(self.ContourColor) 1418 1425 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) 1419 1430 colorBar = Page.figure.colorbar(Img) 1420 1431 Plot.set_title('Variance-Covariance matrix from LS refinement') 1421 1432 Plot.set_xlabel('Variable number') 1422 Plot.set_ylabel('Variable n umber')1433 Plot.set_ylabel('Variable name') 1423 1434 Page.canvas.draw() 1424 1435
Note: See TracChangeset
for help on using the changeset viewer.