Changeset 52e0f2d in sasview for plottools/src/danse


Ignore:
Timestamp:
Jan 24, 2012 4:50:26 PM (13 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:
d2843a9
Parents:
0b705915
Message:

trying to fix the problem in plots on MAC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plottools/src/danse/common/plottools/PlotPanel.py

    r053f983 r52e0f2d  
    2222from matplotlib.font_manager import FontProperties 
    2323 
    24 try: 
    25     from mpl_toolkits.mplot3d import Axes3D 
    26 except: 
    27     logging.error("PlotPanel could not import Axes3D") 
     24from mpl_toolkits.mplot3d import Axes3D 
    2825#from matplotlib import cm 
    2926#from matplotlib.ticker import LinearLocator, FixedLocator, FormatStrFormatter 
     
    138135        #self.SetBackgroundColour(parent.GetBackgroundColour()) 
    139136        self._resizeflag = True 
    140         self._SetInitialSize()  
     137        self._SetSize()  
    141138        self.subplot = self.figure.add_subplot(111) 
    142139        self.figure.subplots_adjust(left=0.2, bottom=.2) 
     
    14281425                   cmap=self.cmap, zmin=zmin_2D_temp, 
    14291426                   zmax=zmax_2D_temp) 
    1430         self.figure.canvas.draw_idle() 
    14311427       
    14321428    def image(self, data, qx_data, qy_data, xmin, xmax, ymin, ymax,  
     
    15261522        cb.update_bruteforce(im) 
    15271523        cb.set_label('$' + self.scale + '$') 
     1524        self.figure.canvas.draw_idle() 
    15281525     
    15291526    def _build_matrix(self): 
Note: See TracChangeset for help on using the changeset viewer.