Changeset 9ea4577e in sasview
- Timestamp:
- Feb 14, 2012 9:51:13 AM (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:
- 091c702
- Parents:
- 3d293917
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plottools/src/danse/common/plottools/PlotPanel.py
rbef2377 r9ea4577e 1502 1502 try: 1503 1503 # mpl >= 1.0.0 1504 fig = self.subplot.figure1505 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]) 1507 1507 if len(X) > 60: 1508 1508 ax.disable_mouse_rotation() 1509 1509 except: 1510 # mpl < 1.0.0 1510 1511 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 1519 1513 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 1522 1521 im = ax.plot_surface(X, Y, output, rstride=1, cstride=1, cmap=cmap, 1523 1522 linewidth=0, antialiased=False) -
sansguiframe/src/sans/guiframe/data_panel.py
r3d293917 r9ea4577e 482 482 self.data_menu.Append(self.plot3d_id, name, msg) 483 483 wx.EVT_MENU(self, self.plot3d_id, self.on_plot_3d) 484 if IS_MAC: 485 if sys.maxsize > 2**32: 486 self.data_menu.Enable(self.self.plot3d_id, False) 484 487 485 self.editmask_id = wx.NewId() 488 486 name = "Edit Mask"
Note: See TracChangeset
for help on using the changeset viewer.