diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index e6148659540..c77bf5f0c26 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -111,7 +111,7 @@ class Session: ... ) ... # Read the contents of the temp file before it's deleted. ... print(fout.read().strip()) - -180 180 -90 90 -8596 5559 1 1 361 181 + -180 180 -90 90 -8592 5559 1 1 361 181 """ # The minimum version of GMT required @@ -1218,7 +1218,7 @@ def virtualfile_from_grid(self, grid): >>> print(data.lat.values.min(), data.lat.values.max()) -90.0 90.0 >>> print(data.values.min(), data.values.max()) - -8596.0 5559.0 + -8592.0 5559.0 >>> with Session() as ses: ... with ses.virtualfile_from_grid(data) as fin: ... # Send the output to a file so that we can read it @@ -1226,7 +1226,7 @@ def virtualfile_from_grid(self, grid): ... args = '{} -L0 -Cn ->{}'.format(fin, fout.name) ... ses.call_module('grdinfo', args) ... print(fout.read().strip()) - -180 180 -90 90 -8596 5559 1 1 361 181 + -180 180 -90 90 -8592 5559 1 1 361 181 >>> # The output is: w e s n z0 z1 dx dy n_columns n_rows """ diff --git a/pygmt/tests/baseline/test_grdcontour.png b/pygmt/tests/baseline/test_grdcontour.png index 310857087b0..05a7a8eb25a 100644 Binary files a/pygmt/tests/baseline/test_grdcontour.png and b/pygmt/tests/baseline/test_grdcontour.png differ diff --git a/pygmt/tests/baseline/test_grdcontour_file.png b/pygmt/tests/baseline/test_grdcontour_file.png index c3e1d8e0702..d5f44190776 100644 Binary files a/pygmt/tests/baseline/test_grdcontour_file.png and b/pygmt/tests/baseline/test_grdcontour_file.png differ diff --git a/pygmt/tests/baseline/test_grdcontour_interval_file_full_opts.png b/pygmt/tests/baseline/test_grdcontour_interval_file_full_opts.png index 9e7e9c6ab86..4e345dd9173 100644 Binary files a/pygmt/tests/baseline/test_grdcontour_interval_file_full_opts.png and b/pygmt/tests/baseline/test_grdcontour_interval_file_full_opts.png differ diff --git a/pygmt/tests/baseline/test_grdcontour_labels.png b/pygmt/tests/baseline/test_grdcontour_labels.png index dc914126d4f..622226fcea0 100644 Binary files a/pygmt/tests/baseline/test_grdcontour_labels.png and b/pygmt/tests/baseline/test_grdcontour_labels.png differ diff --git a/pygmt/tests/baseline/test_grdcontour_slice.png b/pygmt/tests/baseline/test_grdcontour_slice.png index e6d0d04cd5f..0688638196a 100644 Binary files a/pygmt/tests/baseline/test_grdcontour_slice.png and b/pygmt/tests/baseline/test_grdcontour_slice.png differ diff --git a/pygmt/tests/baseline/test_makecpt_continuous.png b/pygmt/tests/baseline/test_makecpt_continuous.png index 30895599193..56d5d243a58 100644 Binary files a/pygmt/tests/baseline/test_makecpt_continuous.png and b/pygmt/tests/baseline/test_makecpt_continuous.png differ diff --git a/pygmt/tests/baseline/test_makecpt_reverse_color_and_zsign.png b/pygmt/tests/baseline/test_makecpt_reverse_color_and_zsign.png index 52f8498675a..cd9c7ee3345 100644 Binary files a/pygmt/tests/baseline/test_makecpt_reverse_color_and_zsign.png and b/pygmt/tests/baseline/test_makecpt_reverse_color_and_zsign.png differ diff --git a/pygmt/tests/baseline/test_makecpt_reverse_color_only.png b/pygmt/tests/baseline/test_makecpt_reverse_color_only.png index 30a02ab53eb..81ae1a44350 100644 Binary files a/pygmt/tests/baseline/test_makecpt_reverse_color_only.png and b/pygmt/tests/baseline/test_makecpt_reverse_color_only.png differ diff --git a/pygmt/tests/baseline/test_makecpt_reverse_zsign_only.png b/pygmt/tests/baseline/test_makecpt_reverse_zsign_only.png index e65b503ae00..54ecee7ce92 100644 Binary files a/pygmt/tests/baseline/test_makecpt_reverse_zsign_only.png and b/pygmt/tests/baseline/test_makecpt_reverse_zsign_only.png differ diff --git a/pygmt/tests/baseline/test_makecpt_to_plot_grid.png b/pygmt/tests/baseline/test_makecpt_to_plot_grid.png index 88615c85e36..b7e848f4cbb 100644 Binary files a/pygmt/tests/baseline/test_makecpt_to_plot_grid.png and b/pygmt/tests/baseline/test_makecpt_to_plot_grid.png differ diff --git a/pygmt/tests/baseline/test_makecpt_to_plot_grid_scaled_with_series.png b/pygmt/tests/baseline/test_makecpt_to_plot_grid_scaled_with_series.png index 4d1ff63fb31..735e8379227 100644 Binary files a/pygmt/tests/baseline/test_makecpt_to_plot_grid_scaled_with_series.png and b/pygmt/tests/baseline/test_makecpt_to_plot_grid_scaled_with_series.png differ diff --git a/pygmt/tests/baseline/test_makecpt_truncated_at_zhigh_only.png b/pygmt/tests/baseline/test_makecpt_truncated_at_zhigh_only.png index e5f17356f08..e7d2f03a6d0 100644 Binary files a/pygmt/tests/baseline/test_makecpt_truncated_at_zhigh_only.png and b/pygmt/tests/baseline/test_makecpt_truncated_at_zhigh_only.png differ diff --git a/pygmt/tests/baseline/test_makecpt_truncated_at_zlow_only.png b/pygmt/tests/baseline/test_makecpt_truncated_at_zlow_only.png index d87434d6241..533b8b70f38 100644 Binary files a/pygmt/tests/baseline/test_makecpt_truncated_at_zlow_only.png and b/pygmt/tests/baseline/test_makecpt_truncated_at_zlow_only.png differ diff --git a/pygmt/tests/baseline/test_makecpt_truncated_to_zlow_zhigh.png b/pygmt/tests/baseline/test_makecpt_truncated_to_zlow_zhigh.png index c1fff4e1ada..14d800d4aab 100644 Binary files a/pygmt/tests/baseline/test_makecpt_truncated_to_zlow_zhigh.png and b/pygmt/tests/baseline/test_makecpt_truncated_to_zlow_zhigh.png differ diff --git a/pygmt/tests/test_datasets.py b/pygmt/tests/test_datasets.py index 40ed1e751cd..ad9fe68bf8e 100644 --- a/pygmt/tests/test_datasets.py +++ b/pygmt/tests/test_datasets.py @@ -62,7 +62,7 @@ def test_earth_relief_60(): assert data.shape == (181, 361) npt.assert_allclose(data.lat, np.arange(-90, 91, 1)) npt.assert_allclose(data.lon, np.arange(-180, 181, 1)) - npt.assert_allclose(data.min(), -8596) + npt.assert_allclose(data.min(), -8592) npt.assert_allclose(data.max(), 5559) @@ -72,5 +72,5 @@ def test_earth_relief_30(): assert data.shape == (361, 721) npt.assert_allclose(data.lat, np.arange(-90, 90.5, 0.5)) npt.assert_allclose(data.lon, np.arange(-180, 180.5, 0.5)) - npt.assert_allclose(data.min(), -9458) + npt.assert_allclose(data.min(), -9460) npt.assert_allclose(data.max(), 5888) diff --git a/pygmt/tests/test_info.py b/pygmt/tests/test_info.py index 5ff0739d313..75f7e732a51 100644 --- a/pygmt/tests/test_info.py +++ b/pygmt/tests/test_info.py @@ -59,13 +59,13 @@ def test_grdinfo(): "Make sure grd info works as expected" grid = load_earth_relief() result = grdinfo(grid, L=0, C="n") - assert result.strip() == "-180 180 -90 90 -8596 5559 1 1 361 181" + assert result.strip() == "-180 180 -90 90 -8592 5559 1 1 361 181" def test_grdinfo_file(): "Test grdinfo with file input" result = grdinfo("@earth_relief_60m", L=0, C="n") - assert result.strip() == "-180 180 -90 90 -8596 5559 1 1 361 181" + assert result.strip() == "-180 180 -90 90 -8592 5559 1 1 361 181" def test_grdinfo_fails():