Skip to content

Commit 48b4764

Browse files
committed
DOC: Standardize fontsize and rot in plotting funcs
1 parent 3b1834a commit 48b4764

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pandas/plotting/_core.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def hist_frame(
277277
The matplotlib axes to be used by boxplot.
278278
fontsize : float or str
279279
Tick label font size in points or as a string (e.g., `large`).
280-
rot : int or float, default 0
280+
rot : float, default 0
281281
The rotation angle of labels (in degrees)
282282
with respect to the screen coordinate system.
283283
grid : bool, default True
@@ -557,7 +557,7 @@ def boxplot_frame_groupby(
557557
558558
column : column name or list of names, or vector
559559
Can be any valid input to groupby.
560-
fontsize : int or str
560+
fontsize : float or str
561561
rot : label rotation angle
562562
grid : Setting this to True will show the grid
563563
ax : Matplotlib axis object, default None
@@ -731,10 +731,10 @@ class PlotAccessor(PandasObject):
731731
732732
Now applicable to planar plots (`scatter`, `hexbin`).
733733
734-
rot : int, default None
734+
rot : float, default None
735735
Rotation for ticks (xticks for vertical, yticks for horizontal
736736
plots).
737-
fontsize : int, default None
737+
fontsize : float, default None
738738
Font size for xticks and yticks.
739739
colormap : str or matplotlib colormap object, default None
740740
Colormap to select colors from. If string, load colormap with that

pandas/plotting/_matplotlib/hist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def _grouped_hist(
323323
layout : optional
324324
sharex : bool, default False
325325
sharey : bool, default False
326-
rot : int, default 90
326+
rot : float, default 90
327327
grid : bool, default True
328328
legend: : bool, default False
329329
kwargs : dict, keyword arguments passed to matplotlib.Axes.hist

pandas/plotting/_misc.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ def andrews_curves(
288288
class_column : label
289289
Name of the column containing class names
290290
ax : axes object, default None
291-
Axes to use
291+
Axes to use.
292292
samples : int
293-
Number of points to plot in each curve
293+
Number of points to plot in each curve.
294294
color : {str, list, tuple}, optional
295295
Colors to use for the different classes. Colors can be strings
296296
or 3-element floating point RBG values.
@@ -477,7 +477,7 @@ def lag_plot(series: Series, lag: int = 1, ax: Axes | None = None, **kwds) -> Ax
477477
series : Series
478478
The time series to visualize.
479479
lag : int, optional
480-
lag of the scatter plot, default 1.
480+
Lag length of the scatter plot, default 1.
481481
ax : Matplotlib axis object, optional
482482
The matplotlib axis object to use.
483483
**kwds

0 commit comments

Comments
 (0)