Changeset 3892


Ignore:
Timestamp:
Apr 12, 2019 12:35:16 PM (3 years ago)
Author:
vondreele
Message:

set "facecolor" alpha to 0.5 for contour plots; lines are now alpha=1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3891 r3892  
    86978697                SXYZ = np.reshape(np.inner(SXYZ,invModel[:3,:3].T)+VP[nxs,nxs,:],(-1,3))
    86988698                Z = np.reshape(G2mth.getRhos(SXYZ,rho),(npts,npts))
     8699                plt.rcParams['figure.facecolor'] = (1.,1.,1.,.5)
    86998700                plt.cla()
    87008701                plt.contour(Z,colors='k',linewidths=1)
     
    87068707                img, (width, height) = agg.print_to_buffer()
    87078708                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%
    87098710                RenderViewPlane(msize*eplane,Zimg,width,height)
    87108711               
Note: See TracChangeset for help on using the changeset viewer.