1d and 2d plots working again with new fitsjs api