Changeset 4380


Ignore:
Timestamp:
Mar 25, 2020 9:35:22 AM (19 months ago)
Author:
toby
Message:

avoid missing _reverse_cmap_spec in MPL 3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4366 r4380  
    249249    0.41568627953529358, 0.41568627953529358), (0.90909090909090906,
    250250    1.0, 1.0), (1.0, 0.69411766529083252, 0.69411766529083252)]}
     251#This can be done on request for other colors
    251252mpl.cm.register_cmap('Paired',data=_Old_Paired_data,lut=256)
    252 mpl.cm.register_cmap('Paired_r',data=mpl.cm._reverse_cmap_spec(_Old_Paired_data),lut=256)
    253 #This can be done on request for other colors
     253try:
     254    mpl.cm.register_cmap('Paired_r',data=mpl.cm._reverse_cmap_spec(_Old_Paired_data),lut=256)
     255except:
     256    if GSASIIpath.GetConfigValue('debug'):
     257       print('MPL register_cmap for Paired_r failed')
    254258
    255259# options for publication-quality Rietveld plots
Note: See TracChangeset for help on using the changeset viewer.