Changeset 9ea4577e in sasview for plottools/src/danse/common


Ignore:
Timestamp:
Feb 14, 2012 9:51:13 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:
091c702
Parents:
3d293917
Message:

revert main 3d from weeks ago

File:
1 edited

Legend:

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

    rbef2377 r9ea4577e  
    15021502            try: 
    15031503                # mpl >= 1.0.0 
    1504                 fig = self.subplot.figure 
    1505                 cbax = fig.add_axes([0.84,0.1,0.02,0.8]) 
    1506                 ax = fig.gca(projection='3d') 
     1504                ax = self.subplot.figure.gca(projection='3d') 
     1505                #ax.disable_mouse_rotation() 
     1506                cbax = self.subplot.figure.add_axes([0.84,0.1,0.02,0.8]) 
    15071507                if len(X) > 60: 
    15081508                    ax.disable_mouse_rotation() 
    15091509            except: 
     1510                # mpl < 1.0.0 
    15101511                try: 
    1511                     # mpl < 1.0.0 
    1512                     from mpl_toolkits.mplot3d  import Axes3D 
    1513                     #Todo: Find out why another clear need here 
    1514                     self.subplot.figure.clear() 
    1515                     ax =  Axes3D(self.subplot.figure) 
    1516                     if len(X) > 60: 
    1517                         ax.cla() 
    1518                     cbax = None 
     1512                    from mpl_toolkits.mplot3d import Axes3D 
    15191513                except: 
    1520                     raise 
    1521              
     1514                    logging.error("PlotPanel could not import Axes3D") 
     1515                self.subplot.figure.clear() 
     1516                ax =  Axes3D(self.subplot.figure) 
     1517                if len(X) > 60: 
     1518                    ax.cla() 
     1519                cbax = None 
     1520 
    15221521            im = ax.plot_surface(X, Y, output, rstride=1, cstride=1, cmap=cmap, 
    15231522                                   linewidth=0, antialiased=False) 
Note: See TracChangeset for help on using the changeset viewer.