Changeset 3584


Ignore:
Timestamp:
Sep 4, 2018 10:39:44 AM (3 years ago)
Author:
toby
Message:

more fixes to masking for Grace export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3582 r3584  
    31893189                fp.write("{} {}\n".format(Plot.get_xlim()[0],0))
    31903190                fp.write("{} {}\n".format(Plot.get_xlim()[1],0))
    3191             elif not ma.all(l.get_xdata().mask):
     3191            elif not ma.any(l.get_xdata().mask):
    31923192                for x,y in zip(l.get_xdata(),l.get_ydata()):
    31933193                    fp.write("{} {}\n".format(x,y))
     
    32693269        fp.write("@type xy\n")
    32703270        l = obsartist
    3271         if ma.all(l.get_xdata().mask):
     3271        if ma.any(l.get_xdata().mask):
    32723272            for x,y,m in zip(l.get_xdata(),Pattern[1][5]*rsig,l.get_xdata().mask):
    32733273                if not m: fp.write("{} {}\n".format(x,y))
Note: See TracChangeset for help on using the changeset viewer.