question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support polar axes labels with cartopy

See original GitHub issue

Description

Now, cartopy has supported the axes labels for polar projection.

But, proplot doesn’t work with the same newest version of cartopy.

Steps to reproduce

import proplot as plot
fig, axs = plot.subplots(proj='npstere')
axs.format(coast=True, latlines=10, lonlines=30, lonlabels=True, labels=True, boundinglat=60)

Expected behavior (matplotlib with cartopy)

image

Actual behavior: (proplot with cartopy) image

Equivalent steps in matplotlib

import matplotlib.pyplot as plt
import cartopy.crs as ccrs

ax = plt.subplot(projection=ccrs.NorthPolarStereo())
ax.set_extent([-180,180,90,60], ccrs.PlateCarree())
ax.coastlines()
ax.gridlines(draw_labels=True)

Proplot version

0.6.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

2reactions
zxdawncommented, Jul 4, 2021

@lukelbd Great! Thanks for coming back to polish proplot 😉 Hope your Ph.D. career goes well.

1reaction
Thomas-Moore-Creativecommented, Jul 4, 2021

indeed, as said by @zxdawn - great to see you back @lukelbd, keeping proplot shiny!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Polar plot axes labels for Cartopy - Stack Overflow
Is there any support yet to allow axes labels for polar plots Cartopy? I note that using ax.gridlines(draw_labels=True) is only supported ...
Read more >
Geographic and polar axes — ProPlot documentation
This section documents several useful features for working with polar plots and geographic projections. The geographic features are powered by cartopy (or, ...
Read more >
Gridlines and tick labels — cartopy 0.21.0 documentation
Gridlines and tick labels#. These examples demonstrate how to quickly add longitude and latitude gridlines and tick labels on a non-rectangular projection.
Read more >
Tick Labels — cartopy 0.21.0 documentation - SciTools
This example demonstrates adding tick labels to maps on rectangular projections using special tick formatters. tick labels. import cartopy.crs as ccrs from ...
Read more >
Cartopy map gridlines and tick labels - SciTools
Cartopy map gridlines and tick labels¶ ... The Gridliner instance, often created by calling the cartopy.mpl.geoaxes.GeoAxes.gridlines() method on a cartopy.mpl.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found