## input_times.plot_observed_fitted()


Plot overlaid comparison of observed vs fitted data.


Usage

``` python
input_times.plot_observed_fitted(
    data,
    sample,
    kind="hist",
    xmax=200,
    title=None,
    n_bins=200,
    time_unit="minutes"
)
```


## Parameters


`data: array - like`  
Observed data values.

`sample: array - like`  
Sampled/fitted distribution values.

`kind: str = ``"hist"`  
Either "kde" (density curve) or "hist" (plain count-based histogram).

`xmax: int or None = ``200`  
X-axis limit for a second, optional cropped copy of the plot.

`title: str = None`  
Title.

`n_bins: int = ``200`  
Number of histogram bins.

`time_unit: str = ``"minutes"`  
Display unit for plot labels. This does not convert data values.


## Returns


`fig: matplotlib.figure.Figure`  
Figure with two sets of overlaid histograms (one standard, one cropped).
