BUG: take into account vmin and vmax of the data

Fix #5