Changeset 3076


Ignore:
Timestamp:
Sep 14, 2017 9:30:16 AM (4 years ago)
Author:
vondreele
Message:

fix multiplot coloring to cover color range of G2frame.ContourColor?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3070 r3076  
    113113    0.41568627953529358, 0.41568627953529358), (0.90909090909090906,
    114114    1.0, 1.0), (1.0, 0.69411766529083252, 0.69411766529083252)]}
    115 mpl.cm.register_cmap('Paired',data=_Old_Paired_data,lut=128)
    116 mpl.cm.register_cmap('Paired_r',data=mpl.cm._reverse_cmap_spec(_Old_Paired_data),lut=128)
     115mpl.cm.register_cmap('Paired',data=_Old_Paired_data,lut=256)
     116mpl.cm.register_cmap('Paired_r',data=mpl.cm._reverse_cmap_spec(_Old_Paired_data),lut=256)
    117117#This can be done on request for other colors
    118118
     
    20542054            else:
    20552055                Plot.set_ylabel(r'$Normalized\ intensity$',fontsize=16)
    2056     mcolors = mpl.cm.ScalarMappable(mpl.cm.get_cmap(G2frame.ContourColor))
     2056    mpl.rcParams['image.cmap'] = G2frame.ContourColor
     2057    mcolors = mpl.cm.ScalarMappable()       #wants only default as defined in previous line!!
    20572058    if G2frame.Contour:
    20582059        ContourZ = []
Note: See TracChangeset for help on using the changeset viewer.