def magnification_plot(self, ax, v_min=-10, v_max=10, image_name_list=None, **kwargs):
        """

        :param ax:
        :param v_min:
        :param v_max:
        :param with_caustics:
        :param kwargs: kwargs to send to matplotlib.pyplot.matshow()
        :return:
        """
        if not 'cmap' in kwargs:
            kwargs['cmap'] = self._cmap
        if not 'alpha' in kwargs:
            kwargs['alpha'] = 0.5
        mag_result = util.array2image(self._lensModel.magnification(self._x_grid, self._y_grid, self._kwargs_lens))
        im = ax.matshow(mag_result, origin='lower', extent=[0, self._frame_size, 0, self._frame_size],
                        vmin=v_min, vmax=v_max, **kwargs)
        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="Magnification 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'det(A$^{-1}$)', fontsize=15)
        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, color='k', image_name_list=image_name_list)
        source_position_plot(ax, self._coords, self._kwargs_source)
        return ax
def magnification_plot ( self , ax , v_min = - 10 , v_max = 10 , image_name_list = None , ** kwargs ) : if not 'cmap' in kwargs : kwargs [ 'cmap' ] = self . _cmap if not 'alpha' in kwargs : kwargs [ 'alpha' ] = 0.5 mag_result = util . array2image ( self . _lensModel . magnification ( self . _x_grid , self . _y_grid , self . _kwargs_lens ) ) im = ax . matshow ( mag_result , origin = 'lower' , extent = [ 0 , self . _frame_size , 0 , self . _frame_size ] , vmin = v_min , vmax = v_max , ** kwargs ) 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 = "Magnification 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'det(A$^{-1}$)' , fontsize = 15 ) 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 , color = 'k' , image_name_list = image_name_list ) source_position_plot ( ax , self . _coords , self . _kwargs_source ) return ax
:param ax:
        :param v_min:
        :param v_max:
        :param with_caustics:
        :param kwargs: kwargs to send to matplotlib.pyplot.matshow()
        :return: