vendredi 20 mai 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.

  1. Install:
    1. Graphviz (!website very slow).
    2. Notepad++
  2. Setup Notepad++
    1. Setup Graphviz for Notepad++
      1. Notepad++: Plugins > Plugins Manager > Show Plugin Manager : Search and install NppExec plugin
      2. 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.
      3. Save the script.
    2. Setup the syntax coloring in Notepad++
      1. Downloard graphviz-notepad-udl.xml.
      2. Notepad++: Language > Create User Define Language > Import : select the xml. Restart Notepad++.
  3. Practice graph creation :
    1. Download exemple.gv
    2. Open exemple.gv with Notepad++
    3. [Modify content at will]
    4. Plugins > NppExec > OK … a PNG file is created. Watch exemple.png.
Sources: Steinweb., Grevian, TBallantyne. Useful link for the colors here.

Aucun commentaire:

Enregistrer un commentaire