In [1]:
from ahh import exp, vis
import matplotlib.pyplot as plt
In [2]:
x, y = exp.arr_1d(xy=True)
In [3]:
fig = plt.figure(figsize=(17, 6))
ax = plt.subplot(121)
_ = ax.plot(x, y)
_ = ax.set_title('Title')
_ = ax.set_xlabel('Xlabel')
_ = ax.set_ylabel('Ylabel') # reference
ax2 = plt.subplot(122)
ax2.plot(x, y)
_ = ax2.set_title('Pretty Title')
_ = ax2.set_xlabel('Pretty Xlabel')
_ = ax2.set_ylabel('Pretty Ylabel')
_ = vis.prettify_ax(ax2) # after prettifying
Out[3]:
In [ ]: