Skip to content

Commit

Permalink
update typing information for np.histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Oct 14, 2023
1 parent 4617395 commit c8cc54c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sed/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""This module contains diagnostic output functions for the sed module
"""
from typing import List
from typing import Sequence
from typing import Tuple

Expand All @@ -13,16 +12,16 @@


def plot_single_hist(
histvals: List[int],
edges: List[float],
histvals: np.ndarray,
edges: np.ndarray,
legend: str = None,
**kwds,
) -> pbk.Figure:
"""Bokeh-based plotting of a single histogram with legend and tooltips.
Args:
histvals (List[int]): Histogram counts (e.g. vertical axis).
edges (List[float]): Histogram edge values (e.g. horizontal axis).
histvals (np.ndarray): Histogram counts (e.g. vertical axis).
edges (np.ndarray): Histogram edge values (e.g. horizontal axis).
legend (str, optional): Text for the plot legend. Defaults to None.
**kwds: Keyword arguments for ``bokeh.plotting.figure().quad()``.
Expand Down

0 comments on commit c8cc54c

Please sign in to comment.