Skip to content

Commit 93141eb

Browse files
author
Tom Augspurger
committed
Merge pull request #9122 from TomAugspurger/remove-bar-line
Remove bar line
2 parents 02cbd9e + a9534ff commit 93141eb

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
@@ -84,6 +84,10 @@ Backwards incompatible API changes
8484
- ``TimedeltaIndex.freqstr`` now output the same string format as ``DatetimeIndex``. (:issue:`9116`)
8585

8686

87+
- Bar and horizontal bar plots no longer add a dashed line along the info axis.
88+
The prior style can be achieved with matplotlib's `axhline` or `axvline`
89+
methods (:issue:`9088`).
90+
8791
Deprecations
8892
~~~~~~~~~~~~
8993

pandas/tools/plotting.py

-3
Original file line numberDiff line numberDiff line change
@@ -1901,16 +1901,13 @@ def _post_plot_logic(self):
19011901
ax.set_xlim((s_edge, e_edge))
19021902
ax.set_xticks(self.tick_pos)
19031903
ax.set_xticklabels(str_index)
1904-
if not self.log: # GH3254+
1905-
ax.axhline(0, color='k', linestyle='--')
19061904
if name is not None and self.use_index:
19071905
ax.set_xlabel(name)
19081906
elif self.kind == 'barh':
19091907
# horizontal bars
19101908
ax.set_ylim((s_edge, e_edge))
19111909
ax.set_yticks(self.tick_pos)
19121910
ax.set_yticklabels(str_index)
1913-
ax.axvline(0, color='k', linestyle='--')
19141911
if name is not None and self.use_index:
19151912
ax.set_ylabel(name)
19161913
else:

0 commit comments

Comments
 (0)