- Install:
- Setup Notepad++
- Set up Path variable :
- For Windows : Open the Start Menu. > Right-click on Computer and click Properties. > Click Advanced system settings. > Make sure you're on the Advanced tab. > Click Environment Variables. > Under System variables, scroll to find the Path Variable. Click on Path and then click Edit.
- Add :
;C:\Program Files (x86)\Graphviz2-38\bin
- Setup Graphviz for Notepad++
- Notepad++: Plugins > Plugins Manager > Show Plugin Manager : Search and install NppExec plugin
- Configure NppExex: Plugins > NppExex > Execute > write this (one line):
dot « $(FULL_CURRENT_PATH) » -Tpng -o « $(CURRENT_DIRECTORY)\$(NAME_PART).png
it will launch dot and create a PNG. You can replace with Tpdf to create a PDF. - Save the script.
- Setup the syntax coloring in Notepad++
- Downloard graphviz-notepad-udl.xml.
- Notepad++: Language > Create User Define Language > Import : select the xml. Restart Notepad++.
- Practice graph creation :
- Download exemple.gv
- Open exemple.gv with Notepad++
- [Modify content at will]
- Plugins > NppExec > OK … a PNG file is created. Watch exemple.png.
Friday, May 20, 2016
Creating a graph for OD&D
Here some advices to create your own graph with free softwares. Its the equivalent of LaTeX, but for visual diagrams. You just need to modify the code in dot language (very simple) and Graphviz will automatically layout the graph. The example of code is about OD&D.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment