©
Graph(s) in base64
Makes 'base64' graph(s) from non-graphical language.
2024.May.17 13:17:08
xL, xR Interval extremes for graph(s). •
Function(s)   Plots one or two functions. •
Show values ? Shows the coordinates of the graph(s). •

Makes some computing and draws graph(s), from a non-graphical language, such as Fortran or C.

This is a prototype example of using 'base64' encoding. It was chosen to eliminate remaining temporary graphic files (here, '.png'), which would otherwise have to be removed afterwards. The base64-encoded graphs are produced here via a call do the Linux 'base64' command, which obtains the encoded file from the image file itself (then deleted). The recourse to the system call solved the absence of an equivalent routine in the language used (Fortran 90+).

Plots one (the first) or two graphs of simple functions —'sin' and 'cos'—, for illustration, together.with some computational results.

References: Plate: GraphsBase64

Local comment on using an image file and a base64-encoded one.

• Google: base64 encode

• Wikipedia Base64

• Github: Base64 fortran 2003 (not used)

• 1856-07-24: Picard, Charles Émile (†1941-12-11)

 
 
Valid HTML 4.01! IST http://web.ist.utl.pt/~mcasquilho/compute/misc/Fx-graphsB64.php
Created: 2018-07-24 — Last modified: 2018-07-25