admin管理员组文章数量:1391944
I'm using the Julia language.
I have plotted a coast map
using GMT
p1 = coast(
region=[-138, -90, 45, 63.5],
proj=(name=:eqdc, center=[-114, 54.25], parallels=[47, 61]),
xaxis=(annot=10,), # Longitude (EW) ticks every 10 degrees
yaxis=(annot=5,), # Latitude (NS) ticks every 5 degrees
res=:full,
borders=((type=1, pen=("thinner",)), (type=2, pen=("thinner",))),
shore=:thinnest,
show=true
)
normal coastline map with land the default white
Adding in the line land = "#565A5C",
results in an image that has ghost gridlines that change depending on the level of resolution (res=:full vs res=:high).
the same coastline map with land now a gray with a fine grid
the same but a slightly less fine grid
How to omit these gray grid lines?
I'm using the Julia language.
I have plotted a coast map
using GMT
p1 = coast(
region=[-138, -90, 45, 63.5],
proj=(name=:eqdc, center=[-114, 54.25], parallels=[47, 61]),
xaxis=(annot=10,), # Longitude (EW) ticks every 10 degrees
yaxis=(annot=5,), # Latitude (NS) ticks every 5 degrees
res=:full,
borders=((type=1, pen=("thinner",)), (type=2, pen=("thinner",))),
shore=:thinnest,
show=true
)
normal coastline map with land the default white
Adding in the line land = "#565A5C",
results in an image that has ghost gridlines that change depending on the level of resolution (res=:full vs res=:high).
the same coastline map with land now a gray with a fine grid
the same but a slightly less fine grid
How to omit these gray grid lines?
Share Improve this question asked Mar 13 at 0:25 ChekhovsCannonChekhovsCannon 112 bronze badges1 Answer
Reset to default 0A possible workaround: Instead of specifying a fill as a color, specify any fill pattern number (1 to 90) and use the same color for background and foreground color. For the example given, the fill could be land="P1+b#565A5C+f#565A5C",
using GMT
p1 = coast(
region=[-138, -90, 45, 63.5],
proj=(name=:eqdc, center=[-114, 54.25], parallels=[47, 61]),
xaxis=(annot=10,), # Longitude (EW) ticks every 10 degrees
yaxis=(annot=5,), # Latitude (NS) ticks every 5 degrees
res=:full,
borders=((type=1, pen=("thinner",)), (type=2, pen=("thinner",))),
shore=:thinnest,
land="P1+b#565A5C+f#565A5C",
show=true
)
This might run about a factor of five more slowly, but it seems to work: no ghostly gray grid lines.
本文标签: juliaGeneric Mapping Tools showing grid when land color changed from defaultStack Overflow
版权声明:本文标题:julia - Generic Mapping Tools showing grid when land color changed from default - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744724429a2621885.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论