From a9534ff50d90949a37053aaf91e697fbdde518c3 Mon Sep 17 00:00:00 2001 From: TomAugspurger Date: Sun, 21 Dec 2014 09:39:59 -0600 Subject: [PATCH] API: Remove dashed line in bar plots --- doc/source/whatsnew/v0.16.0.txt | 4 ++++ pandas/tools/plotting.py | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index 6e93535451fbc..b17f8195d339e 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -49,6 +49,10 @@ Backwards incompatible API changes - ``TimedeltaIndex.freqstr`` now output the same string format as ``DatetimeIndex``. (:issue:`9116`) +- Bar and horizontal bar plots no longer add a dashed line along the info axis. +The prior style can be achieved with matplotlib's `axhline` or `axvline` +methods (:issue:`9088`). + Deprecations ~~~~~~~~~~~~ diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index 2d7976d567108..1b815c519ea59 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -1895,8 +1895,6 @@ def _post_plot_logic(self): ax.set_xlim((s_edge, e_edge)) ax.set_xticks(self.tick_pos) ax.set_xticklabels(str_index) - if not self.log: # GH3254+ - ax.axhline(0, color='k', linestyle='--') if name is not None and self.use_index: ax.set_xlabel(name) elif self.kind == 'barh': @@ -1904,7 +1902,6 @@ def _post_plot_logic(self): ax.set_ylim((s_edge, e_edge)) ax.set_yticks(self.tick_pos) ax.set_yticklabels(str_index) - ax.axvline(0, color='k', linestyle='--') if name is not None and self.use_index: ax.set_ylabel(name) else: