Changeset 440006a in sasview for calculatorview/src
- Timestamp:
- Jan 11, 2013 12:20:11 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:
- 3540156
- Parents:
- be0fe41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/src/sans/perspectives/calculator/gen_scatter_panel.py
rbe0fe41 r440006a 569 569 """ 570 570 color_dic = {'H':'blue', 'D':'purple', 'N': 'orange', 571 'O':'red', 'C':'green', ' Other':'k'}571 'O':'red', 'C':'green', 'P':'cyan', 'Other':'k'} 572 572 graph_title = self.file_name 573 573 graph_title += " 3D SLD Profile " … … 634 634 635 635 # Plot selective points in color 636 other_color = numpy.ones(len(output.pix_symbol), dtype='bool') 636 637 for key in color_dic.keys(): 637 638 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): 640 640 other_color = other_color & (chosen_color != True) 641 641 color = color_dic[key] … … 644 644 markeredgecolor=color, markersize=m_size, label=key) 645 645 # Plot All others 646 if other_color.any(): 646 if numpy.any(other_color): 647 print len(other_color), output.pix_symbol[other_color] 647 648 ax.plot(pos_x[other_color], pos_z[other_color], pos_y[other_color], 648 649 marker, c="k", alpha=0.5, markeredgecolor="k",
Note: See TracChangeset
for help on using the changeset viewer.