This example shows filled contour plots with customizable colormaps for visualizing 2D scalar fields.
colored_contours.f90
- Source codegaussian_default.png/pdf/txt
- Gaussian with default colormapripple_jet.png/pdf/txt
- Ripple pattern with jet colormapripple_coolwarm.png/pdf/txt
- Ripple pattern with coolwarm colormapripple_inferno.png/pdf/txt
- Ripple pattern with inferno colormapsaddle_plasma.png/pdf/txt
- Saddle point with plasma colormapmake example ARGS="colored_contours"
crest
- Default, perceptually uniform colorblind-safejet
- Classic rainbow colormapcoolwarm
- Blue to red diverginginferno
- Black to yellow sequentialplasma
- Purple to yellow sequentialASCII output preview:
2D Gaussian - Default Colorblind-Safe Colormap
+--------------------------------------------------------------------------------+
|3.00 |
|2.00 |
|1.00 |
|0. |
2D Gaussian - Default Colorblind-Safe Colormap
+--------------------------------------------------------------------------------+
|3.00 |
| * |
| |
| * |
|2*00 |
| * |
| * |
| * |
| * |
|1*00 : : : : : : |
| * : : @ @ @ @ : : |
| * ::: @@@ # # # # @@@ ::: |
| * : @@@ # ## # # ## # @@@ : |
| * : @ # # # # # # # # @ : |
|0* : @ # # # # # # @ : |
| : @ # # # o o # # # @ : |
| * : @ # # # # # # @ : |
| * : @ # # # # # # # # @ : |
| * : @@@ # ## # # ## # @@@ : |
|-1.00 ::: @@@ # # # # @@@ ::: |
| * : : @ @ @ @ : : |
| * : : : : : : |
| * |
| * |
|-2.00 |
| * |
| * |
| * |
| * * * * * * * * * * * * * * * * * * * * * * * * * * |
|-3.00 -2.00 -1.00 0 1.00 2.00 3.00 |
+--------------------------------------------------------------------------------+
x
y
+--------------------------------------------------------------------------------+
x
y
Full ASCII Output: Download gaussian_default.txt | ASCII Format Guide
ASCII output preview:
Saddle Function - Plasma Colormap
+--------------------------------------------------------------------------------+
| ... [representative sample showing colormap pattern] ... |
Saddle Function - Plasma Colormap
+--------------------------------------------------------------------------------+
| |
| * o o o o o o o o |
|2.00 o o o o o o o o o o o o o |
| %# o o o o oo o o oo o o o o # # |
| % ### oo o oo oo o o o o o oo oo o oo ### # |
| * ## ## o o o o o o o o ## ## |
| # ## oo o oo oo o oo ## # |
| % ## # o o oo o o o oo o o # ## ## |
|1*00 ## ## oo o o oo ## ## # |
| * # # # o o oo oo o o # # # |
| * # ## ## o ## ## # |
| # # |
| % # # # # # # @ |
| @ # ## # # ## # @ |
|0@ # # # # # # @ |
| @ # # # # # # @ |
| @ # # # # # # @ |
| @ # ## # # ## # @ |
| % # # # # # # @ |
| * # # ## ## # # |
|-1.00 # # o # # |
| * # # # o o oo oo o o # # # |
| * # ## ## oo o o oo ## ## # |
| % ## # o o oo o o o oo o o # ## ## |
| # ## oo o oo oo o oo ## # |
| * ## ## o o o o o o o o ## ## |
|-2.00# oo o oo oo o o o o o oo oo o oo ### # |
| %# o o o o oo o o oo o o o o # # |
| * *o o* o * *oo *o * * *o o* o* o *o * o* * * o* oo* *o *o o* * |
| -2.00 -1.00 0 1.00 2.00 |
+--------------------------------------------------------------------------------+
x
y
+--------------------------------------------------------------------------------+
Full ASCII Output: Download saddle_plasma.txt | ASCII Format Guide
ASCII output preview:
Ripple Function - Jet Colormap
+--------------------------------------------------------------------------------+
| ... [representative sample showing colormap pattern] ... |
Ripple Function - Jet Colormap
+--------------------------------------------------------------------------------+
|2.00 |
| % # @ @ @ @ # # |
| # # @ @ @ @ @ @ @ @ # # |
|1*50 # @ @ @ oo o o o o oo @ @ @ # |
| # # @ @ @ @ oo o o oo @ @ @ @ # # |
| * # @ @ o o @ @ # |
| %# @ @ o o @ @ # # |
|1.00@@ @ @ o o oo o o o o oo o o @ @ @@ |
| * o o @ @ @ @ @ @ o o |
| @ @ o o @ @@ @ # # @ @@ @ o o @ @@ |
|.500 o oo @ @ ## % %% %% % ## @ @ oo o @ |
| *@ o o @@ @ @ # % % # @ @ @@ o o @ |
| o o # # o o |
| @ o o @ @ # % % # @ @ o o @ |
|0% o o @ @ # % % % % % % # @ @ o o @ |
| |
| % o o @ @ # % % % % % % # @ @ o o @ |
| @ o o @ @ # % % # @ @ o o @ |
|-.500o o # # o o |
| *@ o o @@ @ @ # % % # @ @ @@ o o @ |
| @ o oo @ @ ## % %% %% % ## @ @ oo o @ |
| @ @ o o @ @@ @ # # @ @@ @ o o @ @@ |
|-1.00 o o @ @ @ @ @ @ o o |
| @@ @ @ o o oo o o o o oo o o @ @ @@ |
| %# @ @ o o @ @ # # |
|-1.50# @ @ o o @ @ # |
| # # @ @ @ @ oo o o oo @ @ @ @ # # |
| * # @ @ @ oo o o o o oo @ @ @ # |
| % * * #% * @ % @ *@ *@ @ * * @ @* @* @ % @ * %# * * #% |
|-2.00 -1.50 -1.00 -.500 0 .500 1.00 1.50 2.00 |
+--------------------------------------------------------------------------------+
x
y
+--------------------------------------------------------------------------------+
Full ASCII Output: Download ripple_jet.txt | ASCII Format Guide
ASCII output preview:
Ripple Function - Coolwarm Colormap
+--------------------------------------------------------------------------------+
| ... [representative sample showing colormap pattern] ... |
Ripple Function - Coolwarm Colormap
+--------------------------------------------------------------------------------+
|2.00 |
| % # @ * * @ # # |
| # # @ * * * * * * @ # # |
|1*50 # @ @ * ** * * * * ** * @ @ # |
| # # @ @ * * ** * * ** * * @ @ # # |
| * # @ * * * * @ # |
| %# @ * * * * @ # # |
|1.00@@ * * * * ** * * * * ** * * * * @@ |
| * * * * * @ @ * * * * |
| @ * * * * *@ @ # # @ @* * * * * @@ |
|.500 * ** * @ ## o oo oo o ## @ * ** * * |
| ** * * ** @ @ # o o # @ @ ** * * * |
| * * # # * * |
| * * * * @ # o o # @ * * * * |
|0* * * * @ # o o o o o o # @ * * * * |
| |
| * * * * @ # o o o o o o # @ * * * * |
| * * * * @ # o o # @ * * * * |
|-.500* * # # * * |
| ** * * ** @ @ # o o # @ @ ** * * * |
| * * ** * @ ## o oo oo o ## @ * ** * * |
| @ * * * * *@ @ # # @ @* * * * * @@ |
|-1.00 * * * * @ @ * * * * |
| @@ * * * * ** * * * * ** * * * * @@ |
| %# @ * * * * @ # # |
|-1.50# @ * * * * @ # |
| # # @ @ * * ** * * ** * * @ @ # # |
| * # @ @ * ** * * * * ** * @ @ # |
| % * * #% * @ % * ** ** * * * * ** ** * % @ * %# * * #% |
|-2.00 -1.50 -1.00 -.500 0 .500 1.00 1.50 2.00 |
+--------------------------------------------------------------------------------+
x
y
+--------------------------------------------------------------------------------+
Full ASCII Output: Download ripple_coolwarm.txt | ASCII Format Guide
ASCII output preview:
Ripple Function - Inferno Colormap
+--------------------------------------------------------------------------------+
| ... [representative sample showing colormap pattern] ... |
Ripple Function - Inferno Colormap
+--------------------------------------------------------------------------------+
|2.00 |
| % # + + + + # # |
| # # + + + + + + + + # # |
|1*50 # + + + .. . . . . .. + + + # |
| # # + + + + .. . . .. + + + + # # |
| * # + + . . + + # |
| %# + + . . + + # # |
|1.00++ + + . . .. . . . . .. . . + + ++ |
| * . . + + + + + + . . |
| * + . . + ++ # # # # ++ + . . + ++ |
|.500 . .. + + ## # ## ## # ## + + .. . + |
| *+ . . ++ + # # # # # # + ++ . . + |
| . . # # . . |
| * . . + + # # # # + + . . + |
|0* . . + + # # # # # # # # + + . . + |
| |
| * . . + + # # # # # # # # + + . . + |
| * . . + + # # # # + + . . + |
|-.500. . # # . . |
| *+ . . ++ + # # # # # # + ++ . . + |
| + . .. + + ## # ## ## # ## + + .. . + |
| * + . . + ++ # # # # ++ + . . + ++ |
|-1.00 . . + + + + + + . . |
| ++ + + . . .. . . . . .. . . + + ++ |
| %# + + . . + + # # |
|-1.50# + + . . + + # |
| # # + + + + .. . . .. + + + + # # |
| * # + + + .. . . . . .. + + + # |
| % * * #% * + * + *+ *+ + * * + +* +* + * + * %# * * #% |
|-2.00 -1.50 -1.00 -.500 0 .500 1.00 1.50 2.00 |
+--------------------------------------------------------------------------------+
x
y
+--------------------------------------------------------------------------------+
Full ASCII Output: Download ripple_inferno.txt | ASCII Format Guide