plotnine-examples
plotnine-examples copied to clipboard
add `scale_fill_continuous` example
Here is a small example for scale_fill_continuous()!
Great. Let's touch it up and have it contribute to the gallery.
- Show a sneak-pick of the data
faithfuld.head() - Avoid the variable (
v) so that all the plotting code is visible in the executed cell. - Create a header (anywhere above the cell that creates the gallery image) that will be the title of the plot in the gallery. e.g. Annotated Heatmap
- For the output that appears in the gallery, we can use any of the other perceptually uniform colormaps. Probably
plasmaorcividis, the others may have so much black! And, usecoord_cartesian(expand=False)to crop out the surrounding space. - Finally, to get it in the tiles section of the gallery, add this
# Gallery, tilescomment to the top of the code cell.