Changeset 2212 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 14, 2016 3:44:39 PM (7 years ago)
Author:
vondreele
Message:

Implement 'abc*' as one of the 'Common' cell transformations.
Transformations now transforms atom positions & Uijs
Fix problem in ImageGUI where load controls didn't update the image plot correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2211 r2212  
    126126            attribs = (wx.glcanvas.WX_GL_DOUBLEBUFFER,)
    127127            self.canvas = wx.glcanvas.GLCanvas(self,-1,attribList=attribs,**kwargs)
    128         # create GL context for wx > 2.8
     128        # create GL context
    129129        i,j= wx.__version__.split('.')[0:2]
    130130        if int(i)+int(j)/10. > 2.8:
     
    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)
    11161116        Page.canvas.SwapBuffers()
    11171117
     
    56565656                RenderBackbone(Backbone,BackboneColor,bondR)
    56575657#        print time.time()-time0
    5658         if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
     5658        if Page.context: Page.canvas.SetCurrent(Page.context)
    56595659        Page.canvas.SwapBuffers()
    56605660       
     
    59635963            RenderBonds(x,y,z,Bonds[iat],0.05,color)
    59645964            RenderLabel(x,y,z,'  '+atNames[iat],matRot)
    5965         if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
     5965        if Page.context: Page.canvas.SetCurrent(Page.context)
    59665966        Page.canvas.SwapBuffers()
    59675967
     
    63496349            if Page.labels:
    63506350                RenderLabel(x,y,z,'  '+AtNames[iat],matRot)
    6351         if Page.context: Page.canvas.SetCurrent(Page.context)    # wx 2.9 fix
     6351        if Page.context: Page.canvas.SetCurrent(Page.context)
    63526352        Page.canvas.SwapBuffers()
    63536353
Note: See TracChangeset for help on using the changeset viewer.