Answers for "create multiple column plots matplotlib"

1

how to plot two columns graphs in python

df.plot(x='col_name_1', y='col_name_2')
Posted by: Guest on May-30-2020
0

create plots with multiple dataframes python

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

scenarios = ['scen-1', 'scen-2']

fig, ax = plt.subplots()

for index, item in enumerate(scenarios):
    df = pd.DataFrame({'A' : np.random.randn(4)})
    print df
    df.plot(ax=ax)

plt.ylabel('y-label')
plt.xlabel('x-label')
plt.title('Title')
plt.show()
Posted by: Guest on August-23-2020

Code answers related to "create multiple column plots matplotlib"

Python Answers by Framework

Browse Popular Code Answers by Language