Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from xylar/fix_plotting_at_poles
Fix plotting issues by mapping from lon/lat manually This resolves an unanticipated side-effect of https://github.com/matplotlib/basemap/blob/master/lib/mpl_toolkits/basemap/__init__.py#L510. The coordinates are also being shifted for the option latlon=True before they are converted to map coordinates, viz https://github.com/matplotlib/basemap/blob/master/lib/mpl_toolkits/basemap/__init__.py#L543. It removes strange plotting errors that occur using standard basemap plotting with the latlon=True option. The fix produces reasonable plots for standard plot type options, e.g., `['mill2','mill', 'northpole', 'southpole']` with demonstrated success for the following regions: https://github.com/MPAS-Dev/geometric_features/blob/master/ocean/region/Arctic_Ocean/region.geojson https://github.com/MPAS-Dev/geometric_features/blob/master/ocean/region/Southern_Ocean/region.geojson https://github.com/MPAS-Dev/geometric_features/blob/master/landice/region/Antarctica_IMBIE2/region.geojson https://github.com/MPAS-Dev/geometric_features/blob/master/landice/region/southGreenland1/region.geojson https://github.com/MPAS-Dev/geometric_features/blob/master/iceshelves/region/Ronne_1/region.geojson
- Loading branch information