|
96 | 96 | " ci=None, ci_type='bca', err_color=None,\n", |
97 | 97 | " float_contrast=True,\n", |
98 | 98 | " show_pairs=True,\n", |
| 99 | + " show_sample_size=True,\n", |
99 | 100 | " show_delta2=True,\n", |
100 | 101 | " group_summaries=None,\n", |
101 | 102 | " fig_size=None,\n", |
|
347 | 348 | " )\n", |
348 | 349 | "\n", |
349 | 350 | " # Add the counts to the rawdata axes xticks.\n", |
350 | | - " add_counts_to_ticks(\n", |
351 | | - " plot_data = plot_data, \n", |
352 | | - " xvar = xvar, \n", |
353 | | - " yvar = yvar, \n", |
354 | | - " rawdata_axes = rawdata_axes, \n", |
355 | | - " plot_kwargs = plot_kwargs,\n", |
356 | | - " flow = sankey_kwargs[\"flow\"],\n", |
357 | | - " horizontal = horizontal,\n", |
358 | | - " )\n", |
| 351 | + " if plot_kwargs['show_sample_size']:\n", |
| 352 | + " add_counts_to_ticks(\n", |
| 353 | + " plot_data = plot_data, \n", |
| 354 | + " xvar = xvar, \n", |
| 355 | + " yvar = yvar, \n", |
| 356 | + " rawdata_axes = rawdata_axes, \n", |
| 357 | + " plot_kwargs = plot_kwargs,\n", |
| 358 | + " flow = sankey_kwargs[\"flow\"],\n", |
| 359 | + " horizontal = horizontal,\n", |
| 360 | + " )\n", |
359 | 361 | "\n", |
360 | 362 | " # Add counts to prop plots (embedded in the plot bars)\n", |
361 | 363 | " if proportional and plot_kwargs['prop_sample_counts'] and sankey_kwargs[\"flow\"]:\n", |
|
0 commit comments