how to label a plot matplotlib code example Example: label axis matplotlib ax2.set_xlabel('time (s)')