Changeset bef2377 in sasview for plottools


Ignore:
Timestamp:
Feb 13, 2012 8:43:16 AM (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:
80f56a3
Parents:
d4184e0
Message:

another trial for 3d mac64 fix

File:
1 edited

Legend:

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

    rd4184e0 rbef2377  
    3737import copy 
    3838import numpy 
    39  
    40 PLOT_3D_ON = False 
    41 try: 
    42     from mpl_toolkits.mplot3d.axes3d  import Axes3D 
    43     PLOT_3D_ON = True 
    44 except: 
    45     pass 
    4639 
    4740def show_tree(obj,d=0): 
     
    15151508                    ax.disable_mouse_rotation() 
    15161509            except: 
    1517                 # mpl < 1.0.0 
    1518                 if PLOT_3D_ON: 
     1510                try: 
     1511                    # mpl < 1.0.0 
     1512                    from mpl_toolkits.mplot3d  import Axes3D 
    15191513                    #Todo: Find out why another clear need here 
    15201514                    self.subplot.figure.clear() 
     
    15231517                        ax.cla() 
    15241518                    cbax = None 
    1525                 else: 
     1519                except: 
    15261520                    raise 
    15271521             
Note: See TracChangeset for help on using the changeset viewer.