This example demonstrates contour plotting capabilities, including basic contours, custom levels, and mixing contour plots with line plots.
contour_demo.f90
- Source codecontour_gaussian.png/pdf/txt
- Gaussian function contour plotmixed_plot.png/pdf/txt
- Combined contour and line plotmake example ARGS="contour_demo"
ASCII output preview:
2D Gaussian Function
+--------------------------------------------------------------------------------+
|2.0 . . . . . . |
| . .. . . . . .. . |
|1.5 .. . ... . .. .. . ... . .. |
| . . ... ....... . . ....... ... . . |
|1.0 . ... .. .... .... .... .... .. ... . |
| . .. .... ..... ##### ##### ..... .... .. |
|0.5 . ... .... ##### ##### ##### ##### .... ... |
| . . ... ### ##### @@@@@ @@@@@ ##### ### ... . |
|0.0+--------+----------+----------+----------+----------+--------+ |
-2.0 -1.0 0.0 1.0 2.0 3.0 |
+--------------------------------------------------------------------------------+
x
y
Full ASCII Output: Download contour_gaussian.txt | ASCII Format Guide
ASCII output preview:
Mixed Plot: Contour + Line
+--------------------------------------------------------------------------------+
|1.0 . . .. #* * * *# .. . . |
| . . *#* *#* . . |
|0.5 . . #*# . . . . #*# . . |
| * * * * * * * . . . . * * * * * * * * |
|0.0 .. .. . . . .. . . . . . . .. . . . .. ..|
| .. .. .. .. ... .. .. .. .. |
|-0.5 . . . ... ### ### . . . |
| . . .###. . . |
|-1.0+--------+----------+----------+----------+----------+--------+ |
-2.0 -1.0 0.0 1.0 2.0 3.0 |
+--------------------------------------------------------------------------------+
x
y
Full ASCII Output: Download mixed_plot.txt | ASCII Format Guide