# pip install ipympl17 Interactividad en Matplotlib
%matplotlib widget
import pandas as pd
import matplotlib.pyplot as plt
from dateutil.parser import parsef = '../data/Temixco_2018_10Min.csv'
tmx = pd.read_csv(f,index_col=0,parse_dates=True)
columnas = tmx.columns
columnasIndex(['Ib', 'Ig', 'To', 'RH', 'WS', 'WD', 'P'], dtype='object')
fig, ax = plt.subplots()
for columna in columnas[:2]:
ax.plot(tmx[columna],label=columna)
ax.set_ylim(0,1200)(0.0, 1200.0)
fig, ax = plt.subplots(2,sharex=True)
for columna in columnas[:2]:
ax[0].plot(tmx[columna],label=columna)
ax[1].plot(tmx.To,label="To")
for eje in ax:
eje.legend()
eje.grid()
plt.show()