Skip to content

Commit

Permalink
Merge pull request #58 from kenkehoe/geoplot2
Browse files Browse the repository at this point in the history
Geoplot2
  • Loading branch information
rcjackson authored May 15, 2019
2 parents 55aa847 + 5bdfa22 commit c42831c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions act/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,8 +1049,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 @@ -1521,7 +1521,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 @@ -1715,7 +1715,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

0 comments on commit c42831c

Please sign in to comment.