- Timestamp:
- Feb 8, 2012 4:35:53 PM (13 years ago)
- 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:
- 9fafa39
- Parents:
- 08648c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plottools/src/danse/common/plottools/PlotPanel.py
r89441d1 r1b023334 21 21 from binder import BindArtist 22 22 from matplotlib.font_manager import FontProperties 23 23 try: 24 from mpl_toolkits.mplot3d import Axes3D 25 PLOT_3D_ON = True 26 except: 27 PLOT_3D_ON = False 24 28 #from matplotlib import cm 25 29 #from matplotlib.ticker import LinearLocator, FixedLocator, FormatStrFormatter … … 1502 1506 try: 1503 1507 # mpl >= 1.0.0 1504 ax = self.subplot.figure.gca(projection='3d') 1508 fig = self.subplot.figure 1509 cbax = fig.add_axes([0.84,0.1,0.02,0.8]) 1510 ax = fig.gca(projection='3d') 1505 1511 #ax.disable_mouse_rotation() 1506 cbax = self.subplot.figure.add_axes([0.84,0.1,0.02,0.8])1507 1512 if len(X) > 60: 1508 1513 ax.disable_mouse_rotation() 1509 1514 except: 1510 1515 # mpl < 1.0.0 1511 try: 1512 from mpl_toolkits.mplot3d import Axes3D 1513 except: 1514 logging.error("PlotPanel could not import Axes3D") 1515 ax = Axes3D(self.subplot.figure) 1516 if len(X) > 60: 1517 ax.cla() 1518 cbax = None 1516 if PLOT_3D_ON: 1517 ax = Axes3D(self.subplot.figure) 1518 if len(X) > 60: 1519 ax.cla() 1520 cbax = None 1521 else: 1522 raise 1519 1523 1520 1524 im = ax.plot_surface(X, Y, output, rstride=1, cstride=1, cmap=cmap,
Note: See TracChangeset
for help on using the changeset viewer.