0

i'm plotting 3 side by side line plots:

data = df_chuck_from_db.groupby('day')['price'].agg(['min','max','mean'])
data.reset_index(inplace=True)

fig, (ax1, ax2, ax3) = plt.subplots(ncols=3, sharey=True, figsize=(16,6))

data.plot(x='day', y='mean', c='lightsteelblue', ax=ax1)
data.plot(x='day', y='max', c='lightsteelblue', ax=ax2)
data.plot(x='day', y='min', c='lightsteelblue', ax=ax3)

which give me the output: enter image description here

and what i would like to achieve would be this: enter image description here

can the y-axis be tweaked on the first plot (mean) to be different from the other 2 plots?

vestland
  • 55,229
  • 37
  • 187
  • 305
laminado
  • 69
  • 1
  • 3
  • 11

0 Answers0