Changeset 438


Ignore:
Timestamp:
Dec 9, 2011 3:58:56 PM (10 years ago)
Author:
vondreele
Message:

fix constraint dialogs for large nos. of histograms

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r437 r438  
    10191019        for phase in Phases:
    10201020            plegend += '\n p:: = '+str(Phases[phase]['pId'])+':: for '+phase
     1021            count = 0
    10211022            for histogram in Phases[phase]['Histograms']:
    1022                 phlegend += '\n p:h: = '+str(Phases[phase]['pId'])+':'+str(Histograms[histogram]['hId'])+': for '+phase+' in '+histogram
     1023                if count < 3:
     1024                    phlegend += '\n p:h: = '+str(Phases[phase]['pId'])+':'+str(Histograms[histogram]['hId'])+': for '+phase+' in '+histogram
     1025                else:
     1026                    phlegend += '\n ... etc.'
     1027                    break
     1028                count += 1
     1029        count = 0
    10231030        for histogram in Histograms:
    1024             hlegend += '\n :h: = :'+str(Histograms[histogram]['hId'])+': for '+histogram
     1031            if count < 3:
     1032                hlegend += '\n :h: = :'+str(Histograms[histogram]['hId'])+': for '+histogram
     1033            else:
     1034                hlegend += '\n ... etc.'
     1035                break
     1036            count += 1
    10251037        return plegend,hlegend,phlegend
    10261038       
Note: See TracChangeset for help on using the changeset viewer.