Skip to content

Commit

Permalink
Merge branch 'AdamTheisen-geoplot'
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed Oct 9, 2023
2 parents cf6ee7a + a7bb823 commit 6b9b3a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file modified act/tests/baseline/test_geoplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion act/tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,13 @@ def test_xsection_plot_map():
@pytest.mark.mpl_image_compare(tolerance=30)
def test_geoplot():
sonde_ds = arm.read_netcdf(sample_files.EXAMPLE_SONDE1)
geodisplay = GeographicPlotDisplay({'sgpsondewnpnC1.b1': sonde_ds})
geodisplay = GeographicPlotDisplay({'sgpsondewnpnC1.b1': sonde_ds}, figsize=(12,10))
try:
geodisplay.geoplot(
'tdry',
marker='.',
stamen='terrain',
tile=9,
cartopy_feature=[
'STATES',
'LAND',
Expand Down
4 changes: 2 additions & 2 deletions examples/plotting/plot_aaf_track.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

# Use GeographicPlotDisplay for referencing.
# NOTE: Cartopy is needed!
display = act.plotting.GeographicPlotDisplay(ds)
display = act.plotting.GeographicPlotDisplay(ds, figsize=(12, 10))

# Plot the ARM AAF flight track with respect to Pressure Altitude
display.geoplot('press_alt', lat_field='lat', lon_field='lon', gridlines=True)
display.geoplot('press_alt', lat_field='lat', lon_field='lon', stamen='terrain', tile=9)

# Display the plot
plt.show()

0 comments on commit 6b9b3a1

Please sign in to comment.