Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance text with extra functionality and aliases #481

Merged
merged 16 commits into from Jun 21, 2020
Merged

Commits on Jun 19, 2020

  1. Allow passing str type into angle argument of text

    So that we can set angle=True or angle="", and users can parse the angle from a textfile (in GMT it will be `-F+a`. Added a test case for this, and ensure that angle/font/justify=True (i.e. setting a boolean type) works.
    weiji14 committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    4c52613 View commit details
    Browse the repository at this point in the history
  2. Alias pen(W) for text

    weiji14 committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    138617f View commit details
    Browse the repository at this point in the history
  3. Alias clearance(C) for text

    weiji14 committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    45a9858 View commit details
    Browse the repository at this point in the history
  4. Alias fill(G) for text

    weiji14 committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    9b8e837 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    46e98d7 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2020

  1. Allow text placement using position argument instead of x/y pairs

    Equivalent to using `-F+c` in GMT.
    weiji14 committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    9e7a353 View commit details
    Browse the repository at this point in the history
  2. Alias offset(D) for text

    weiji14 committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    187a733 View commit details
    Browse the repository at this point in the history
  3. Remove some lines in docstring

    Co-Authored-By: Dongdong Tian <seisman.info@gmail.com>
    weiji14 and seisman committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    9f42ce1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ada1f6d View commit details
    Browse the repository at this point in the history
  5. Add centre-middle text to set up map frame first

    So that we don't plot the map frame four times in a loop.
    weiji14 committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    0b80786 View commit details
    Browse the repository at this point in the history
  6. Remove check for missing file in textfiles

    Because it doesn't check for remote @... files. GMT will raise an appropriate GMTClibError if the file isn't found.
    weiji14 committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    1f1d323 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8b8a1ba View commit details
    Browse the repository at this point in the history
  8. Refactor text to use -F+t argument when position is set

    Fixes issue with having a blankspace offset in front of TL and BL before. The text can be directly given to the -F+t argument, and we skip using the temporary file. Also made sure that spaces in textstring will work properly.
    weiji14 committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    d48bfb5 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2020

  1. Have test_text_position plot at all 9 possible positions

    Co-Authored-By: Dongdong Tian <seisman.info@gmail.com>
    weiji14 and seisman committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    3d942d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0682c28 View commit details
    Browse the repository at this point in the history
  3. Change test name from external to remote

    Co-Authored-By: Dongdong Tian <seisman.info@gmail.com>
    weiji14 and seisman committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    f92beb2 View commit details
    Browse the repository at this point in the history