(
        self,
        map,
        vec2pix_func,
        vmin=None,
        vmax=None,
        badval=UNSEEN,
        badcolor="gray",
        bgcolor="white",
        cmap=None,
        norm=None,
        rot=None,
        coord=None,
        alpha=None,
        **kwds
    )
return img
Project a map on the SphericalProjAxes.

        Parameters
        ----------
        map : array-like
          The map to project.
        vec2pix_func : function
          The function describing the pixelisation.
        vmin, vmax : float, scalars
          min and max value to use instead of min max of the map
        badval : float
          The value of the bad pixels
        badcolor : str
          Color to use to plot bad values
        bgcolor : str
          Color to use for background
        cmap : a color map
          The colormap to use (see matplotlib.cm)
        rot : sequence
          In the form (lon, lat, psi) (unit: degree):the center of the map is
          at (lon, lat) and rotated by angle psi around that direction.
        coord : {'G', 'E', 'C', None}
          The coordinate system of the map ('G','E' or 'C'), rotate
          the map if different from the axes coord syst.
        alpha : array-like
          The alpha (transparency) map.

        Notes
        -----
        Other keywords are transmitted to :func:`matplotlib.Axes.imshow`
Project a map on the SphericalProjAxes.
Project a map on the SphericalProjAxes .
def projmap(
        self,
        map,
        vec2pix_func,
        vmin=None,
        vmax=None,
        badval=UNSEEN,
        badcolor="gray",
        bgcolor="white",
        cmap=None,
        norm=None,
        rot=None,
        coord=None,
        alpha=None,
        **kwds
    ):
        """Project a map on the SphericalProjAxes.

        Parameters
        ----------
        map : array-like
          The map to project.
        vec2pix_func : function
          The function describing the pixelisation.
        vmin, vmax : float, scalars
          min and max value to use instead of min max of the map
        badval : float
          The value of the bad pixels
        badcolor : str
          Color to use to plot bad values
        bgcolor : str
          Color to use for background
        cmap : a color map
          The colormap to use (see matplotlib.cm)
        rot : sequence
          In the form (lon, lat, psi) (unit: degree):the center of the map is
          at (lon, lat) and rotated by angle psi around that direction.
        coord : {'G', 'E', 'C', None}
          The coordinate system of the map ('G','E' or 'C'), rotate
          the map if different from the axes coord syst.
        alpha : array-like
          The alpha (transparency) map.

        Notes
        -----
        Other keywords are transmitted to :func:`matplotlib.Axes.imshow`
        """
        img = self.proj.projmap(map, vec2pix_func, rot=rot, coord=coord)
        w = ~(np.isnan(img) | np.isinf(img) | pixelfunc.mask_bad(img, badval=badval))
        if alpha is not None:
            alpha_img = self.proj.projmap(alpha, vec2pix_func, rot=rot, coord=coord)
            alpha_img[alpha_img == -np.inf] = 0
            alpha = plt.Normalize()(alpha_img)
        try:
            if vmin is None:
                vmin = img[w].min()
        except ValueError:
            vmin = 0.0
        try:
            if vmax is None:
                vmax = img[w].max()
        except ValueError:
            vmax = 0.0
        if vmin > vmax:
            vmin = vmax
        if vmin == vmax:
            vmin -= 1.0
            vmax += 1.0
        cm, nn = get_color_table(
            vmin, vmax, img[w], cmap=cmap, norm=norm, badcolor=badcolor, bgcolor=bgcolor
        )
        ext = self.proj.get_extent()
        img = np.ma.masked_values(img, badval)
        aximg = self.imshow(
            img,
            extent=ext,
            cmap=cm,
            norm=nn,
            interpolation="nearest",
            origin="lower",
            alpha=alpha,
            **kwds
        )
        xmin, xmax, ymin, ymax = self.proj.get_extent()
        self.set_xlim(xmin, xmax)
        self.set_ylim(ymin, ymax)
        return img
def projmap ( self , map , vec2pix_func , vmin = None , vmax = None , badval = UNSEEN , badcolor = "gray" , bgcolor = "white" , cmap = None , norm = None , rot = None , coord = None , alpha = None , * * kwds ) : img = self . proj . projmap ( map , vec2pix_func , rot = rot , coord = coord ) w = ~ ( np . isnan ( img ) | np . isinf ( img ) | pixelfunc . mask_bad ( img , badval = badval ) ) if alpha is not None : alpha_img = self . proj . projmap ( alpha , vec2pix_func , rot = rot , coord = coord ) alpha_img [ alpha_img == - np . inf ] = 0 alpha = plt . Normalize ( ) ( alpha_img ) try : if vmin is None : vmin = img [ w ] . min ( ) except ValueError : vmin = 0.0 try : if vmax is None : vmax = img [ w ] . max ( ) except ValueError : vmax = 0.0 if vmin > vmax : vmin = vmax if vmin == vmax : vmin -= 1.0 vmax += 1.0 cm , nn = get_color_table ( vmin , vmax , img [ w ] , cmap = cmap , norm = norm , badcolor = badcolor , bgcolor = bgcolor ) ext = self . proj . get_extent ( ) img = np . ma . masked_values ( img , badval ) aximg = self . imshow ( img , extent = ext , cmap = cm , norm = nn , interpolation = "nearest" , origin = "lower" , alpha = alpha , * * kwds ) xmin , xmax , ymin , ymax = self . proj . get_extent ( ) self . set_xlim ( xmin , xmax ) self . set_ylim ( ymin , ymax ) return img