Skip to content
Closed
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
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.17.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Enhancements
objects for the ``filepath_or_buffer`` argument. (:issue:`11033`)
- ``DataFrame`` now uses the fields of a ``namedtuple`` as columns, if columns are not supplied (:issue:`11181`)
- Improve the error message displayed in :func:`pandas.io.gbq.to_gbq` when the DataFrame does not match the schema of the destination table (:issue:`11359`)
- Added ``axvlines_kwds`` to parallel coordinates plot (:issue: `10709`)

.. _whatsnew_0171.api:

Expand Down
6 changes: 4 additions & 2 deletions pandas/tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def bootstrap_plot(series, fig=None, size=50, samples=500, **kwds):
@deprecate_kwarg(old_arg_name='data', new_arg_name='frame', stacklevel=3)
def parallel_coordinates(frame, class_column, cols=None, ax=None, color=None,
use_columns=False, xticks=None, colormap=None,
axvlines=True, **kwds):
axvlines=True, axvlines_kwds={'linewidth':1,'color':'black'}, **kwds):
"""Parallel coordinates plotting.

Parameters
Expand All @@ -660,6 +660,8 @@ def parallel_coordinates(frame, class_column, cols=None, ax=None, color=None,
Colormap to use for line colors.
axvlines: bool, optional
If true, vertical lines will be added at each xtick
axvlines_kwds: keywords, optional
Options to be passed to axvline method for vertical lines
kwds: keywords
Options to pass to matplotlib plotting method

Expand Down Expand Up @@ -726,7 +728,7 @@ def parallel_coordinates(frame, class_column, cols=None, ax=None, color=None,

if axvlines:
for i in x:
ax.axvline(i, linewidth=1, color='black')
ax.axvline(i, **axvlines_kwds)

ax.set_xticks(x)
ax.set_xticklabels(df.columns)
Expand Down