@@ -2617,58 +2617,66 @@ def locator_params(self, axis='both', tight=None, **kwargs):
2617
2617
self .autoscale_view (tight = tight , scalex = _x , scaley = _y )
2618
2618
2619
2619
def tick_params (self , axis = 'both' , ** kwargs ):
2620
- """
2621
- Change the appearance of ticks and tick labels.
2620
+ """Change the appearance of ticks and tick labels.
2622
2621
2623
- Keyword arguments:
2622
+ Parameters
2623
+ ----------
2624
+ axis : {'x', 'y', 'both'}, optional
8000
2625
+ Which axis to apply the parameters to.
2624
2626
2625
- *axis* : ['x' | 'y' | 'both']
2627
+ Other Parameters
2628
+ ----------------
2629
+
2630
+ axis : {'x', 'y', 'both'}
2626
2631
Axis on which to operate; default is 'both'.
2627
2632
2628
- * reset* : [True | False]
2633
+ reset : bool
2629
2634
If *True*, set all parameters to defaults
2630
2635
before processing other keyword arguments. Default is
2631
2636
*False*.
2632
2637
2633
- * which* : [ 'major' | 'minor' | 'both']
2638
+ which : { 'major', 'minor', 'both'}
2634
2639
Default is 'major'; apply arguments to *which* ticks.
2635
2640
2636
- * direction* : [ 'in' | 'out' | 'inout']
2641
+ direction : { 'in', 'out', 'inout'}
2637
2642
Puts ticks inside the axes, outside the axes, or both.
2638
2643
2639
- * length*
2644
+ length : float
2640
2645
Tick length in points.
2641
2646
2642
- * width*
2647
+ width : float
2643
2648
Tick width in points.
2644
2649
2645
- * color*
2650
+ color : color
2646
2651
Tick color; accepts any mpl color spec.
2647
2652
2648
- * pad*
2653
+ pad : float
2649
2654
Distance in points between tick and label.
2650
2655
2651
- * labelsize*
2656
+ labelsize : float or str
2652
2657
Tick label font size in points or as a string (e.g., 'large').
2653
2658
2654
- * labelcolor*
2659
+ labelcolor : color
2655
2660
Tick label color; mpl color spec.
2656
2661
2657
- * colors*
2662
+ colors : color
2658
2663
Changes the tick color and the label color to the same value:
2659
2664
mpl color spec.
2660
2665
2661
- * zorder*
2666
+ zorder : float
2662
2667
Tick and label zorder.
2663
2668
2664
- * bottom*, * top*, * left*, * right* : [ bool | 'on' | 'off']
2669
+ bottom, top, left, right : bool or { 'on', 'off'}
2665
2670
controls whether to draw the respective ticks.
2666
2671
2667
- * labelbottom*, * labeltop*, * labelleft*, * labelright*
2668
- Boolean or ['on' | 'off'], controls whether to draw the
2672
+ labelbottom, labeltop, labelleft, labelright : bool or {'on', 'off'}
2673
+ controls whether to draw the
2669
2674
respective tick labels.
2670
2675
2671
- Example::
2676
+ Examples
2677
+ --------
2678
+
2679
+ Usage ::
2672
2680
2673
2681
ax.tick_params(direction='out', length=6, width=2, colors='r')
2674
2682
0 commit comments