Changeset 3966
- Timestamp:
- May 11, 2019 5:37:53 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r3962 r3966 8916 8916 return 8917 8917 Rmax = np.max(rho)*drawingData['contourMax'] 8918 from matplotlib.backends.backend_agg import FigureCanvasAgg8919 8918 import matplotlib.pyplot as plt 8920 8919 Model = GL.glGetDoublev(GL.GL_MODELVIEW_MATRIX) … … 8941 8940 plt.subplots_adjust(bottom=0.,top=1.,left=0.,right=1.,wspace=0.,hspace=0.) 8942 8941 canvas = plt.get_current_fig_manager().canvas 8943 agg = canvas.switch_backends( FigureCanvasAgg)8942 agg = canvas.switch_backends(hcCanvas) 8944 8943 agg.draw() 8945 8944 img, (width, height) = agg.print_to_buffer() … … 8947 8946 plt.rcParams['figure.facecolor'] = (1.,1.,1.,1.) 8948 8947 plt.rcParams['figure.figsize'] = oldSize 8948 # agg = canvas.switch_backends(Canvas) 8949 8949 RenderViewPlane(msize*eplane,Zimg,width,height) 8950 8950
Note: See TracChangeset
for help on using the changeset viewer.