Exemplo n.º 1
0
 def plot(
     self, ax: GeoAxesSubplot, s: int = 10, **kwargs
 ) -> Artist:  # coverage: ignore
     """Plotting function. All arguments are passed to ax.scatter"""
     return ax.scatter(
         self.data.longitude,
         self.data.latitude,
         s=s,
         transform=PlateCarree(),
         **kwargs,
     )
Exemplo n.º 2
0
 def plot(
     self, ax: GeoAxesSubplot, cmap: str = "inferno", s: int = 5, **kwargs
 ) -> Artist:
     """Plotting function. All arguments are passed to ax.scatter"""
     return ax.scatter(
         self.df.longitude,
         self.df.latitude,
         s=s,
         transform=PlateCarree(),
         c=-self.df.altitude,
         cmap=cmap,
         **kwargs,
     )