my own mathplotlib library