Uh oh!
There was an error while loading. Please reload this page.
Add sequence_space converter in kwargs_to_string - #325
Conversation
Introduce new 'sequence_space' converter for transforming a Python list or tuple into a space separated string. Useful in cases for e.g. when multiple file inputs can be passed into some module. Also added a doctest example into the kwargs_to_string function.
Uh oh!
There was an error while loading. Please reload this page.
weiji14
commented
Oct 9, 2019
While working on Might open another PR on this so that users can do |
seisman
commented
Oct 9, 2019
It should already works, as we already can have multiple -B options. importpygmtfig=pygmt.Figure()
fig.basemap(region="0/10/0/10", projection="X10c", frame=["xaf", "yaf", "+tTitle"])
fig.show() |
weiji14
commented
Oct 9, 2019
Wow, I never knew that worked! Must have missed that in one of the tutorials 😱 |
Using the sequence_space processor in #325 to allow for passing in a list of textfiles to be plotted! Problem with that `text` would consider a numpy matrix as a list to be parsed, so the code was updated to fix that. Unit tests and docstrings updated. Strangely enough, the 'projection'/'-J' argument doesn't seem to be required anymore? Also regenerated baseline plots to use their rightful name...
Description of proposed changes
Introduce new 'sequence_space' converter for transforming a Python list or tuple into a space separated string. Useful in cases for e.g. when multiple file inputs can be passed into some module.
For example:
Fixes#322
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.