File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
outs:
2
- - md5: 41e2e88122f0a2036943ec8017ac0f4f
3
- size: 17139
2
+ - md5: 868f554737ce7b116b50e68ea32b6331
3
+ size: 13639
4
4
path: test_plot_matrix.png
Original file line number Diff line number Diff line change 9
9
import pandas as pd
10
10
import pytest
11
11
import xarray as xr
12
- from pygmt import Figure
12
+ from packaging .version import Version
13
+ from pygmt import Figure , clib
13
14
from pygmt .exceptions import GMTInvalidInput
14
15
from pygmt .helpers import GMTTempFile
15
16
16
17
TEST_DATA_DIR = os .path .join (os .path .dirname (__file__ ), "data" )
17
18
POINTS_DATA = os .path .join (TEST_DATA_DIR , "points.txt" )
18
19
20
+ with clib .Session () as _lib :
21
+ gmt_version = Version (_lib .info ["version" ])
22
+
19
23
20
24
@pytest .fixture (scope = "module" )
21
25
def data ():
@@ -299,6 +303,10 @@ def test_plot_sizes_colors_transparencies():
299
303
300
304
301
305
@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
+ )
302
310
def test_plot_matrix (data ):
303
311
"""
304
312
Plot the data passing in a matrix and specifying columns.
@@ -311,7 +319,7 @@ def test_plot_matrix(data):
311
319
style = "cc" ,
312
320
color = "#aaaaaa" ,
313
321
frame = "a" ,
314
- incols = "0,1,2+s0.005 " ,
322
+ incols = "0,1,2+s0.5 " ,
315
323
)
316
324
return fig
317
325
You can’t perform that action at this time.
0 commit comments