Ignore:
Timestamp:
Jan 17, 2013 2:56:51 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
1c6c1b7
Parents:
cd89c6f
Message:

Grid on/off for the simple plot except for 3d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/SimplePlot.py

    r6550b64 rfad6056  
    6767        wx.EVT_MENU(self, id, self.OnCopyFigureMenu) 
    6868 
    69         if self.data2D.__class__.__name__ != 'NoneType': 
     69        if self.dimension != 3: 
    7070            slicerpop.AppendSeparator() 
    7171            id = wx.NewId() 
     
    227227        self.plotpanel.resizing = False 
    228228     
     229    def im_show(self, img): 
     230        """ 
     231        Show background image 
     232        :Param img: [imread(path) from matplotlib.pyplot] 
     233        """ 
     234        self.plotpanel.subplot.imshow(img) 
     235         
    229236    def set_schedule(self, schedule=False):  
    230237        """ 
Note: See TracChangeset for help on using the changeset viewer.