Changeset 3351


Ignore:
Timestamp:
Apr 17, 2018 7:57:47 PM (4 years ago)
Author:
toby
Message:

fix publication plot in Q & d-space modes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3349 r3351  
    32463246    legLbl = []
    32473247    legLine = []
     3248    obsartist = None
    32483249    for i,l in enumerate(Plot.lines):
    32493250        lbl = l.get_label()
     
    32563257            mew = l.get_mew()
    32573258            if lbl[1:] == 'obs':
     3259                obsartist = l
    32583260                siz = float(plotOpt['markerSiz'])
    32593261                marker = plotOpt['markerSym']
     
    33013303    rsig = np.sqrt(Pattern[1][2])
    33023304    rsig[rsig>1] = 1
    3303     ax1.plot(Pattern[1][0],Pattern[1][5]*rsig,color='k')
     3305    if obsartist:
     3306        ax1.plot(obsartist.get_xdata(),Pattern[1][5]*rsig,color='k')
    33043307    if legLine:
    33053308        ax0.legend(legLine,legLbl,loc='best',prop={'size':plotOpt['labelSize']})
Note: See TracChangeset for help on using the changeset viewer.