def save_mpl_subplot(plot, filename):
    """save the mpl subplot with dpi high enough that lines are not lost!

    :param plot: the mpl plot
    :type plot: mpl plot
    :param filename: the name to give the file including dir
    :type filename: str
    """
    plot.savefig(filename, dpi=300)
