This applet generates polarity cartoons. What on earth is a polarity cartoon? Read this blog post.
Use the form below to make a quick cartoon (right-click > copy image), or scroll down to read about the API.
Quick URL for PNGs:
https://app.scienxlab.org/polarity.png
There's a different endpoint for SVGs:
https://app.scienxlab.org/polarity.svg
Example URL with the default values:
The parameters (defaults in bold):
hard
or soft
.normal
or reverse
.lo
, med
, hi
, or vhi
. Spellings 'low' and 'high' are allowed.syn
or ramp
.petrel
colourmap, only matplotlib colourmaps are allowed, see matplotlib
help. E.g. RdBu
, RdGy
, seismic
, gray
or seismic
. You can reverse any colourmap by appending _r
, e.g. gray_r
.You can get the code here. The script has a command line interface, or use it as a module in your own code.
The cartoons are matplotlib plots generated by a Python Flask web app.
Images generated by this tool are free from copyright. Do whatever you like with them.