Skip to content

BUG: fontsize parameter of plot only affects one axis. #8766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pandas/tests/test_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def test_subplots_timeseries(self):
self._check_visible(ax.get_xticklabels(minor=True))
self._check_visible(ax.xaxis.get_label())
self._check_visible(ax.get_yticklabels())
self._check_ticks_props(ax, xlabelsize=7, xrot=45)
self._check_ticks_props(ax, xlabelsize=7, xrot=45, ylabelsize=7)

def test_subplots_layout(self):
# GH 6667
Expand Down Expand Up @@ -1691,13 +1691,13 @@ def test_plot_bar(self):
self._check_ticks_props(ax, xrot=90)

ax = df.plot(kind='bar', rot=35, fontsize=10)
self._check_ticks_props(ax, xrot=35, xlabelsize=10)
self._check_ticks_props(ax, xrot=35, xlabelsize=10, ylabelsize=10)

ax = _check_plot_works(df.plot, kind='barh')
self._check_ticks_props(ax, yrot=0)

ax = df.plot(kind='barh', rot=55, fontsize=11)
self._check_ticks_props(ax, yrot=55, ylabelsize=11)
self._check_ticks_props(ax, yrot=55, ylabelsize=11, xlabelsize=11)

def _check_bar_alignment(self, df, kind='bar', stacked=False,
subplots=False, align='center',
Expand Down Expand Up @@ -2061,7 +2061,7 @@ def test_kde_df(self):
self._check_ticks_props(ax, xrot=0)

ax = df.plot(kind='kde', rot=20, fontsize=5)
self._check_ticks_props(ax, xrot=20, xlabelsize=5)
self._check_ticks_props(ax, xrot=20, xlabelsize=5, ylabelsize=5)

axes = _check_plot_works(df.plot, kind='kde', subplots=True)
self._check_axes_shape(axes, axes_num=4, layout=(4, 1))
Expand Down
4 changes: 2 additions & 2 deletions pandas/tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2397,9 +2397,9 @@ def _plot(data, x=None, y=None, subplots=False,
xlim : 2-tuple/list
ylim : 2-tuple/list
rot : int, default None
Rotation for ticks
Rotation for ticks (xticks for vertical, yticks for horizontal plots)
fontsize : int, default None
Font size for ticks
Font size for xticks and yticks
colormap : str or matplotlib colormap object, default None
Colormap to select colors from. If string, load colormap with that name
from matplotlib.
Expand Down