diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index 00487550247..ba6f87763d9 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -1822,9 +1822,9 @@ def virtualfile_in( # noqa: PLR0912 elif kind == "matrix": # GMT can only accept a 2-D matrix which are signed integer (i), unsigned # integer (u) or floating point (f) types. For other data types, we need to - # use virtualfile_from_vectors instead, which turns the matrix into list of - # vectors and allows for better handling of string type inputs (e.g. for - # datetime data types). + # use virtualfile_from_vectors instead, which turns the matrix into a list + # of vectors and allows for better handling of non-integer/float type inputs + # (e.g. for string or datetime data types). _data = (data,) if data.dtype.kind not in "iuf": _virtualfile_from = self.virtualfile_from_vectors