0a77469f6271b2309dd3f2e2f47386f3852b17c7,tutorials/colors/colormapnorms.py,,,#,227
Before Change
cmap="RdBu_r")
fig.colorbar(pcm, ax=ax[0], extend="both")
pcm = ax[1].pcolormesh(X, Y, Z, cmap="RdBu_r", vmin=-np.max(Z))
fig.colorbar(pcm, ax=ax[1], extend="both")
fig.show()
After Change
fig, ax = plt.subplots()
midnorm = MidpointNormalize(vmin=-500., vcenter=0, vmax=4000)
pcm = ax.pcolormesh(longitude, latitude, topo, rasterized=True, norm=midnorm,
cmap=terrain_map)
ax.set_aspect(1 / np.cos(np.deg2rad(49)))
fig.colorbar(pcm, shrink=0.6, extend="both")
plt.show()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: matplotlib/matplotlib
Commit Name: 0a77469f6271b2309dd3f2e2f47386f3852b17c7
Time: 2019-03-18
Author: tcaswell@gmail.com
File Name: tutorials/colors/colormapnorms.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: c5b8d865c30bd0be086362e7b2eb987bbfbfac65
Time: 2019-03-13
Author: pmhobson@gmail.com
File Name: tutorials/colors/colormapnorms.py
Class Name:
Method Name:
Project Name: interactiveaudiolab/nussl
Commit Name: bb127ab670821b1ad675579ccc284331b09b3f34
Time: 2016-07-12
Author: eth@nmanilow.com
File Name: nussl/repet_sim.py
Class Name: RepetSim
Method Name: plot