Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC: Update plot_grid_three_panel.py example to use new GridMapDisplay class #353

Merged
merged 1 commit into from
Aug 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 10 additions & 4 deletions examples/plotting/plot_grid_three_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
# panel 1, basemap, radar reflectivity and NARR overlay
ax1 = fig.add_axes(map_panel_axes)
display.plot_basemap()
display.plot_grid('REF', level=level, vmin=vmin, vmax=vmax)
display.plot_grid('REF', level=level, vmin=vmin, vmax=vmax, title_flag=False,
colorbar_flag=False)
display.plot_crosshairs(lon=lon, lat=lat)

# fetch NCEP NARR data
Expand Down Expand Up @@ -81,12 +82,17 @@

# panel 2, longitude slice.
ax2 = fig.add_axes(x_cut_panel_axes)
display.plot_longitude_slice('REF', lon=lon, lat=lat)
ax2.set_xlabel('Distance from SGP CF (km)')
display.plot_longitude_slice(
'REF', lon=lon, lat=lat, vmin=vmin, vmax=vmax, title_flag=False,
colorbar_flag=False, edges=False,
axislabels=('Distance from SGP CF (km)', 'Height (km)'))

# panel 3, latitude slice
ax3 = fig.add_axes(y_cut_panel_axes)
display.plot_latitude_slice('REF', lon=lon, lat=lat)
display.plot_latitude_slice(
'REF', lon=lon, lat=lat, vmin=vmin, vmax=vmax, title_flag=False,
colorbar_flag=False, edges=False,
axislabels=('', 'Height (km)'))

# add a title
slc_height = grid.axes['z_disp']['data'][level]
Expand Down