Skip to content

A matplotlib-style Python library for generating Mermaid diagrams

Notifications You must be signed in to change notification settings

Excidion/seanymph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seanymph

A matplotlib-style Python library for generating Mermaid diagrams

Usage

from seanymph import XYChart

months = ["Jan", "Feb", "Mar", "Apr"]
fig = XYChart()
fig.bar(months, [10, 40, 30, 50])
fig.line(months, [15, 35, 25, 45])
fig.xlabel("Month")
fig.ylabel("Revenue (k)")
fig.ylim(0, 60)
fig.title("Sales 2024")

results in the following mermaid chart:

xychart-beta
    title "Sales 2024"
    x-axis "Month" [Jan, Feb, Mar, Apr]
    y-axis "Revenue (k)" 0 --> 60
    bar [10, 40, 30, 50]
    line [15, 35, 25, 45]
Loading

About

A matplotlib-style Python library for generating Mermaid diagrams

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages