Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion pygmt/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def test_plot_fail_no_data(data):

def test_plot_fail_size_color(data):
"""
Should raise an exception if array sizes and color are used with matrix.
Should raise an exception if array color, sizes and intensity are used with
matrix.
"""
fig = Figure()
with pytest.raises(GMTInvalidInput):
Expand All @@ -117,6 +118,16 @@ def test_plot_fail_size_color(data):
color="red",
frame="afg",
)
with pytest.raises(GMTInvalidInput):
fig.plot(
data=data,
region=region,
projection="X4i",
style="c0.2c",
color="red",
frame="afg",
intensity=data[:, 2],
)


@check_figures_equal()
Expand Down