neuromatch / climate-course-content

Computational Climate Science syllabus
BSD 3-Clause "New" or "Revised" License
14 stars 26 forks source link

Plots generated by solution code for W1D5 Tutorial 7's Code Exercise 2 do not match example output #88

Open pyneet opened 1 month ago

pyneet commented 1 month ago

Coding Exercise 2 in W1D5 Tutorial 7 includes the following example output:

No matter how many times I tweaked my code, the resulting maps had land masses that were colored in.

Upon running the solution code within my notebook, I got the exact same result. It looked like this:

w1d5_t7_ce2_solution_code_output

I believe that the cfeatures functionality within cartopy can help resolve this problem. For each plot in the figure, we can replace ax.add_coastline() with the following:

ax.add_feature(cfeature.COASTLINES, edgecolor='#000000')
ax.add_feature(cfeature.LAND, facecolor='#FFFFFF')