Skip to content

Commit

Permalink
fix orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jun 20, 2024
1 parent bd65a1d commit 140ac87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/depiction_targeted_preproc/workflow/vis/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def vis_clustering(input_netcdf_path: Annotated[Path, Option()], output_png_path
source_image = xarray.open_dataarray(input_netcdf_path)
fig = plt.figure(figsize=(10, 10))
ax = fig.gca()
source_image.plot(cmap="tab10", ax=ax)
source_image.isel(c=0).plot.imshow(x="x", y="y", cmap="tab10", ax=ax, yincrease=False)
ax.set_aspect("equal")

# n_classes = len(set(source_image.values.ravel()))
Expand Down

0 comments on commit 140ac87

Please sign in to comment.