# Path: osrefl/viewers/plot_slicer.py
# def MultiView(data, step, n, extent=None, titles = None,
#               axisLabel = None, vlimit = None):
# 
#     app = wx.PySimpleApp()
# 
#     infoCol = PlotInfo(data,vlimit,titles,extent,step,n,axisLabel)
#     controller = PlotCtrler(app,infoCol)
#     app.MainLoop()
#     app.Destroy()
# 
#     return


from numpy import *
from pylab import figure, show, subplot, imshow
from . import approximations
from osrefl.viewers.plot_slicer import MultiView
from . import resolution
        from DWBAGISANS import DWBA_form
            from DWBA_Cuda import DWBA_form
            from DWBA import DWBA_form
        from numpy import sum
import osrefl.viewers.view as view
import osrefl.loaders.scale
import osrefl.model.sample_prep
import numpy as np
import pickle
        return

    def viewCorUncor(self):
        '''
        **Overview:**

            Uses the magPlotSlicer.py module to view both the resolution
            corrected and uncorrected models. This module includes tools for:

            * Slice averaging for the data vertically and horizontally
            * Viewing linear and log plots of both 2D slices and 3D image plots
            * Altering of the color axis scale

        '''
        if size(self.results) == 4:
            titles = ['++,uncor','--,uncor','+-,uncor','-+,uncor',
                      '++,cor','--,cor','+-,cor','-+,cor']
            data = [[self.results[0],'Theory'],[self.results[1],'Theory'],
                    [self.results[2],'Theory'],[self.results[3],'Theory'],
                    [self.corrected_results[0],'Theory'],
                    [self.corrected_results[1],'Theory'],
                    [self.corrected_results[2],'Theory'],
                    [self.corrected_results[3],'Theory']]
        else:
            titles = ['uncorrected','corrected']

            data = [[self.results,'Theory1'],[self.corrected_results,'Theory2']]


        extent = self.space.getExtent()

# Path: osrefl/viewers/plot_slicer.py
# def MultiView(data, step, n, extent=None, titles = None,
#               axisLabel = None, vlimit = None):
# 
#     app = wx.PySimpleApp()
# 
#     infoCol = PlotInfo(data,vlimit,titles,extent,step,n,axisLabel)
#     controller = PlotCtrler(app,infoCol)
#     app.MainLoop()
#     app.Destroy()
# 
#     return


# Path: osrefl/theory/scatter.py
from numpy import *
from pylab import figure, show, subplot, imshow
from . import approximations
from osrefl.viewers.plot_slicer import MultiView
from . import resolution
        from DWBAGISANS import DWBA_form
            from DWBA_Cuda import DWBA_form
            from DWBA import DWBA_form
        from numpy import sum
import osrefl.viewers.view as view
import osrefl.loaders.scale
import osrefl.model.sample_prep
import numpy as np
import pickle

        return

    def viewCorUncor(self):
        '''
        **Overview:**

            Uses the magPlotSlicer.py module to view both the resolution
            corrected and uncorrected models. This module includes tools for:

            * Slice averaging for the data vertically and horizontally
            * Viewing linear and log plots of both 2D slices and 3D image plots
            * Altering of the color axis scale

        '''
        if size(self.results) == 4:
            titles = ['++,uncor','--,uncor','+-,uncor','-+,uncor',
                      '++,cor','--,cor','+-,cor','-+,cor']
            data = [[self.results[0],'Theory'],[self.results[1],'Theory'],
                    [self.results[2],'Theory'],[self.results[3],'Theory'],
                    [self.corrected_results[0],'Theory'],
                    [self.corrected_results[1],'Theory'],
                    [self.corrected_results[2],'Theory'],
                    [self.corrected_results[3],'Theory']]
        else:
            titles = ['uncorrected','corrected']

            data = [[self.results,'Theory1'],[self.corrected_results,'Theory2']]


        extent = self.space.getExtent()

        MultiView(data,[self.space.q_step[0],self.space.q_step[2]],