Skip to content

Commit a9534ff

Browse files
author
TomAugspurger
committed
API: Remove dashed line in bar plots
1 parent ff090f4 commit a9534ff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/source/whatsnew/v0.16.0.txt

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ Backwards incompatible API changes
4949
- ``TimedeltaIndex.freqstr`` now output the same string format as ``DatetimeIndex``. (:issue:`9116`)
5050

5151

52+
- Bar and horizontal bar plots no longer add a dashed line along the info axis.
53+
The prior style can be achieved with matplotlib's `axhline` or `axvline`
54+
methods (:issue:`9088`).
55+
5256
Deprecations
5357
~~~~~~~~~~~~
5458

pandas/tools/plotting.py

-3
Original file line numberDiff line numberDiff line change
@@ -1895,16 +1895,13 @@ def _post_plot_logic(self):
18951895
ax.set_xlim((s_edge, e_edge))
18961896
ax.set_xticks(self.tick_pos)
18971897
ax.set_xticklabels(str_index)
1898-
if not self.log: # GH3254+
1899-
ax.axhline(0, color='k', linestyle='--')
19001898
if name is not None and self.use_index:
19011899
ax.set_xlabel(name)
19021900
elif self.kind == 'barh':
19031901
# horizontal bars
19041902
ax.set_ylim((s_edge, e_edge))
19051903
ax.set_yticks(self.tick_pos)
19061904
ax.set_yticklabels(str_index)
1907-
ax.axvline(0, color='k', linestyle='--')
19081905
if name is not None and self.use_index:
19091906
ax.set_ylabel(name)
19101907
else:

0 commit comments

Comments
 (0)