psyplot / psy-maps

The psyplot plugin for visualizations on a map
https://psyplot.github.io/psy-maps
8 stars 5 forks source link

autoscale axes when map_extent is None #12

Closed Chilipp closed 4 years ago

Chilipp commented 4 years ago

This commit changes the behavious of the None value for the map_extent formatoption. Now, map_extent=None triggers a call of the plotter.ax.autoscale method, whereas the old behaviour was to use the lonlatbox of the lonlatbox formatoption. This causes problems for regional files close to the map-boundary (see https://github.com/psyplot/psy-maps/issues/11).

The old behaviour can be retained by setting map_extent='data'

Closes #11

codecov-io commented 4 years ago

Codecov Report

Merging #12 into master will decrease coverage by 0.91%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   86.93%   86.01%   -0.92%     
==========================================
  Files           5        5              
  Lines        1041     1037       -4     
==========================================
- Hits          905      892      -13     
- Misses        136      145       +9     
Impacted Files Coverage Δ
psy_maps/plotters.py 85.89% <100.00%> (-0.99%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5604cab...c23e3d0. Read the comment docs.