Questions tagged [jointplot]

For plotting a jointplot in python or r, using seaborn or ggExtra

Joint Plots are used to explore relationships between bivariate data, as well as their distributions at the same time. Typically, a joint plot consists of a central plot with s at the top and right edges. The scatter plot shows data from both variables, while each histogram describes a single variable.

In the plotting library has a sns.jointplot function.
In the library ggExtra provides a function ggMarginal for extending ggplot2 scatterplots.

51 questions
0
votes
0 answers

For a jointplot marginal plot can I use percentage to show in every item (color, hue )?

I think default is counts, but if I have 2+dimensions with different sample size, see the attachment image. How to make that distribution for each Name, individually? Since quite different sample size hard to tell anything.percentile would be…
ez4tot
  • 1
  • 1
0
votes
0 answers

How add a plot to histogram in seaborn.jointplot?

I have a seaborn jointplot: import seaborn as sns import pandas as pd import matplotlib.pyplot as plt import numpy as np def plot(): random_matrix=np.random.standard_normal((1000,2)) df=pd.DataFrame(random_matrix,columns=["x","y"]) …
0
votes
0 answers

Plot density/proportion histograms with hue parameter in seaborn jointplot?

Is there a way to specify both hue and have the marginal histograms be plotted with stat=density ? It seems I can have one or the other -- it will graph either without the hue kwa or without stat='density', but it errors out when I include both…
0
votes
1 answer

Seaborn jointplot legend has gives varying marker size when labels dictated by plt.legend()

Customising the legend of a Seaborn jointplot seems to provoke the markers in the legend vary in size for no apparent reason (see image). h = sns.jointplot( data = data, x = 'X', y = 'Y', hue = 'Time', palette = cmap) plt.legend(title = 't / mins',…
ajsc4
  • 23
  • 4
0
votes
0 answers

the histograms in Joint Plot

I want to plot a Scatterplot using joint plot where I am using Hue. But the KDE plots on the axes are not desired. Instead of those, I need to plot the histogram containing the aggregate count in the range of specific x and y. How can I do that? In…
0
votes
1 answer

How to add bar value annotations in jointgrid margins

How can bar labels be added to the tops of bars in the x and y margins of a seaborn.joinplot or sns.JointGrid? How can matplotlib.pyplot.bar_label, as shown in How to add value labels on a bar chart, be applied to the bars in the margins? import…
Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158
0
votes
1 answer

Seaborn hexbin plot with marginal distributions for datetime64[ns] and category variables

I'm uploading a spreadsheet from excel to a dataframe. In this table, I am only interested in two columns. The first column is the date and time in the format %Y-%m-%d %H-%M-%S. The second column is a categorical variable, namely the type of…
Valentin
  • 1
  • 1
0
votes
1 answer

Seaborn jointplot color histogram

I'd like to color my histogram according to my palette. Here's the code I used to make this, and here's the error I received when I tried an answer I found on here. g = sns.jointplot(data=emb_df, x='f0', y='y', kind="hist", hue='klabels',…
Bigboss01
  • 438
  • 6
  • 21
0
votes
1 answer

Change to log scale while displacing the vertical scale of the marginal histogram on both axes in Seaborn jointplot

I am trying to draw jointplot with seaborn but I am not able to do the following: Change the scale to log-scale (similar to the way to do this in matplotlib ax.set_yscale('log')) on both axes of the marginal histograms. Display the vertical scale…
aBiologist
  • 2,007
  • 2
  • 14
  • 21
0
votes
1 answer

Joint plot for groupby datas on seaborn

I have a dataframe that looks like this: In[1]: df.head() Out[1]: dataset x y 1 56 45 1 31 67 7 22 85 2 90 45 2 15 42 There are about 4000 more rows. x and y is grouped by the datasets. I am trying…
ahnnni
  • 85
  • 6
0
votes
2 answers

Seaborn jointplot link x-axis to Matplotlib subplots

Is there a way to add additional subplots created with vanilla Matplotlib to (below) a Seaborn jointplot, sharing the x-axis? Ideally I'd like to control the ratio between the jointplot and the additional plots (similar to…
a11
  • 3,122
  • 4
  • 27
  • 66
0
votes
1 answer

Adjust legend Seaborn jointplot with several labels for one single dataframe

Suppose I have a pandas dataframe with this structure: Column 1 Column2 Column3 x1 y1 0 x2 y2 0 x3 y3 1 x4 y4 1 x5 y5 1 .... x_n-1 y_n-1 5 x_n y_n …
0
votes
0 answers

Seaborn jointplot kde not functionning on Jupyter

I am trying to use a seaborn jointplot with kind="kde", but it doesn't work. I am on Jupyter with Python 3. Seaborn is version 0.11.1. Here is my code : sns.jointplot(data=test_df, x = "skew", y = "vol", hue="periode", kind="kde") Here is the…
Fred Dujardin
  • 127
  • 1
  • 1
  • 8
0
votes
1 answer

Color as the third axis in seaborn jointplots

I have three quantities, x, y, z, which I would like to see the distribution of two of them and have the value of the third one as color of each point. I use seaborn.jointplot to plot distributions of x and y and use the z as the color parameter in…
Esi
  • 467
  • 3
  • 12
0
votes
1 answer

How to use sns.jointplot form specific data?

I want to use jointplot from seaborn. I am using the following code but I do not Understand sns.jointplot command. I want in X axis to have g and in y axis to have Years. import pandas as pd import numpy as np import matplotlib.pyplot as plt import…
Ivan Roma
  • 7
  • 1
  • 5