Skip to content

Commit a3ebfd5

Browse files
authored
Update the baseline image for pygmt/test/test_plot.py:test_plot_matrix (#1551)
1 parent fb6158e commit a3ebfd5

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
outs:
2-
- md5: 41e2e88122f0a2036943ec8017ac0f4f
3-
size: 17139
2+
- md5: 868f554737ce7b116b50e68ea32b6331
3+
size: 13639
44
path: test_plot_matrix.png

pygmt/tests/test_plot.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
import pandas as pd
1010
import pytest
1111
import xarray as xr
12-
from pygmt import Figure
12+
from packaging.version import Version
13+
from pygmt import Figure, clib
1314
from pygmt.exceptions import GMTInvalidInput
1415
from pygmt.helpers import GMTTempFile
1516

1617
TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
1718
POINTS_DATA = os.path.join(TEST_DATA_DIR, "points.txt")
1819

20+
with clib.Session() as _lib:
21+
gmt_version = Version(_lib.info["version"])
22+
1923

2024
@pytest.fixture(scope="module")
2125
def data():
@@ -299,6 +303,10 @@ def test_plot_sizes_colors_transparencies():
299303

300304

301305
@pytest.mark.mpl_image_compare
306+
@pytest.mark.xfail(
307+
condition=gmt_version <= Version("6.2.0"),
308+
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/5799.",
309+
)
302310
def test_plot_matrix(data):
303311
"""
304312
Plot the data passing in a matrix and specifying columns.
@@ -311,7 +319,7 @@ def test_plot_matrix(data):
311319
style="cc",
312320
color="#aaaaaa",
313321
frame="a",
314-
incols="0,1,2+s0.005",
322+
incols="0,1,2+s0.5",
315323
)
316324
return fig
317325

0 commit comments

Comments
 (0)