Changeset 3892 for trunk/GSASIIplot.py
- Timestamp:
- Apr 12, 2019 12:35:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r3891 r3892 8697 8697 SXYZ = np.reshape(np.inner(SXYZ,invModel[:3,:3].T)+VP[nxs,nxs,:],(-1,3)) 8698 8698 Z = np.reshape(G2mth.getRhos(SXYZ,rho),(npts,npts)) 8699 plt.rcParams['figure.facecolor'] = (1.,1.,1.,.5) 8699 8700 plt.cla() 8700 8701 plt.contour(Z,colors='k',linewidths=1) … … 8706 8707 img, (width, height) = agg.print_to_buffer() 8707 8708 Zimg = np.frombuffer(img, np.uint8).reshape((height, width, 4)) 8708 Zimg[:,:,3] = 128 #sets alpha to 25%8709 # Zimg[:,:,3] = 128 #sets alpha to 25% 8709 8710 RenderViewPlane(msize*eplane,Zimg,width,height) 8710 8711
Note: See TracChangeset
for help on using the changeset viewer.