Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Created September 23, 2022 19:58
Show Gist options
  • Save samirsaci/12d69dc52b9d66d5fb8f3a7a94b1d119 to your computer and use it in GitHub Desktop.
Save samirsaci/12d69dc52b9d66d5fb8f3a7a94b1d119 to your computer and use it in GitHub Desktop.
Automate PPT
# Bar Plot: split per lines per orders
fig, ax = plt.subplots(figsize=(12, 6))
df_lior.plot.bar(figsize=(10, 6), edgecolor='black', x='WEEK', y=COLS_IN[0], color='tab:blue', legend= True, ax = ax)
df_lior.plot.bar(figsize=(10, 6), edgecolor='black', x='WEEK', y=COLS_IN[1], color='tab:red', legend= True, ax = ax)
df_lior.plot.bar(figsize=(10, 6), edgecolor='black', x='WEEK', y=COLS_IN[2], color='tab:orange', legend= True, ax = ax)
df_lior.plot.bar(figsize=(10, 6), edgecolor='black', x='WEEK', y=COLS_IN[3], color='darkblue', legend= True, ax = ax)
df_lior.plot.bar(figsize=(10, 6), edgecolor='black', x='WEEK', y=COLS_IN[4], color='brown', legend= True, ax = ax)
df_lior.plot.bar(figsize=(10, 6), edgecolor='black', x='WEEK', y=COLS_IN[5], color='grey', legend= True, ax = ax)
plt.xlabel('Week', fontsize = 14)
plt.ylabel('Number of Orders', fontsize = 14)
plt.title('Split of orders by number of lines/order', fontsize = 14)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment