Sequence diagram using PlantUML
Source code name: "hdiagram1.py"
Programming language: Python
Topic: Plots/Diagrams
DMelt Version 2.2. Last modified: 02/13/1972. License: Pro
https://datamelt.org/code/cache/hdiagram1_5057.py
To run this script using the DMelt 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 = """
@startuml
scale 600*400

!define SEQUENCE (S,#AAAAAA) Database Sequence
!define TABLE (T,#FFAAAA) Database Table

class USER << TABLE >>
class ACCOUNT << TABLE >>
class UID << SEQUENCE >>
USER "1" -- "*" ACCOUNT
USER -> UID
@enduml
"""

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



You see the box below because you did not login.