fortplot generates ASCII text output (.txt files) for terminal-based visualization. This format is ideal for: - Remote SSH sessions without GUI capability - CI/CD pipeline debugging - Terminal-based data exploration - Documentation in text-only environments
Symbol | Usage
-------|-------
* | Primary data points
# | Secondary data points
% | Tertiary data points
. | Grid markers
+ | Axis borders
| | Vertical boundaries
- | Horizontal lines
: | Legend separators
Character | Density/Intensity
----------|------------------
| Lowest values (space)
. | Low values
+ | Medium-low values
* | Medium values
# | Medium-high values
% | High values
@ | Highest values
Every ASCII output follows this structure:
[Plot Title]
+--------------------------------------------------------------------------------+
| |
| [Plot Content Area] |
| |
+--------------------------------------------------------------------------------+
[X-axis label]
[Y-axis label]
Complete ASCII outputs are available in the corresponding .txt files:
output/example/fortran/[example_name]/
[plot_name].txt
(matches PNG/PDF names)make example ARGS="[example_name]"
to generate Simple Sine Wave
+--------------------------------------------------------------------------------+
| * # |
| ## ## ##### |
| ## # # # |
|0.5 # # # |
| # # # |
| # # # # |
|0.0-#--------#----#----------------------------#----#----------- |
| # # # # |
|-0.5 ## ## |
| |
|-1.0+--------+----------+----------+----------+----------+--------+ |
0 2 4 6 8 10 |
+--------------------------------------------------------------------------------+
x
sin(x)
Sine and Cosine Functions
+--------------------------------------------------------------------------------+
|1.0 * * - sin(x) |
| * * * * - cos(x) |
|0.5 * * o * * o |
| * o o * o o |
|0.0---------*----o---o----------------------------o----*----------- |
| * * o o * |
|-0.5 ** o o ** |
| o o |
|-1.0+--------+----------o----------+----------+------o----+--------+ |
0 2 4 6 8 10 |
+--------------------------------------------------------------------------------+
x
y
Basic Pcolormesh - Linear Gradient
+--------------------------------------------------------------------------------+
|1.20 @ @ @ @ @ |
| % % % % % |
|0.90 # # # # # |
| * * * * * |
|0.60 + + + + + |
| - - - - - |
|0.30 = = = = = |
| : : : : : |
|0.00+--------+----------+----------+----------+----------+--------+ |
0.0 0.4 0.8 1.2 1.6 2.0 |
+--------------------------------------------------------------------------------+
x
ASCII output is automatically available for all plot types:
! Generate all formats including ASCII
call fig%savefig('plot.png') ! PNG
call fig%savefig('plot.pdf') ! PDF
call fig%savefig('plot.txt') ! ASCII