Generate diagrams, charts, and plots styled with Gruvbox dark theme colors. Supports PlantUML (ERDs, class/sequence/component diagrams) and gnuplot (function plots, data visualizations, charts, waveforms, benchmarks).
Generate PlantUML diagrams and gnuplot visualizations with a consistent Gruvbox dark theme.
$ARGUMENTS: Description of what the user wants to visualize (optional)If no arguments provided, ask the user what they want to visualize.
Based on what the user wants to visualize, select the appropriate tool:
Use gnuplot for:
Use PlantUML for:
Then follow the corresponding section below.
Understand the request: Determine the plot type, data source, axis labels, and title.
Determine output path: If not specified, use docs/<name>.gnuplot for the script and docs/<name>.png for the image.
Create the gnuplot script using the theme template from template.gnuplot:
set output '<png-path>' to the desired PNG output pathcol_red, col_green, col_yellow, etc.) for plot lines and fillsset title "{/:Bold Your Title}" tc rgb '#fabd2f' font ',16'Generate the PNG by running: gnuplot <script-path> 2>&1
Verify generation succeeded:
test -f <png-path> && stat --format="%s bytes" <png-path>Display the result (only after verification succeeds): feh <generated-png-path> &
Understand the request: Based on what the user wants to diagram, infer the best diagram type:
Determine output path: If not specified, use a sensible default like docs/<name>.puml
Create the PlantUML file using the theme template from template.puml
Generate the PNG by running: plantuml -tpng <output-path> 2>&1
Verify generation succeeded:
@startuml <name>, not the input filename@startuml foo is in docs/bar.puml, the output will be docs/foo.png@startuml without a name, or match the name to the filenametest -f <png-path> && stat --format="%s bytes" <png-path>-v flag to see where output is written.puml fileDisplay the result (only after verification succeeds): feh <generated-png-path> &
See colors.md for the full Gruvbox color palette with both PlantUML and gnuplot variable names.
#282828 (bg), #32302f (bg0_s), #3c3836 (bg1)#ebdbb2 (fg), #d5c4a1 (fg2)#fb4934 (bright), #cc241d (normal)#b8bb26 (bright), #98971a (normal)#fabd2f (bright), #d79921 (normal)#83a598 (bright), #458588 (normal)#d3869b (bright), #b16286 (normal)#8ec07c (bright), #689d6a (normal)#fe8019 (bright), #d65d0e (normal)#32302f for element backgrounds (slightly lighter than main bg)#3c3836 for headers/sections#83a598 (blue) for borders and relationships#fabd2f (yellow) for titles and entity names#8ec07c (aqua) for data types#fb4934 (red) for required/important markers#fe8019 (orange) for keys (PK, FK)#d3869b (purple) for constraints#b8bb26 (green) for relationship labels