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 

