You can get the colorbuffer like this:
fig, ax, pl = .... # your plotting code
array_of_colors = colorbuffer(fig)
and then extract the pixels out of that!
You can get the colorbuffer like this:
fig, ax, pl = .... # your plotting code
array_of_colors = colorbuffer(fig)
and then extract the pixels out of that!