Skip to content

Commit

Permalink
Check that plotting text from an external file (@Table_5_11.txt) works
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Jun 21, 2020
1 parent 3d942d1 commit 0682c28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions pygmt/tests/test_text.py
Expand Up @@ -78,6 +78,16 @@ def test_text_input_single_filename():
return fig


@pytest.mark.mpl_image_compare
def test_text_input_external_filename():
"""
Run text by passing in an external filename to textfiles
"""
fig = Figure()
fig.text(region=[0, 6.5, 0, 6.5], textfiles="@Table_5_11.txt")
return fig


@pytest.mark.mpl_image_compare
def test_text_input_multiple_filenames():
"""
Expand Down

0 comments on commit 0682c28

Please sign in to comment.