ditaa diagram using PlantuML
Source code name: "hdiagram_ditaa.py"
Programming language: Python
Topic: Plots/Diagrams
DMelt Version 2.2. Last modified: 02/13/1972. License: Free
https://datamelt.org/code/cache/hdiagram_ditaa_6866.py
To run this script using the DataMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from jhplot import *
import os
cwd = os.getcwd()

s = """
@startdot
digraph foo {
  node [style=rounded]
  node1 [shape=box]
  node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
  node3 [shape=record, label="{ a | b | c }"]

  node1 -> node2 -> node3
   }
  @enddot
"""

h=HDiagram(s)
# use the extensions EPS, PDF, SVG to change file format
h.export(cwd+"/hdiagram.png")
IView(cwd+"/hdiagram.png")