Optional plotting and error if measurement doesn't return dict