In [1]:
%load_ext watermark
%watermark -a 'Sebastian Raschka' -u -v -p matplotlib,pandas,mlxtend
In [10]:
import pandas as pd
s1 = [1.1, 1.5]
s2 = [2.1, 1.8]
s3 = [3.1, 2.1]
s4 = [3.9, 2.5]
data = [s1, s2, s3, s4]
df = pd.DataFrame(data, columns=['X1', 'X2'])
df
Out[10]:
In [11]:
%matplotlib inline
from mlxtend.matplotlib import enrichment_plot
enrichment_plot(df)
In [12]:
enrichment_plot(df, markers='os', ylim=[0,5])
In [13]:
enrichment_plot(df, markers='os', linestyles='-,--')
In [14]:
enrichment_plot(df, markers='os', linestyles='-,--', invert_axes=True)
In [ ]: