Skip to content

Commit

Permalink
Adding doc string to annotate heatmap func
Browse files Browse the repository at this point in the history
  • Loading branch information
jgostick committed Sep 9, 2023
1 parent bfb5c1a commit 3acd13d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion porespy/visualization/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@
]


def annotate_heatmap(heatmap, ax, mask=None, fontdict={}):
def annotate_heatmap(heatmap, ax=None, mask=None, fontdict={}):
r"""
Overlays text representation of pixel values within a 2D image
Parameters
----------
heatmap : ndarray
A 2D array of numerical values
ax : matplotlib axis handle
The handle of the
"""
if ax is None:
fig, ax = plt.subplots()
ax.pcolormesh(heatmap)
im = heatmap
font_kws = {
'size': 10,
Expand Down

0 comments on commit 3acd13d

Please sign in to comment.