With some text
print("Test")
Test
import numpy as np
import pandas as pd
np.random.seed(0)
dates = pd.date_range('20130101',periods=6)
df = pd.DataFrame(np.random.randn(6,4),index=dates,columns=list('ABCD'))
df
A | B | C | D | |
---|---|---|---|---|
2013-01-01 | 1.764052 | 0.400157 | 0.978738 | 2.240893 |
2013-01-02 | 1.867558 | -0.977278 | 0.950088 | -0.151357 |
2013-01-03 | -0.103219 | 0.410599 | 0.144044 | 1.454274 |
2013-01-04 | 0.761038 | 0.121675 | 0.443863 | 0.333674 |
2013-01-05 | 1.494079 | -0.205158 | 0.313068 | -0.854096 |
2013-01-06 | -2.552990 | 0.653619 | 0.864436 | -0.742165 |
import matplotlib.pyplot as plt
import numpy as np
# Some example data to display
x = np.linspace(0, 2 * np.pi, 400)
y = np.sin(x ** 2)
fig, axs = plt.subplots(2, 2)
axs[0, 0].plot(x, y)
axs[0, 0].set_title('Axis [0,0]')
axs[0, 1].plot(x, y, 'tab:orange')
axs[0, 1].set_title('Axis [0,1]')
axs[1, 0].plot(x, -y, 'tab:green')
axs[1, 0].set_title('Axis [1,0]')
axs[1, 1].plot(x, -y, 'tab:red')
axs[1, 1].set_title('Axis [1,1]')
for ax in axs.flat:
ax.set(xlabel='x-label', ylabel='y-label')
# Hide x labels and tick labels for top plots and y ticks for right plots.
for ax in axs.flat:
ax.label_outer()
plt.show()