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]:
[<matplotlib.lines.Line2D at 0x7f25a75a0048>]

In [ ]: