You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/Gits/gmt/gmt-python/gmt/base_plotting.py in plot(self, x, y, data, sizes, direction, **kwargs)
314 kwargs = self._preprocess(**kwargs)
315
--> 316 kind = data_kind(data, x, y)
317
~/Gits/gmt/gmt-python/gmt/helpers/utils.py in data_kind(data, x, y, z)
70 """
71 if data is None and x is None and y is None:
---> 72 raise GMTInvalidInput("No input data provided.")
73 if data is not None and (x is not None or y is not None or z is not None):
74 raise GMTInvalidInput("Too much data. Use either data or x and y.")
GMTInvalidInput: No input data provided.
This is one of those weird quirks of GMT that are very unintuitive. Why would we call plot to move the cursor? We should implement a new module for this instead of allowing the T argument. Something like Figure.shift_origin(xoffset, yoffset).
Maybe. I'm not sure we should be adding so many new modules to GMT at this point. Particularly with the division increasing between modern and classic mode.
Activity
leouieda commentedon Jan 16, 2019
This is one of those weird quirks of GMT that are very unintuitive. Why would we call
plotto move the cursor? We should implement a new module for this instead of allowing theTargument. Something likeFigure.shift_origin(xoffset, yoffset).seisman commentedon Jan 16, 2019
Totally agree with you. Do you think it's better if GMT itself have a module like
gmt shift.leouieda commentedon Jan 16, 2019
Maybe. I'm not sure we should be adding so many new modules to GMT at this point. Particularly with the division increasing between modern and classic mode.
leouieda commentedon Jan 22, 2019
Created #267 to add a
shift_originmethod.