wrote generic plot_points() and get_datum_height() functions