def deflection_plot(self, ax, v_min=None, v_max=None, axis=0, with_caustics=False, image_name_list=None):
        """

        :param kwargs_lens:
        :param kwargs_else:
        :return:
        """

        alpha1, alpha2 = self._lensModel.alpha(self._x_grid, self._y_grid, self._kwargs_lens)
        alpha1 = util.array2image(alpha1)
        alpha2 = util.array2image(alpha2)
        if axis == 0:
            alpha = alpha1
        else:
            alpha = alpha2
        im = ax.matshow(alpha, origin='lower', extent=[0, self._frame_size, 0, self._frame_size],
                        vmin=v_min, vmax=v_max, cmap=self._cmap, alpha=0.5)
        ax.get_xaxis().set_visible(False)
        ax.get_yaxis().set_visible(False)
        ax.autoscale(False)
        scale_bar(ax, self._frame_size, dist=1, text='1"', color='k')
        coordinate_arrows(ax, self._frame_size, self._coords, color='k', arrow_size=self._arrow_size)
        text_description(ax, self._frame_size, text="Deflection model", color="k", backgroundcolor='w')
        divider = make_axes_locatable(ax)
        cax = divider.append_axes("right", size="5%", pad=0.05)
        cb = plt.colorbar(im, cax=cax)
        cb.set_label(r'arcsec', fontsize=15)
        if with_caustics is True:
            ra_crit_list, dec_crit_list = self._critical_curves()
            ra_caustic_list, dec_caustic_list = self._caustics()
            plot_line_set(ax, self._coords, ra_caustic_list, dec_caustic_list, color='b')
            plot_line_set(ax, self._coords, ra_crit_list, dec_crit_list, color='r')
        ra_image, dec_image = self._imageModel.PointSource.image_position(self._kwargs_else, self._kwargs_lens)
        image_position_plot(ax, self._coords, ra_image, dec_image, image_name_list=image_name_list)
        source_position_plot(ax, self._coords, self._kwargs_source)
        return ax
def deflection_plot ( self , ax , v_min = None , v_max = None , axis = 0 , with_caustics = False , image_name_list = None ) : alpha1 , alpha2 = self . _lensModel . alpha ( self . _x_grid , self . _y_grid , self . _kwargs_lens ) alpha1 = util . array2image ( alpha1 ) alpha2 = util . array2image ( alpha2 ) if axis == 0 : alpha = alpha1 else : alpha = alpha2 im = ax . matshow ( alpha , origin = 'lower' , extent = [ 0 , self . _frame_size , 0 , self . _frame_size ] , vmin = v_min , vmax = v_max , cmap = self . _cmap , alpha = 0.5 ) ax . get_xaxis ( ) . set_visible ( False ) ax . get_yaxis ( ) . set_visible ( False ) ax . autoscale ( False ) scale_bar ( ax , self . _frame_size , dist = 1 , text = '1"' , color = 'k' ) coordinate_arrows ( ax , self . _frame_size , self . _coords , color = 'k' , arrow_size = self . _arrow_size ) text_description ( ax , self . _frame_size , text = "Deflection model" , color = "k" , backgroundcolor = 'w' ) divider = make_axes_locatable ( ax ) cax = divider . append_axes ( "right" , size = "5%" , pad = 0.05 ) cb = plt . colorbar ( im , cax = cax ) cb . set_label ( r'arcsec' , fontsize = 15 ) if with_caustics is True : ra_crit_list , dec_crit_list = self . _critical_curves ( ) ra_caustic_list , dec_caustic_list = self . _caustics ( ) plot_line_set ( ax , self . _coords , ra_caustic_list , dec_caustic_list , color = 'b' ) plot_line_set ( ax , self . _coords , ra_crit_list , dec_crit_list , color = 'r' ) ra_image , dec_image = self . _imageModel . PointSource . image_position ( self . _kwargs_else , self . _kwargs_lens ) image_position_plot ( ax , self . _coords , ra_image , dec_image , image_name_list = image_name_list ) source_position_plot ( ax , self . _coords , self . _kwargs_source ) return ax
:param kwargs_lens:
        :param kwargs_else:
        :return: