|
141 | 141 | " plot_kwargs : dict\n", |
142 | 142 | " Kwargs passed to the plot function.\n", |
143 | 143 | " \"\"\"\n", |
144 | | - " face_color = plot_kwargs[\"face_color\"]\n", |
145 | | - "\n", |
146 | | - " if plot_kwargs[\"face_color\"] is None:\n", |
147 | | - " face_color = \"white\"\n", |
148 | | - "\n", |
149 | 144 | " dabest_obj = effectsize_df.dabest_obj\n", |
150 | 145 | " plot_data = effectsize_df._plot_data\n", |
151 | 146 | " xvar = effectsize_df.xvar\n", |
|
155 | 150 | " mini_meta = effectsize_df.mini_meta\n", |
156 | 151 | " effect_size = effectsize_df.effect_size\n", |
157 | 152 | " proportional = effectsize_df.proportional\n", |
158 | | - "\n", |
159 | 153 | " all_plot_groups = dabest_obj._all_plot_groups\n", |
160 | 154 | " idx = dabest_obj.idx\n", |
161 | 155 | "\n", |
|
199 | 193 | " if err_color is None: \n", |
200 | 194 | " err_color = \"black\"\n", |
201 | 195 | " \n", |
202 | | - "\n", |
203 | | - " return (face_color, dabest_obj, plot_data, xvar, yvar, is_paired, effect_size, proportional, all_plot_groups, idx, \n", |
| 196 | + " return (dabest_obj, plot_data, xvar, yvar, is_paired, effect_size, proportional, all_plot_groups, idx, \n", |
204 | 197 | " show_delta2, show_mini_meta, float_contrast, show_pairs, effect_size_type, group_summaries, err_color)\n", |
205 | 198 | "\n", |
206 | 199 | "def get_kwargs(plot_kwargs, ytick_color):\n", |
|
436 | 429 | " bar_color, plot_palette_bar, plot_palette_contrast, plot_palette_sankey)\n", |
437 | 430 | "\n", |
438 | 431 | "def initialize_fig(plot_kwargs, dabest_obj, show_delta2, show_mini_meta, is_paired, show_pairs, proportional,\n", |
439 | | - " float_contrast, face_color):\n", |
| 432 | + " float_contrast):\n", |
| 433 | + " # Params\n", |
440 | 434 | " fig_size = plot_kwargs[\"fig_size\"]\n", |
| 435 | + " face_color = plot_kwargs[\"face_color\"]\n", |
| 436 | + " if plot_kwargs[\"face_color\"] is None:\n", |
| 437 | + " face_color = \"white\"\n", |
| 438 | + "\n", |
441 | 439 | " if fig_size is None:\n", |
442 | 440 | " all_groups_count = np.sum([len(i) for i in dabest_obj.idx])\n", |
443 | 441 | " # Increase the width for delta-delta graph\n", |
|
552 | 550 | " # Determine temp_all_plot_groups based on proportional condition\n", |
553 | 551 | " plot_groups = [item for i in temp_idx for item in i]\n", |
554 | 552 | " temp_all_plot_groups = all_plot_groups if not proportional else plot_groups\n", |
| 553 | + " \n", |
555 | 554 | " return temp_idx, temp_all_plot_groups\n", |
556 | 555 | "\n", |
557 | 556 | "\n", |
|
0 commit comments