Changeset 053f983 in sasview


Ignore:
Timestamp:
Jan 23, 2012 8:01:37 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:
0b705915
Parents:
9a74c7d
Message:

trying to fix a 3d problem with mpl < 1.0

File:
1 edited

Legend:

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

    r9a74c7d r053f983  
    14951495 
    14961496            self.subplot.figure.subplots_adjust(left=0.1, right=.8, bottom=.1)   
     1497 
     1498            X = self.x_bins[0:-1] 
     1499            Y = self.y_bins[0:-1] 
     1500            X, Y = numpy.meshgrid(X, Y) 
     1501             
    14971502            try: 
    14981503                # mpl >= 1.0.0 
     
    15001505                #ax.disable_mouse_rotation() 
    15011506                cbax = self.subplot.figure.add_axes([0.84,0.1,0.02,0.8]) 
     1507                if len(X) > 60: 
     1508                    ax.disable_mouse_rotation() 
    15021509            except: 
    15031510                # mpl < 1.0.0 
    15041511                ax =  Axes3D(self.subplot.figure) 
     1512                if len(X) > 60: 
     1513                    ax.cla() 
    15051514                cbax = None 
    1506  
    1507             X = self.x_bins[0:-1] 
    1508             Y = self.y_bins[0:-1] 
    1509             X, Y = numpy.meshgrid(X, Y) 
    1510             if len(X) > 60: 
    1511                 ax.disable_mouse_rotation() 
     1515             
    15121516            im = ax.plot_surface(X, Y, output, rstride=1, cstride=1, cmap=cmap, 
    15131517                                   linewidth=0, antialiased=False) 
Note: See TracChangeset for help on using the changeset viewer.