Skip to content

Commit

Permalink
Update the baseline image for pygmt/test/test_plot.py:test_plot_matrix (
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored and Josh Sixsmith committed Dec 21, 2022
1 parent 7e99c31 commit 9f1bfd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pygmt/tests/baseline/test_plot_matrix.png.dvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
outs:
- md5: 41e2e88122f0a2036943ec8017ac0f4f
size: 17139
- md5: 868f554737ce7b116b50e68ea32b6331
size: 13639
path: test_plot_matrix.png
12 changes: 10 additions & 2 deletions pygmt/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@
import pandas as pd
import pytest
import xarray as xr
from pygmt import Figure
from packaging.version import Version
from pygmt import Figure, clib
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import GMTTempFile

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

with clib.Session() as _lib:
gmt_version = Version(_lib.info["version"])


@pytest.fixture(scope="module")
def data():
Expand Down Expand Up @@ -299,6 +303,10 @@ def test_plot_sizes_colors_transparencies():


@pytest.mark.mpl_image_compare
@pytest.mark.xfail(
condition=gmt_version <= Version("6.2.0"),
reason="Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/5799.",
)
def test_plot_matrix(data):
"""
Plot the data passing in a matrix and specifying columns.
Expand All @@ -311,7 +319,7 @@ def test_plot_matrix(data):
style="cc",
color="#aaaaaa",
frame="a",
incols="0,1,2+s0.005",
incols="0,1,2+s0.5",
)
return fig

Expand Down

0 comments on commit 9f1bfd5

Please sign in to comment.