Changeset 3349
- Timestamp:
- Apr 17, 2018 7:39:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r3347 r3349 3056 3056 ''' 3057 3057 hcfigure = mpl.figure.Figure(dpi=plotOpt['dpi'],figsize=(plotOpt['width'],plotOpt['height'])) 3058 # hccanvas = hcCanvas(hcfigure)3059 3058 CopyRietveldPlot(G2frame,Pattern,Plot,Page,hcfigure) 3060 3059 longFormatName,typ = plotOpt['format'].split(',') … … 3064 3063 dlg.EndModal(wx.ID_OK) 3065 3064 elif fil: 3065 if hcfigure.canvas is None: 3066 if GSASIIpath.GetConfigValue('debug'): print('creating canvas') 3067 hccanvas = hcCanvas(hcfigure) 3066 3068 hcfigure.savefig(fil,format=typ.strip()) 3067 3069 dlg.EndModal(wx.ID_OK) … … 3254 3256 mew = l.get_mew() 3255 3257 if lbl[1:] == 'obs': 3256 siz = plotOpt['markerSiz']3258 siz = float(plotOpt['markerSiz']) 3257 3259 marker = plotOpt['markerSym'] 3258 mew = plotOpt['markerWid']3260 mew = float(plotOpt['markerWid']) 3259 3261 else: 3260 lineWid = plotOpt['lineWid']3262 lineWid = float(plotOpt['lineWid']) 3261 3263 c = plotOpt['colors'].get(lbl[1:],l.get_color()) 3262 3264 if sum(c) == 4.0: continue … … 3275 3277 c = plotOpt['colors'].get(lbl,l.get_color()) 3276 3278 #siz = l.get_markersize() 3277 siz = plotOpt['tickSiz']3279 siz = float(plotOpt['tickSiz']) 3278 3280 #mew = l.get_mew() 3279 mew = plotOpt['tickWid']3281 mew = float(plotOpt['tickWid']) 3280 3282 if sum(c) == 4.0: continue 3281 3283 if not plotOpt['legend'].get(lbl): … … 3296 3298 verticalalignment='bottom', 3297 3299 horizontalalignment=l.get_horizontalalignment(), 3298 fontsize= plotOpt['labelSize'])3300 fontsize=float(plotOpt['labelSize'])) 3299 3301 rsig = np.sqrt(Pattern[1][2]) 3300 3302 rsig[rsig>1] = 1
Note: See TracChangeset
for help on using the changeset viewer.