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

Geoplot2 #58

Merged
merged 3 commits into from
May 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions act/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,8 @@ def time_height_scatter(
cb_label = data_field

colorbar_map = plt.cm.get_cmap(cmap)
self.fig.subplots_adjust(left=0.1, right=0.86,
bottom=0.16, top=0.91)
self.fig.subplots_adjust(left=0.13, right=0.86,
bottom=0.19, top=0.90)
ax1 = self.plot(alt_field, color='black', **kwargs)
ax1.set_ylabel(alt_label)
ax2 = ax1.twinx()
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def plot_from_u_and_v(self, u_field, v_field, p_field,
v_red = np.zeros_like(p_levels_to_plot) * getattr(units, v_units)

for i in range(len(p_levels_to_plot)):
index = np.argmin(np.abs(p_levels_to_plot[i] - p))
index = np.argmin(np.abs(p_levels_to_plot[i] - p.magnitude))
u_red[i] = u[index].magnitude * getattr(units, u_units)
v_red[i] = v[index].magnitude * getattr(units, v_units)

Expand Down Expand Up @@ -1714,7 +1714,7 @@ def geoplot(self, data_field=None, lat_field='lat',

# Create base plot projection
ax = plt.axes(projection=projection)
plt.subplots_adjust(left=0.01, right=0.99, bottom=0.05, top=0.93)
plt.subplots_adjust(left=0.01, right=0.99, bottom=0.08, top=0.93)
ax.set_extent([lon_limits[0], lon_limits[1], lat_limits[0],
lat_limits[1]], crs=projection)

Expand Down