Skip to content

Commit fae2ceb

Browse files
authored
Figure.plot: Update parameter 'color' to 'fill' in test_legend.py and test_makecpt.py (#2198)
1 parent 7e6f1cd commit fae2ceb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pygmt/tests/test_legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ def test_legend_entries():
4848
fig.plot(
4949
data="@Table_5_11.txt",
5050
style="c0.15i",
51-
color="lightgreen",
51+
fill="lightgreen",
5252
pen="faint",
5353
label="Apples",
5454
)
5555
fig.plot(data="@Table_5_11.txt", pen="1.5p,gray", label="My lines")
56-
fig.plot(data="@Table_5_11.txt", style="t0.15i", color="orange", label="Oranges")
56+
fig.plot(data="@Table_5_11.txt", style="t0.15i", fill="orange", label="Oranges")
5757
fig.legend(position="JTR+jTR")
5858

5959
return fig

pygmt/tests/test_makecpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_makecpt_plot_points(points):
3939
fig.plot(
4040
x=points[:, 0],
4141
y=points[:, 1],
42-
color=points[:, 2],
42+
fill=points[:, 2],
4343
region=[10, 70, -5, 10],
4444
style="c1c",
4545
cmap=True,

0 commit comments

Comments
 (0)