Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 22, 2024
1 parent 4638010 commit 024671e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ISO-8859-1
ISO-8859-1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
14 changes: 11 additions & 3 deletions src/area_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
import cartopy.io.shapereader as shpreader
import geopandas as gpd
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import pandas as pd
import rasterio as rio
import seaborn as sns
import yaml
from osgeo import gdal
from rasterio import transform
Expand Down Expand Up @@ -38,8 +38,16 @@ def plot_confusion_matrix(cm, labels, datatype="d") -> None:
"""

_, ax = plt.subplots(nrows=1, ncols=1)
sns.heatmap(cm, cmap="crest", annot=True, fmt=datatype, cbar=False,
square=True, ax=ax, annot_kws={"size": 20})
sns.heatmap(
cm,
cmap="crest",
annot=True,
fmt=datatype,
cbar=False,
square=True,
ax=ax,
annot_kws={"size": 20},
)
ax.xaxis.tick_top()
ax.xaxis.set_label_coords(0.50, 1.125)
ax.yaxis.set_label_coords(-0.125, 0.50)
Expand Down

0 comments on commit 024671e

Please sign in to comment.