Plots dashed and dotted lines with user-defined linestyles, and with accurate dash lengths.
Author: Edward Abraham
It looks like I need to trick the legend, by plotting dashed lines out of the plot area, so that, the legend shows my dashed lines instead of solid lines. Am I missing something? Is there an easier way around this problem?