added axvlines_color parameter to parallel_coordinates #10709

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants
Contributor

undertherain commented Jul 31, 2015

parallel_coordinates are in pandas.tools.plotting
'black' color was hard-coded for vertical lines, I suggest to make it an option

Contributor

jreback commented Oct 11, 2015

Contributor

TomAugspurger commented Oct 11, 2015

No strong opinion here. It's an easy addition but I don't think our parallel coordinate plot is worth expanding.

On Oct 11, 2015, at 10:56, Jeff Reback notifications@github.com wrote:

@TomAugspurger @sinhrks ?


Reply to this email directly or view it on GitHub.

Contributor

jreback commented Oct 14, 2015

should we deprecate parallel_coordinates ? (is their a direct replacement say in seaborn/mpl/bokeh)? can we simply dispatch?

Contributor

TomAugspurger commented Oct 14, 2015

No replacement in seaborn / mpl. The best I've seen is here.

Member

sinhrks commented Oct 15, 2015

Though we don't set a high value on maintaining other plotting funcs than .plot method, this kind of small fix looks OK to be applied. Otherwise, may better to deprecate it as unmaintained.

Contributor

jreback commented Oct 18, 2015

ok can u add a test, make sure the keyworkd are added in the .plot accessor and add a whatsnew note

Contributor

undertherain commented Oct 19, 2015

Hi guys!
Sorry for the late reply - was traveling a little bit
Thank you for considering my request!

Ehm.... how about passing keyword arguments for avx line potting insted of
just color?
Because well, I needed another color - somebody else might need another
line thickness etc

can make it like this:

def parallel_coordinates(frame, class_column, cols=None, ax=None,
color=None,
use_columns=False, xticks=None, colormap=None,
axvlines=True,
axvlines_kwds={'linewidth':1,'color':'black'}, **kwds):

the default {'linewidth':1,'color':'black'}, ensure that backward
compatibility

Cheers!
Alex

2015-10-19 1:34 GMT+09:00 Jeff Reback notifications@github.com:

ok can u add a test, make sure the keyworkd are added in the .plot
accessor and add a whatsnew note


Reply to this email directly or view it on GitHub
pydata#10709 (comment).

Contributor

undertherain commented Oct 19, 2015

Oh, right, I already committed this :)
Anyway, just wanted to add the parallel_coordinates is useful in Pandas - at least I did not see any other "out of the box" alternatives

Contributor

jreback commented Oct 19, 2015

@undertherain ok this is fine. can you squash. ping when done.

jreback added this to the 0.17.1 milestone Oct 19, 2015

Contributor

jreback commented Oct 19, 2015

actually, pls add a whatnew note (enhancement section), use this PR number as the issue number

Contributor

undertherain commented Nov 2, 2015

I added the whatsnew note with issue number
but for the "squashing" I can use some hint

@undertherain undertherain added axvlines_color parameter to pandas.tools.plotting.parallel_coor…
…dinates

passing kwargs to axvline() in parallel_coordinates()

moved notice of avx_lines enhancement to whatsnew
06ef1b0
Contributor

undertherain commented Nov 4, 2015

@jorisvandenbossche yep, thank you! I've just got a bit confused as I made few changes, than merged with main version than make few more changes. Anyway, I hope I sorted it out and it should be ready now.

Contributor

undertherain commented Nov 12, 2015

@jreback oh, in case github doesn''t send notifications to people in the thread not being mentioned explicitly - ping.

Contributor

jreback commented Nov 13, 2015

merged via 4b6fcc0

thanks!

jreback closed this Nov 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment