julia - Generic Mapping Tools showing grid when land color changed from default - Stack Overflow

I'm using the Julia language.I have plotted a coast mapusing GMTp1 = coast(region=[-138, -90, 45

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

A 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744724429a4590099.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信