I have two pandas dataframes I would like to plot in the same seaborn jointplot. It looks something like this (commands are don in an IPython shell; ipython --pylab):
import pandas as pd
import seaborn as sns
iris = sns.load_dataset('iris')
df = pd.read_csv('my_dataset.csv')
g = sns.jointplot('sepal_length', 'sepal_width', iris)
The keys in the two dataframes are identical.
How do I plot my values in the same plot (different color of course)? And even more detailed: How do I plot both dataset, but only having the distribution of the first on at the top and side? I.e. only plot the dots.


hueoption ofpairplotto get different colors (after first merging the datasets). stanford.edu/~mwaskom/software/seaborn/examples/… - JohnE%matplotlib inlineafter starting ipython rather than invoking with--pylab- JohnE--pylaband%matplotlib inline? - Daniel Thaagaard Andreasen