def plot(self, colorbar=True, cb_orientation='horizontal',
             tick_interval=[60, 60], minor_tick_interval=[20, 20],
             xlabel='Longitude', ylabel='Latitude',
             axes_labelsize=9, tick_labelsize=8, show=True, fname=None,
             **kwargs):
        """
        Plot the three vector components of the gravity field and the gravity
        disturbance.

        Usage
        -----
        x.plot([tick_interval, minor_tick_interval, xlabel, ylabel,
                colorbar, cb_orientation, cb_label, axes_labelsize,
                tick_labelsize, show, fname, **kwargs])

        Parameters
        ----------
        tick_interval : list or tuple, optional, default = [60, 60]
            Intervals to use when plotting the major x and y ticks. If set to
            None, major ticks will not be plotted.
        minor_tick_interval : list or tuple, optional, default = [20, 20]
            Intervals to use when plotting the minor x and y ticks. If set to
            None, minor ticks will not be plotted.
        xlabel : str, optional, default = 'Longitude'
            Label for the longitude axis.
        ylabel : str, optional, default = 'Latitude'
            Label for the latitude axis.
        colorbar : bool, optional, default = True
            If True, plot a colorbar.
        cb_orientation : str, optional, default = 'vertical'
            Orientation of the colorbar: either 'vertical' or 'horizontal'.
        cb_label : str, optional, default = None
            Text label for the colorbar.
        axes_labelsize : int, optional, default = 9
            The font size for the x and y axes labels.
        tick_labelsize : int, optional, default = 8
            The font size for the x and y tick labels.
        show : bool, optional, default = True
            If True, plot the image to the screen.
        fname : str, optional, default = None
            If present, and if axes is not specified, save the image to the
            specified file.
        kwargs : optional
            Keyword arguements that will be sent to the SHGrid.plot()
            and plt.imshow() methods.
        """
        if colorbar is True:
            if cb_orientation == 'horizontal':
                scale = 0.8
            else:
                scale = 0.5
        else:
            scale = 0.6
        figsize = (_mpl.rcParams['figure.figsize'][0],
                    _mpl.rcParams['figure.figsize'][0] * scale)

        fig, ax = _plt.subplots(2, 2, figsize=figsize)
        self.plot_rad(colorbar=colorbar, cb_orientation=cb_orientation,
                      ax=ax.flat[0], tick_interval=tick_interval,
                      xlabel=xlabel, ylabel=ylabel,
                      axes_labelsize=axes_labelsize,
                      tick_labelsize=tick_labelsize,
                      minor_tick_interval=minor_tick_interval,
                      **kwargs)
        self.plot_theta(colorbar=colorbar, cb_orientation=cb_orientation,
                        ax=ax.flat[1], tick_interval=tick_interval,
                        xlabel=xlabel, ylabel=ylabel,
                        axes_labelsize=axes_labelsize,
                        tick_labelsize=tick_labelsize,
                        minor_tick_interval=minor_tick_interval,
                        **kwargs)
        self.plot_phi(colorbar=colorbar, cb_orientation=cb_orientation,
                      ax=ax.flat[2], tick_interval=tick_interval,
                      xlabel=xlabel, ylabel=ylabel,
                      axes_labelsize=axes_labelsize,
                      minor_tick_interval=minor_tick_interval,
                      tick_labelsize=tick_labelsize,**kwargs)
        self.plot_total(colorbar=colorbar, cb_orientation=cb_orientation,
                        ax=ax.flat[3], tick_interval=tick_interval,
                        xlabel=xlabel, ylabel=ylabel,
                        axes_labelsize=axes_labelsize,
                        tick_labelsize=tick_labelsize,
                        minor_tick_interval=minor_tick_interval,
                        **kwargs)
        fig.tight_layout(pad=0.5)

        if show:
            fig.show()

        if fname is not None:
            fig.savefig(fname)
        return fig, ax
def plot ( self , colorbar = True , cb_orientation = 'horizontal' , tick_interval = [ 60 , 60 ] , minor_tick_interval = [ 20 , 20 ] , xlabel = 'Longitude' , ylabel = 'Latitude' , axes_labelsize = 9 , tick_labelsize = 8 , show = True , fname = None , ** kwargs ) : if colorbar is True : if cb_orientation == 'horizontal' : scale = 0.8 else : scale = 0.5 else : scale = 0.6 figsize = ( _mpl . rcParams [ 'figure.figsize' ] [ 0 ] , _mpl . rcParams [ 'figure.figsize' ] [ 0 ] * scale ) fig , ax = _plt . subplots ( 2 , 2 , figsize = figsize ) self . plot_rad ( colorbar = colorbar , cb_orientation = cb_orientation , ax = ax . flat [ 0 ] , tick_interval = tick_interval , xlabel = xlabel , ylabel = ylabel , axes_labelsize = axes_labelsize , tick_labelsize = tick_labelsize , minor_tick_interval = minor_tick_interval , ** kwargs ) self . plot_theta ( colorbar = colorbar , cb_orientation = cb_orientation , ax = ax . flat [ 1 ] , tick_interval = tick_interval , xlabel = xlabel , ylabel = ylabel , axes_labelsize = axes_labelsize , tick_labelsize = tick_labelsize , minor_tick_interval = minor_tick_interval , ** kwargs ) self . plot_phi ( colorbar = colorbar , cb_orientation = cb_orientation , ax = ax . flat [ 2 ] , tick_interval = tick_interval , xlabel = xlabel , ylabel = ylabel , axes_labelsize = axes_labelsize , minor_tick_interval = minor_tick_interval , tick_labelsize = tick_labelsize , ** kwargs ) self . plot_total ( colorbar = colorbar , cb_orientation = cb_orientation , ax = ax . flat [ 3 ] , tick_interval = tick_interval , xlabel = xlabel , ylabel = ylabel , axes_labelsize = axes_labelsize , tick_labelsize = tick_labelsize , minor_tick_interval = minor_tick_interval , ** kwargs ) fig . tight_layout ( pad = 0.5 ) if show : fig . show ( ) if fname is not None : fig . savefig ( fname ) return fig , ax
Plot the three vector components of the gravity field and the gravity
        disturbance.

        Usage
        -----
        x.plot([tick_interval, minor_tick_interval, xlabel, ylabel,
                colorbar, cb_orientation, cb_label, axes_labelsize,
                tick_labelsize, show, fname, **kwargs])

        Parameters
        ----------
        tick_interval : list or tuple, optional, default = [60, 60]
            Intervals to use when plotting the major x and y ticks. If set to
            None, major ticks will not be plotted.
        minor_tick_interval : list or tuple, optional, default = [20, 20]
            Intervals to use when plotting the minor x and y ticks. If set to
            None, minor ticks will not be plotted.
        xlabel : str, optional, default = 'Longitude'
            Label for the longitude axis.
        ylabel : str, optional, default = 'Latitude'
            Label for the latitude axis.
        colorbar : bool, optional, default = True
            If True, plot a colorbar.
        cb_orientation : str, optional, default = 'vertical'
            Orientation of the colorbar: either 'vertical' or 'horizontal'.
        cb_label : str, optional, default = None
            Text label for the colorbar.
        axes_labelsize : int, optional, default = 9
            The font size for the x and y axes labels.
        tick_labelsize : int, optional, default = 8
            The font size for the x and y tick labels.
        show : bool, optional, default = True
            If True, plot the image to the screen.
        fname : str, optional, default = None
            If present, and if axes is not specified, save the image to the
            specified file.
        kwargs : optional
            Keyword arguements that will be sent to the SHGrid.plot()
            and plt.imshow() methods.