switch_model/tools/graph/main.py
def graph_points(self, df, ax=None):
        """
        Graphs a point in each load zone based on a dataframe with two columns
        - gen_load_zone
        - value
        """
        _, center_points = self._load_maps()

        df = df.merge(center_points, on="gen_load_zone")
        # Cast to GeoDataFrame
        df = self._geopandas.GeoDataFrame(df[["geometry", "value"]], geometry="geometry")

        if ax is None:
            ax = self._tools.get_axes()
        self._plot_states(ax)
        df.plot(ax=ax, column="value", legend=True, cmap="coolwarm", markersize=30, norm=colors.CenteredNorm())

        Graphs a point in each load zone based on a dataframe with two columns
        - gen_load_zone
        - value
        
Graphs a point in each load zone based on a dataframe with two columns
gen_load_zone
value
Graphs a point in each load zone based on a dataframe with two columns gen_load_zone value
def graph_points(self, df, ax=None):
        _, center_points = self._load_maps()
        df = df.merge(center_points, on="gen_load_zone")
        df = self._geopandas.GeoDataFrame(df[["geometry", "value"]], geometry="geometry")
        if ax is None:
            ax = self._tools.get_axes()
        self._plot_states(ax)
        df.plot(ax=ax, column="value", legend=True, cmap="coolwarm", markersize=30, norm=colors.CenteredNorm())
def graph_points ( self , df , ax = None ) : _ , center_points = self . _load_maps ( ) df = df . merge ( center_points , on = "gen_load_zone" ) df = self . _geopandas . GeoDataFrame ( df [ [ "geometry" , "value" ] ] , geometry = "geometry" ) if ax is None : ax = self . _tools . get_axes ( ) self . _plot_states ( ax ) df . plot ( ax = ax , column = "value" , legend = True , cmap = "coolwarm" , markersize = 30 , norm = colors . CenteredNorm ( ) )
Graphs a point in each load zone based on a dataframe with two columns
 gen_load_zone
 value
Graphs a point in each load zone based on a dataframe with two columns gen_load_zone value
"""
        Graphs a point in each load zone based on a dataframe with two columns
        - gen_load_zone
        - value
        """ # Cast to GeoDataFrame
self
df
ax