Changeset 2211 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 13, 2016 3:16:53 PM (7 years ago)
Author:
vondreele
Message:

some work on Transform Phase menu item.
uncomment the if Page.context lines in OGL plots to make multistructure plots behave.
Trap trying to plot reflections when none available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2209 r2211  
    11131113        RenderDots(HKL,RC)
    11141114        time0 = time.time()
    1115 #        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
     1115        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
    11161116        Page.canvas.SwapBuffers()
    11171117
     
    49604960                    G2frame.G2plotNB.status.SetStatusText('New quaternion: %.2f+, %.2fi+ ,%.2fj+, %.2fk'%(Q[0],Q[1],Q[2],Q[3]),1)
    49614961                Draw('move')
    4962            
    49634962       
    49644963    def OnMouseWheel(event):
     
    56575656                RenderBackbone(Backbone,BackboneColor,bondR)
    56585657#        print time.time()-time0
    5659 #        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
     5658        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
    56605659        Page.canvas.SwapBuffers()
    56615660       
     
    57125711    except:
    57135712        pass
    5714     Draw('main')
     5713    wx.CallAfter(Draw,'main')
    57155714    if firstCall: Draw('main') # draw twice the first time that graphics are displayed
    57165715
     
    59645963            RenderBonds(x,y,z,Bonds[iat],0.05,color)
    59655964            RenderLabel(x,y,z,'  '+atNames[iat],matRot)
    5966 #        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
     5965        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
    59675966        Page.canvas.SwapBuffers()
    59685967
     
    63506349            if Page.labels:
    63516350                RenderLabel(x,y,z,'  '+AtNames[iat],matRot)
    6352 #        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
     6351        if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
    63536352        Page.canvas.SwapBuffers()
    63546353
Note: See TracChangeset for help on using the changeset viewer.