Changeset d4184e0 in sasview for plottools/src


Ignore:
Timestamp:
Feb 11, 2012 3:16:42 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:
bef2377
Parents:
7cb14d0
Message:

fixed a problem with 3d colorbar for mpl<1.0

File:
1 edited

Legend:

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

    rdcb0834 rd4184e0  
    4040PLOT_3D_ON = False 
    4141try: 
    42     from mpl_toolkits.mplot3d import Axes3D 
     42    from mpl_toolkits.mplot3d.axes3d import Axes3D 
    4343    PLOT_3D_ON = True 
    4444except: 
     
    15121512                cbax = fig.add_axes([0.84,0.1,0.02,0.8]) 
    15131513                ax = fig.gca(projection='3d') 
    1514                 #ax.disable_mouse_rotation() 
    15151514                if len(X) > 60: 
    15161515                    ax.disable_mouse_rotation() 
     
    15181517                # mpl < 1.0.0 
    15191518                if PLOT_3D_ON: 
     1519                    #Todo: Find out why another clear need here 
     1520                    self.subplot.figure.clear() 
    15201521                    ax =  Axes3D(self.subplot.figure) 
    15211522                    if len(X) > 60: 
     
    15321533             
    15331534        if cbax == None: 
    1534             cb =self.subplot.figure.colorbar(im, shrink=0.6, aspect=20) 
     1535            ax.set_frame_on(False) 
     1536            cb =self.subplot.figure.colorbar(im, shrink=0.8, aspect=20) 
    15351537        else: 
    15361538            cb =self.subplot.figure.colorbar(im, cax=cbax) 
Note: See TracChangeset for help on using the changeset viewer.