We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d3e197 commit c9e525fCopy full SHA for c9e525f
pygmt/src/plot3d.py
@@ -177,6 +177,18 @@ def plot3d(
177
extra_arrays = []
178
if "S" in kwargs and kwargs["S"][0] in "vV" and direction is not None:
179
extra_arrays.extend(direction)
180
+ if (
181
+ "S" not in kwargs and kind == "file"
182
+ ): # chacking that the data is a file path to set defualt style
183
+ try:
184
+ with open(pygmt.which(data), "r") as file:
185
+ line = file.readline()
186
187
+ "@GMULTIPOINT" in line or "@GPOINT" in line
188
+ ): # if the file is gmt style and geometry is set to Point
189
+ kwargs["S"] = "u0.2c"
190
+ except FileNotFoundError:
191
+ pas
192
if "G" in kwargs and not isinstance(kwargs["G"], str):
193
if kind != "vectors":
194
raise GMTInvalidInput(
0 commit comments