Skip to content

Commit

Permalink
api: Use the variable name as the default title in get_raster()
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 committed Jun 1, 2023
1 parent 8df9bdb commit c28609d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thalassa/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def create_trimesh(
points_gv = gv.Points(points_df, kdims=["lon", "lat"], vdims=[variable])
else:
points_gv = gv.Points(points_df, kdims=["lon", "lat"])
trimesh = gv.TriMesh((ds.triface_nodes.data, points_gv))
trimesh = gv.TriMesh((ds.triface_nodes.data, points_gv), name=variable)
return trimesh


Expand Down Expand Up @@ -177,7 +177,7 @@ def get_raster(
clabel=clabel,
colorbar=True,
clim=(clim_min, clim_max),
title=title,
title=title or trimesh.name,
tools=["hover"],
)
return raster
Expand Down

0 comments on commit c28609d

Please sign in to comment.