Repository navigation
Commit 36814cf
committed
Respect facet_row_spacing=0 and facet_col_spacing=0 in Plotly Express
init_figure picked the subplot spacing with
`args.get("facet_row_spacing") or 0.07` (and similar for the other
defaults), so an explicit spacing of 0 was treated as unset and the
default gap was used instead. The docstrings allow any float in [0, 1]
and make_subplots accepts 0, so fall back to the default only when the
argument is None. px.imshow builds its facets through the same code
and is fixed too.1 parent 3c1aeba commit 36814cf
4 files changed
Lines changed: 51 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
| 2872 | + | |
| 2873 | + | |
2872 | 2874 | | |
2873 | 2875 | | |
2874 | 2876 | | |
| |||
2881 | 2883 | | |
2882 | 2884 | | |
2883 | 2885 | | |
2884 | | - | |
| 2886 | + | |
2885 | 2887 | | |
2886 | | - | |
| 2888 | + | |
2887 | 2889 | | |
2888 | 2890 | | |
2889 | 2891 | | |
| |||
2894 | 2896 | | |
2895 | 2897 | | |
2896 | 2898 | | |
2897 | | - | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
2898 | 2902 | | |
2899 | 2903 | | |
2900 | 2904 | | |
2901 | 2905 | | |
2902 | 2906 | | |
2903 | 2907 | | |
2904 | 2908 | | |
2905 | | - | |
| 2909 | + | |
2906 | 2910 | | |
2907 | | - | |
2908 | | - | |
| 2911 | + | |
| 2912 | + | |
2909 | 2913 | | |
2910 | 2914 | | |
2911 | 2915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
49 | 80 | | |
50 | 81 | | |
51 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
0 commit comments