viz_utils/eoa_viz.py
def plot_scatter_data(self, lats=None, lons=None, bbox=None, s=1, c='blue', cmap='plasma', title=''):
        '''
        This function plots points in a map
        :param bbox:
        :return:
        '''
        if bbox is None:
            bbox = (-180, 180, -90, 90)
        if lats is None:
            lats = self.lats
        if lons is None:
            lons = self.lons

        fig, ax = plt.subplots(1, 1, figsize=(self._figsize, self._figsize), subplot_kw={'projection': ccrs.PlateCarree()})
        ax.set_extent(bbox)  # If we do not set this, it will cropp it to the limits of the locations
        ax.gridlines()
        im = ax.scatter(lons, lats, s=s, c=c, cmap=cmap)
        fig.colorbar(im, ax=ax, shrink=0.7)
        ax.coastlines()
        plt.title(title)
        plt.show()

        This function plots points in a map
        :param bbox:
        :return:
        
This function plots points in a map
This function plots points in a map
def plot_scatter_data(self, lats=None, lons=None, bbox=None, s=1, c='blue', cmap='plasma', title=''):
        if bbox is None:
            bbox = (-180, 180, -90, 90)
        if lats is None:
            lats = self.lats
        if lons is None:
            lons = self.lons
        fig, ax = plt.subplots(1, 1, figsize=(self._figsize, self._figsize), subplot_kw={'projection': ccrs.PlateCarree()})
        ax.set_extent(bbox)  
        ax.gridlines()
        im = ax.scatter(lons, lats, s=s, c=c, cmap=cmap)
        fig.colorbar(im, ax=ax, shrink=0.7)
        ax.coastlines()
        plt.title(title)
        plt.show()
def plot_scatter_data ( self , lats = None , lons = None , bbox = None , s = 1 , c = 'blue' , cmap = 'plasma' , title = '' ) : if bbox is None : bbox = ( - 180 , 180 , - 90 , 90 ) if lats is None : lats = self . lats if lons is None : lons = self . lons fig , ax = plt . subplots ( 1 , 1 , figsize = ( self . _figsize , self . _figsize ) , subplot_kw = { 'projection' : ccrs . PlateCarree ( ) } ) ax . set_extent ( bbox ) ax . gridlines ( ) im = ax . scatter ( lons , lats , s = s , c = c , cmap = cmap ) fig . colorbar ( im , ax = ax , shrink = 0.7 ) ax . coastlines ( ) plt . title ( title ) plt . show ( )
This function plots points in a map
This function plots points in a map
'''
        This function plots points in a map
        :param bbox:
        :return:
        ''' # If we do not set this, it will cropp it to the limits of the locations
None
self
lats
lons
bbox
None
s
c
cmap
title