visionforge/plotly/examples/notebooks/latex-demo.ipynb

12 KiB

In [1]:
%use plotly
21:08:36.601 [DefaultDispatcher-worker-1] INFO ktor.application - No ktor.deployment.watch patterns specified, automatic reload is not active
21:08:36.645 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://0.0.0.0:8882
In [2]:
Plotly.plot {
    scatter {
        x(2, 3, 4, 5)
        y(10, 15, 13, 17)
    }

    text {
        position(2, 10)
        font {
            size = 18
        }
        text = "\$\\alpha\$"
    }

    text {
        position(5, 17)
        font {
            size = 18
        }
        text = "\$\\Omega\$"
    }

    layout {
        title {
            text = "\$\\text{Plot with annotations } \\alpha~and~\\Omega\$"
        }
    }
}
Out[2]:
In [ ]: