Changeset 3beadede in sasview


Ignore:
Timestamp:
Mar 26, 2019 7:59:54 AM (5 years ago)
Author:
awashington
Branches:
ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
Children:
85503bc
Parents:
4acca8c
Message:

Add more titles and legends to corfunc plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Corfunc/CorfuncPerspective.py

    rf7e6b30 r3beadede  
    5353        self.axes.set_xlabel("Q [$\AA^{-1}$]") 
    5454        self.axes.set_ylabel("I(Q) [cm$^{-1}$]") 
     55        self.axes.set_title("Scattering data") 
    5556        self.fig.tight_layout() 
    5657 
     
    6061 
    6162        if self.data: 
    62             self.axes.plot(self.data.x, self.data.y) 
     63            # self.axes.plot(self.data.x, self.data.y, label="Experimental Data") 
     64            self.axes.errorbar(self.data.x, self.data.y, yerr=self.data.dy, label="Experimental Data") 
    6365            self.axes.axvline(qmin) 
    6466            self.axes.axvline(qmax1) 
     
    6870            self.axes.set_ylim(min(self.data.y) / 2, 
    6971                               max(self.data.y) * 1.5 - 0.5 * min(self.data.y)) 
     72 
    7073        if self.extrap: 
    71             self.axes.plot(self.extrap.x, self.extrap.y) 
     74            self.axes.plot(self.extrap.x, self.extrap.y, label="Extrapolation") 
     75 
     76        if self.data or self.extrap: 
     77            self.axes.legend() 
    7278 
    7379        self.draw() 
     
    8793        self.axes.set_xlabel("Z [$\AA$]") 
    8894        self.axes.set_ylabel("Correlation") 
     95        self.axes.set_title("Real Space Correlations") 
    8996        self.fig.tight_layout() 
    9097 
Note: See TracChangeset for help on using the changeset viewer.