LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

grap2graph

Grap graph to image converter

TLDR

Convert grap to image
$ grap2graph [file.grap] > output.png
copy
Specify output format
$ grap2graph -Tpng [file.grap] > output.png
copy
Create SVG output
$ grap2graph -Tsvg [file.grap] > output.svg
copy
Process from stdin
$ echo ".G1 ... .G2" | grap2graph > output.png
copy

SYNOPSIS

grap2graph [options] [file]

DESCRIPTION

grap2graph converts grap graphs to image formats. It is a wrapper that pipes grap output through groff and converts the result to various image formats like PNG, SVG, and PDF.The tool is part of the groff suite and handles the intermediate processing steps automatically, producing standalone images from grap source.

PARAMETERS

FILE

Input file containing grap code.
-T FORMAT
Output format (png, svg, pdf, etc.).
-resolution DPI
Set image resolution.
--help
Display help information.

INSTALL

sudo apt install groff
copy
sudo dnf install groff
copy
sudo pacman -S groff
copy
sudo apk add groff
copy
sudo zypper install groff
copy
brew install groff
copy
nix profile install nixpkgs#groff
copy

CAVEATS

Requires groff and grap. Image quality depends on resolution settings. Part of groff package.

HISTORY

grap2graph was developed as part of the GNU groff project to facilitate graph image creation from grap source.

SEE ALSO

grap(1), groff(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid