(self, x, y)
return res
Format the coordinate for display in status bar. Take projection
        into account.
Format the coordinate for display in status bar. Take projection
        into account.
Format the coordinate for display in status bar . Take projection into account .
def format_coord(self, x, y):
        """Format the coordinate for display in status bar. Take projection
        into account.
        """
        format = self._format + " at "
        pos = self.get_lonlat(x, y)
        if pos is None or np.isnan(pos).any():
            return ""
        lon, lat = np.around(pos, decimals=self._coordprec)
        val = self.get_value(x, y)
        if val is None:
            format = "%s"
            val = ""
        elif type(val) is str:
            format = "%s @ "
        coordsys = self.proj.coordsysstr
        if coordsys != "":
            res = (format + "(%g, %g) in %s") % (val, lon, lat, coordsys[0:3])
        else:
            res = (format + "lon=%g, lat=%g") % (val, lon, lat)
        return res
def format_coord ( self , x , y ) : format = self . _format + " at " pos = self . get_lonlat ( x , y ) if pos is None or np . isnan ( pos ) . any ( ) : return "" lon , lat = np . around ( pos , decimals = self . _coordprec ) val = self . get_value ( x , y ) if val is None : format = "%s" val = "" elif type ( val ) is str : format = "%s @ " coordsys = self . proj . coordsysstr if coordsys != "" : res = ( format + "(%g, %g) in %s" ) % ( val , lon , lat , coordsys [ 0 : 3 ] ) else : res = ( format + "lon=%g, lat=%g" ) % ( val , lon , lat ) return res