(first_axis_id, subplot_ref, spec, remove_label)
| 915 | axis_index = 0 |
| 916 | |
| 917 | def update_axis_matches(first_axis_id, subplot_ref, spec, remove_label): |
| 918 | if subplot_ref is None: |
| 919 | return first_axis_id |
| 920 | |
| 921 | if x_or_y == "x": |
| 922 | span = spec["colspan"] |
| 923 | else: |
| 924 | span = spec["rowspan"] |
| 925 | |
| 926 | if subplot_ref.subplot_type == "xy" and span == 1: |
| 927 | if first_axis_id is None: |
| 928 | first_axis_name = subplot_ref.layout_keys[layout_key_ind] |
| 929 | first_axis_id = first_axis_name.replace("axis", "") |
| 930 | else: |
| 931 | axis_name = subplot_ref.layout_keys[layout_key_ind] |
| 932 | axis_to_match = layout[axis_name] |
| 933 | axis_to_match.matches = first_axis_id |
| 934 | if remove_label: |
| 935 | axis_to_match.showticklabels = False |
| 936 | |
| 937 | return first_axis_id |
| 938 | |
| 939 | if shared == "columns" or (x_or_y == "x" and shared is True): |
| 940 | for c in cols_iter: |
no test coverage detected