#๐Ÿ”’ Colormap of date in sns.pairplots

39 messages ยท Page 1 of 1 (latest)

sinful matrix
#

https://paste.pythondiscord.com/YCRQ

I have this code to compute and plots correlation. I doing a sns.pairplots graph and i would want both the diagonal to be the distrubtion and that each case as a colormap for the julian date but i cant manage both at the same time . Can somebody help ?

shut epochBOT
#

@sinful matrix

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

sinful matrix
#

anyone ?

cold wagon
#

Can you rephrase? It's hard to understand what you're trying to do

sinful matrix
#

i only manage

#

either

#

this

#

or this

#

i want the second one where each point is associated with a date but i want to keep the distrubutions in the diagonal

cold wagon
sinful matrix
#

the first one is :

sns.pairplot(filtered_data[analysis_columns + ['Julian Date']], diag_kind='kde', corner=True)

#

the second one is "

#

sns.pairplot(filtered_data[analysis_columns + ['Julian Date']], diag_kind='kde', corner=True, hue='Julian Date')

sinful matrix
cold wagon
sinful matrix
#

basically i have a csv file that looks like this :

sinful matrix
#

so each point is associate with a date

cold wagon
#

I understand how you assign the hue to the points, I'm asking about the missing diagonal distributions which don't look like points

sinful matrix
#

sry not sure i understand your question. I dont want the hue in the diagonal, simply the distribution and the hue everywhere else

cold wagon
#

yeah I'm just not sure that's how the function works

sinful matrix
#

hmm

#

i see what you mean yeah

#

weird that i cant bypass it to not pass the hue but i guess its how the function is made

cold wagon
#

I'm no seaborn expert so take it with a grain of salt, but that's what I see from their documentation

sinful matrix
#

yeah thats my conclusion too

cold wagon
#

Maybe it's possible to to do all the off-diagonals separately and then join them to the diagonal plots

cold wagon
#

So in this case you would assign a hue only to the off-diagonal plots

cold wagon
#

Scroll through the example usage, they show this case

sinful matrix
#

oh yeah

#

Thanks i will look through this !

shut epochBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.