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://agile.geosci.ai/polarity.png
There's a different endpoint for SVGs:
https://agile.geosci.ai/polarity.svg
Example URL with the default values:
https://agile.geosci.ai/polarity.png?layer=hard&polarity=normal&freq=med&phase=0&style=vd&cmap=RdBu
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
.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 running on AWS Elastic Beanstalk.
Images generated by this tool are free from copyright. Do whatever you like with them.