An Obsidian plugin for creating TikZ/pgfplots graphs through an intuitive visual editor with live preview.
- Live SVG preview — see your graph update in real-time as you change settings (no external plugins needed)
- 2D function plots — plot mathematical functions with customizable color, thickness, dashing, and fill
- 3D surface plots — render 3D surfaces with wireframe or filled mode, adjustable opacity, and interactive mouse rotation
- Tangent lines — compute and display tangent lines at any point
- Extrema detection — automatically find and mark local minima/maxima
- TikZ code generation — generates valid pgfplots code you can copy or insert directly into your notes
- Dark/light theme support — respects your Obsidian theme
- Click the function icon in the ribbon (or use the command palette)
- Configure your graph using the tabbed settings panel:
- Graph — title, dimensions, 2D/3D mode toggle, camera controls (3D)
- Axis — labels, ranges, axis style
- Functions — add functions with expression, domain, styling, and analysis options
- Grid — major/minor grid lines
- Code — view the generated TikZ code
- The live preview on the right updates as you edit
- In 3D mode, drag the preview to rotate the camera
- Click Copy TikZ Code or Insert into Note when done
Enter any JavaScript math expression using x:
x^2,x^3 - 3*x,1/xsin(deg(x)),cos(deg(x)),Math.exp(x)
Enter expressions using x and y:
sin(x)*cos(y)x^2 + y^2sin(Math.sqrt(x^2 + y^2))
- Install the BRAT plugin
- Add
Saiki77/tikz-graph-helpas a beta plugin
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder
tikz_graph_helperin your vault's.obsidian/plugins/directory - Place the downloaded files in that folder
- Enable the plugin in Obsidian settings
npm install
npm run dev # watch mode
npm run build # production buildMIT