Changeset 1de85f4 in sasview for calculatorview/src/sans
- Timestamp:
- Jan 23, 2013 5:52:09 PM (12 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:
- 11363ee
- Parents:
- 9e9e9a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
rfdb134b9 r1de85f4 585 585 self._update_model_params() 586 586 if is_draw: 587 wx.CallAfter(self.sld_draw, False)587 wx.CallAfter(self.sld_draw, None, False) 588 588 589 589 def _update_model_params(self): … … 618 618 pass 619 619 620 def sld_draw(self, has_arrow=False, event=None):620 def sld_draw(self, event=None, has_arrow=True): 621 621 """ 622 622 Draw 3D sld profile 623 623 """ 624 graph_title = self.file_name625 graph_title += " 3D SLD Profile "626 627 624 flag = self.parent.check_omfpanel_inputs() 628 625 if not flag: … … 655 652 raise 656 653 panel.dimension = 3 657 self._sld_plot_helper(ax, output, has_arrow)654 graph_title = self._sld_plot_helper(ax, output, has_arrow) 658 655 # Use y, z axes (in mpl 3d) as z, y axes 659 656 # that consistent with our SANS detector coords. … … 682 679 marker = ',' 683 680 m_size = 2 681 graph_title = self.file_name 682 graph_title += " 3D SLD Profile " 684 683 pos_x = output.pos_x 685 684 pos_y = output.pos_y … … 739 738 # V. Draws magnetic vectors 740 739 if has_arrow and len(pos_x) > 0: 741 graph_title += "w/ Arrows" 740 graph_title += " - Magnetic Vector as Arrow -" 741 panel = self.plot_frame.plotpanel 742 742 def _draw_arrow(input=None, elapsed=0.1): 743 743 """ … … 780 780 status_type = 'stop' 781 781 self._status_info(msg, status_type) 782 msg = "Arrow Drawing is in progress..." 783 status_type = 'progress' 784 self._status_info(msg, status_type) 785 draw_out = CalcGen(input=ax, 786 completefn=_draw_arrow, updatefn=self._update) 787 draw_out.queue() 788 return graph_title 782 789 783 790 def set_input_params(self): … … 1923 1930 sld draw 1924 1931 """ 1925 self.panel.sld_draw( has_arrow=False)1932 self.panel.sld_draw(event=None, has_arrow=False) 1926 1933 1927 1934 def on_save_file(self, event):
Note: See TracChangeset
for help on using the changeset viewer.