Visualization¶
- emiproc.plots.plot_inventory(
- inv: ~emiproc.inventories.Inventory,
- figsize: tuple[int,
- int] | None = None,
- q: float = 0.001,
- vmin: None | float = None,
- vmax: None | float = None,
- cmap=<matplotlib.colors.ListedColormap object>,
- symcmap='RdBu_r',
- spec_lims: None | tuple[float] | str = None,
- out_dir: ~os.PathLike | None = None,
- axis_formatter: str | None = None,
- x_label: str | None = None,
- y_label: str | None = None,
- add_country_borders: bool = False,
- total_only: bool = False,
- bare_plot: bool = False,
- reverse_y: bool = False,
- temporal_freq: str | None = None,
- poly_collection_kwargs: dict[str,
- ~typing.Any] = {'antialiased': True,
- 'edgecolors': 'black',
- 'linewidth': 0.04},
- country_borders_kwargs: dict[str,
- ~typing.Any] = {},
- show_total_temporal_emissions: bool = True,
Plot an inventory.
Will plot all the combination of substnaces/category of the inventory. Will also plot the total emission for each substance.
- Parameters:
inv – the inventory to plot
figsize – the size of the figure. As in matplotlib.
q – the quantile to use for the vmax and vmin. Will be used to remove the outliers.
vmin – the minimum value to use for the colorbar. Will override the q parameter.
vmax – Same as vmin but for the maximum value.
cmap – the colormap to use. As in matplotlib.
symcmap – the symetric colormap to use when:str there are negative values. As in matplotlib.
spec_lims – the limits of the plot. As in matplotlib. If “grid”, will use the grid cell coordinates.
out_dir – the directory where to save the plots. If None, will show the plots.
axis_formatter – for example “{x:6.0f}” will show 6 number and 0 after the . , which is useful for swiss coordinates.
add_country_borders – if True, will add country borders to the plot.
total_only – if True, will plot only the total emissions.
bare_plot – if True, removes all non-data elements (axes, labels, title and colorbar).
reverse_y – if True, will reverse the y-axis.
poly_collection_kwargs – additional keyword arguments for the PolyCollection.
country_borders_kwargs – additional keyword arguments for the country borders. See geopandas.Geoseries.plot for more information.
show_total_temporal_emissions – if True, will plot the total emissions for each substance in the temporal plot.
- emiproc.profiles.plot.plot_profile(
- profile: DailyProfile | SpecificDayProfile | WeeklyProfile | MounthsProfile | HourOfYearProfile | HourOfLeapYearProfile | HourOfWeekProfile | Hour3OfDay | Hour3OfDayPerMonth | HourOfWeekPerMonthProfile | DayOfYearProfile | DayOfLeapYearProfile | VerticalProfile,
- ax: Axes | None = None,
- ignore_limit: bool = False,
- profile_number: int | None = None,
- labels: bool = True,
Plot a profile.
- Parameters:
profile – The profile to plot. Can be any kind of profiles supported in emiproc.
ax – The axes to plot on.
ignore_limit – Whether to ignore the profile limit, for plotting a lot of profiles.
profile_number – The profile number to plot. In case you want to plot only one of the profiles in the input.
labels – Whether to add x and y labels.