BUG: ensure plt is imported before it's used in hist_frame

If the `by` argument to `hist_frame` isn't `None`, then `plt.setp` can be called be called before `plt` is imported.  This moves the import to the start of the function to avoid this.