Changeset 4649 for trunk/GSASIIplot.py
- Timestamp:
- Nov 5, 2020 11:13:18 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4648 r4649 8410 8410 G2frame.G2plotNB.status.SetStatusText('New quaternion: %.2f+, %.2fi+ ,%.2fj+, %.2fk'%(Q[0],Q[1],Q[2],Q[3]),1) 8411 8411 Draw('move') 8412 elif drawingData ['showSlice']:8412 elif drawingData.get('showSlice'): 8413 8413 View = GL.glGetIntegerv(GL.GL_VIEWPORT) 8414 8414 Tx,Ty,Tz = drawingData['viewPoint'][0] … … 8416 8416 Cx,Cy,Cz = GLU.gluUnProject(newxy[0],View[3]-newxy[1],tz) 8417 8417 rho = G2mth.getRho([Cx,Cy,Cz],mapData) 8418 if drawingData ['showSlice']in [1,3]:8418 if drawingData.get('showSlice') in [1,3]: 8419 8419 contlevels = contourSet.get_array() 8420 8420 contstr = str(contlevels).strip('[]') … … 9471 9471 plt.rcParams['figure.figsize'] = [6.0,6.0] 9472 9472 plt.cla() 9473 if drawingData ['showSlice']in [1,]:9473 if drawingData.get('showSlice') in [1,]: 9474 9474 contourSet = plt.contour(Z,colors='k',linewidths=1) 9475 if drawingData ['showSlice']in [2,3]:9475 if drawingData.get('showSlice') in [2,3]: 9476 9476 acolor = mpl.cm.get_cmap(drawingData.get('contourColor','Paired')) 9477 9477 plt.imshow(ZU,aspect='equal',cmap=acolor,alpha=0.75,interpolation='bilinear') 9478 if drawingData ['showSlice']in [3,]:9478 if drawingData.get('showSlice') in [3,]: 9479 9479 contourSet = plt.contour(ZU,colors='k',linewidths=1) 9480 9480 plt.axis("off")
Note: See TracChangeset
for help on using the changeset viewer.