plot: improved keyword argument parsing