Skip to content

Map projection gridlines are layered much too high #61

Closed
@bradyrx

Description

@bradyrx

For some reason, it seems like the zorder layer of the grid lines added to a map projection is really high. I.e, they are prioritized to be layered on top of most other things. This is being prioritized here I think:

https://github.com/lukelbd/proplot/blob/7132b407d5ed9b777f28f3a4c15564321f87ec95/proplot/axes.py#L2952

Perhaps there can be an rc config option called proplot.rc['geogrid.zorder'] or something like that. Here's what happens currently with the default:

import proplot as plot
plot.rc['land.color'] = '#d3d3d3'

f, ax = plot.subplots(proj='spstere')

ax.text(0, 0, 'test', color='k')

ax.format(land=True, boundinglat=-40)

Screen Shot 2019-10-31 at 3 02 31 PM

And how I have to hack it so my continents are above my grid lines and my text doesn't get contaminated:

import cartopy.feature as cfeature
f, ax = plot.subplots(proj='spstere')

ax.add_feature(cfeature.LAND, color='#d3d3d3', zorder=5)
ax.text(0, 0, 'test', color='k', zorder=6)

ax.format(boundinglat=-40)

Screen Shot 2019-10-31 at 3 02 33 PM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions