# Simulation-based calibration histogram

**URL:** <https://discuss.bayesflow.org/t/simulation-based-calibration-histogram/33>\
**Category:** General\
**Created:** [December 12, 2023, 3:11pm UTC](https://discuss.bayesflow.org/t/simulation-based-calibration-histogram/33 "2023-12-12T15:11:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![masonyoungblood](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.bayesflow.org/masonyoungblood/32/14_2.png) [@masonyoungblood](https://discuss.bayesflow.org/u/masonyoungblood)\
**Post date:** [December 12, 2023, 3:11pm UTC](https://discuss.bayesflow.org/t/simulation-based-calibration-histogram/33/1 "2023-12-12T15:11:38Z")

</div>

Just a quick note, it looks like some of the arguments for `diagnostics.plot_sbc_histograms()` are not working in the current version. Customizing `n_row` and `n_col` has no effect on the output, and providing them to `trainer.diagnose_sbc_histograms` via `plot_args` (e.g. `plot_args = {"n_row": 3, "n_col": 4}`) gives the following error:

```auto
TypeError: plot_sbc_histograms() got an unexpected keyword argument 'n_row'

```

---

<div class="post-metadata">

**Author:** ![KLDivergence](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.bayesflow.org/kldivergence/32/15_2.png) [@KLDivergence](https://discuss.bayesflow.org/u/KLDivergence)\
**Post date:** [December 13, 2023, 6:21pm UTC](https://discuss.bayesflow.org/t/simulation-based-calibration-histogram/33/2 "2023-12-13T18:21:52Z")

</div>

Hey, Mason, it seems to work for me for the function from the diagnostics module (I haven’t checked the one from the Trainer, which will be deprecated soon). The correct way to do it is, for example:

`plot_sbc_histograms(post_draws, prior_draws, n_row=3, n_col=4)`

(not through the dictionary)
