Skip to content

Commit 423e5dc

Browse files
committed
Should transpose the 2-D matrix before passing to virtualfile_from_vectors
1 parent ef6e6aa commit 423e5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/clib/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ def virtualfile_in( # noqa: PLR0912
18311831
_data = (data,)
18321832
if data.dtype.kind not in "iuf":
18331833
_virtualfile_from = self.virtualfile_from_vectors
1834-
_data = data
1834+
_data = data.T
18351835

18361836
# Finally create the virtualfile from the data, to be passed into GMT
18371837
file_context = _virtualfile_from(*_data)

0 commit comments

Comments
 (0)