Код: Выделить всё
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import pandas as pd
%matplotlib inline
# create df
x = np.linspace(0, 2 * np.pi, 400)
df = pd.DataFrame({'x': x, 'y': np.sin(x ** 2)})
# Two subplots
f, (ax1, ax2) = plt.subplots(1, 2, sharey=True)
ax1.plot(df.x, df.y)
ax1.set_title('Sharing Y axis')
ax2.scatter(df.x, df.y)
plt.show()

Но когда я делаю то же самое с lmplot вместо любого другого типа диаграмм, я получаю ошибку:
AttributeError: у объекта «AxesSubplot» нет атрибута «lmplot»
Есть ли способ построить диаграммы этих типов бок о бок?
Подробнее здесь: https://stackoverflow.com/questions/330 ... de-by-side