Skip to content

Commit

Permalink
Update data_plot_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emcduffie committed Nov 7, 2023
1 parent 6bc5a15 commit 1fdbfb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/Global_Functions/data_plot_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def plot_annual_emission_flux_map(Emi_flux_map, Lat, Lon, year_range, title_str,
m.drawcountries(linewidth=0.4,zorder=3)

xpi,ypi = m(xp,yp)
plot = m.pcolor(xpi,ypi,zp.transpose(), cmap=my_cmap, vmin=10**-15, vmax=scale_max, snap=True,zorder=2,shading='nearest')
plot = m.pcolormesh(xpi,ypi,zp.transpose(), cmap=my_cmap, vmin=10**-15, vmax=scale_max, snap=True,zorder=2,shading='nearest')
cb = m.colorbar(plot, location = "bottom", pad = "1%")
tick_locator = ticker.MaxNLocator(nbins=5)
cb.locator = tick_locator
Expand Down Expand Up @@ -145,7 +145,7 @@ def plot_diff_emission_flux_map(Emi_flux_map, Lat, Lon, year_range, title_str,sa
m.drawstates(linewidth=0.2,zorder=3)
m.drawcountries(linewidth=0.4,zorder=3)
xpi,ypi = m(xp,yp)
plot = m.pcolor(xpi,ypi,zp.transpose(), cmap=my_cmap, vmin=-2.5, vmax=2.5, snap=True,zorder=2,shading='nearest')
plot = m.pcolormesh(xpi,ypi,zp.transpose(), cmap=my_cmap, vmin=-2.5, vmax=2.5, snap=True,zorder=2,shading='nearest')
cb = m.colorbar(plot, location = "bottom", pad = "1%")
tick_locator = ticker.MaxNLocator(nbins=5)
cb.locator = tick_locator
Expand Down Expand Up @@ -223,7 +223,7 @@ def plot_annual_activity_map(Activity_Map, Plot_Frac, Lat, Lon, year_range, titl
# scale_max

xpi,ypi = m(xp,yp)
plot = m.pcolor(xpi,ypi,zp.transpose(), cmap=my_cmap, vmin=10**-15, vmax=scale_max, snap=True,zorder=2,shading='nearest')
plot = m.pcolormesh(xpi,ypi,zp.transpose(), cmap=my_cmap, vmin=10**-15, vmax=scale_max, snap=True,zorder=2,shading='nearest')
cb = m.colorbar(plot, location = "bottom", pad = "1%")
tick_locator = ticker.MaxNLocator(nbins=5)
cb.locator = tick_locator
Expand Down

0 comments on commit 1fdbfb4

Please sign in to comment.