Changeset 1de85f4 in sasview


Ignore:
Timestamp:
Jan 23, 2013 5:52:09 PM (12 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:
11363ee
Parents:
9e9e9a5
Message:

vector arrow draw bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py

    rfdb134b9 r1de85f4  
    585585        self._update_model_params() 
    586586        if is_draw: 
    587             wx.CallAfter(self.sld_draw, False) 
     587            wx.CallAfter(self.sld_draw, None, False) 
    588588     
    589589    def _update_model_params(self): 
     
    618618            pass 
    619619     
    620     def sld_draw(self, has_arrow=False, event=None): 
     620    def sld_draw(self, event=None, has_arrow=True): 
    621621        """ 
    622622        Draw 3D sld profile 
    623623        """ 
    624         graph_title = self.file_name 
    625         graph_title += "   3D SLD Profile " 
    626          
    627624        flag = self.parent.check_omfpanel_inputs() 
    628625        if not flag: 
     
    655652                raise 
    656653        panel.dimension = 3    
    657         self._sld_plot_helper(ax, output, has_arrow) 
     654        graph_title = self._sld_plot_helper(ax, output, has_arrow) 
    658655        # Use y, z axes (in mpl 3d) as z, y axes  
    659656        # that consistent with our SANS detector coords. 
     
    682679        marker = ',' 
    683680        m_size = 2 
     681        graph_title = self.file_name 
     682        graph_title += "   3D SLD Profile " 
    684683        pos_x = output.pos_x 
    685684        pos_y = output.pos_y 
     
    739738        # V. Draws magnetic vectors 
    740739        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 
    742742            def _draw_arrow(input=None, elapsed=0.1): 
    743743                """ 
     
    780780                status_type = 'stop' 
    781781                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 
    782789  
    783790    def set_input_params(self): 
     
    19231930        sld draw 
    19241931        """ 
    1925         self.panel.sld_draw(has_arrow=False) 
     1932        self.panel.sld_draw(event=None, has_arrow=False) 
    19261933         
    19271934    def on_save_file(self, event): 
Note: See TracChangeset for help on using the changeset viewer.