Set the ticks position. Parameters ---------- position : {'left', 'right', 'both', 'default', 'none'} 'both' sets the ticks to appear on both positions, but does not change the tick labels. 'default' resets the tick positions to
(self, position)
| 2885 | self.stale = True |
| 2886 | |
| 2887 | def set_ticks_position(self, position): |
| 2888 | """ |
| 2889 | Set the ticks position. |
| 2890 | |
| 2891 | Parameters |
| 2892 | ---------- |
| 2893 | position : {'left', 'right', 'both', 'default', 'none'} |
| 2894 | 'both' sets the ticks to appear on both positions, but does not |
| 2895 | change the tick labels. 'default' resets the tick positions to |
| 2896 | the default: ticks on both positions, labels at left. 'none' |
| 2897 | can be used if you don't want any ticks. 'none' and 'both' |
| 2898 | affect only the ticks, not the labels. |
| 2899 | """ |
| 2900 | if position == 'right': |
| 2901 | self.set_tick_params(which='both', right=True, labelright=True, |
| 2902 | left=False, labelleft=False) |
| 2903 | self.set_offset_position(position) |
| 2904 | elif position == 'left': |
| 2905 | self.set_tick_params(which='both', right=False, labelright=False, |
| 2906 | left=True, labelleft=True) |
| 2907 | self.set_offset_position(position) |
| 2908 | elif position == 'both': |
| 2909 | self.set_tick_params(which='both', right=True, |
| 2910 | left=True) |
| 2911 | elif position == 'none': |
| 2912 | self.set_tick_params(which='both', right=False, |
| 2913 | left=False) |
| 2914 | elif position == 'default': |
| 2915 | self.set_tick_params(which='both', right=True, labelright=False, |
| 2916 | left=True, labelleft=True) |
| 2917 | else: |
| 2918 | _api.check_in_list(['left', 'right', 'both', 'default', 'none'], |
| 2919 | position=position) |
| 2920 | self.stale = True |
| 2921 | |
| 2922 | def tick_right(self): |
| 2923 | """ |
no test coverage detected