Changeset 440006a in sasview


Ignore:
Timestamp:
Jan 11, 2013 12:20:11 PM (11 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:
3540156
Parents:
be0fe41
Message:

Added color for atom P

File:
1 edited

Legend:

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

    rbe0fe41 r440006a  
    569569        """ 
    570570        color_dic = {'H':'blue', 'D':'purple', 'N': 'orange',  
    571                      'O':'red', 'C':'green', 'Other':'k'} 
     571                     'O':'red', 'C':'green', 'P':'cyan', 'Other':'k'} 
    572572        graph_title = self.file_name 
    573573        graph_title += "   3D SLD Profile " 
     
    634634         
    635635        # Plot selective points in color 
     636        other_color = numpy.ones(len(output.pix_symbol), dtype='bool') 
    636637        for key in color_dic.keys(): 
    637638            chosen_color = output.pix_symbol == key 
    638             other_color = numpy.ones(len(output.pix_symbol), dtype='bool') 
    639             if chosen_color.any(): 
     639            if numpy.any(chosen_color): 
    640640                other_color = other_color  & (chosen_color != True) 
    641641                color = color_dic[key] 
     
    644644                        markeredgecolor=color, markersize=m_size, label=key)  
    645645        # Plot All others         
    646         if other_color.any(): 
     646        if numpy.any(other_color): 
     647            print len(other_color), output.pix_symbol[other_color] 
    647648            ax.plot(pos_x[other_color], pos_z[other_color], pos_y[other_color],  
    648649                    marker, c="k", alpha=0.5, markeredgecolor="k",  
Note: See TracChangeset for help on using the changeset viewer.