1. MATLAB plotting with LaTeXFirst, here’s an example using Plotly’s MATLAB API. This is a visualization of Bessel Functions of the first kind, solutions for a differential equation. It’s a useful function for studying and understanding heat conduction, how waves travel, and more. The MATLAB code below creates our plot.
The code generates a web-based version of our plot. We can apply a theme to change the colors, layouts, and fonts.
Then, we can share the plot in an iframe, as seen below.
The x axis contains the following formula. Plotly renders the LaTeX version of it.
$x^2 frac{d^2 y}{dx^2} + x frac{dy}{dx} + (x^2 – alpha^2)y = 0$
The plot is saved at a URL: https://plot.ly/~MattSundquist/2135. The URL contains the data, plot and code to translate the plot between MATLAB, R, Python, Julia, and JavaScript.

2. Python and matplotlib plotting with LaTeXWe can make matplotlib and Python plots into web-based plots. This is an example using Plotly’s Python API. Here we’re using a Gaussian distribution to study random variables and see where they fall on what is sometimes called a “bell curve.” We can add the standard deviation formula to our plot.
Here is our plot:
The annotation looks like this in the GUI:
3. R plotting with LaTeXWe can make plots with R. Here’s an example using the Plotly R API.
The title was added in the GUI, and is written as ‘$LaTeX$’. We embed with this snippet; every Plotly graph can similarly be embedded in websites, blogs, and notebooks.
<iframe width="500" height="500" frameborder="0" seamless="seamless" scrolling="no" src="https://plot.ly/~MattSundquist/2138.embed?width=500&height=500"></iframe>
4. Mathematica plotting with LaTeXA user-contributed Mathematica API is in the works, which lets us turn our Mathematica plots into D3, web-based plots. Here is our code:
And our plot:
Plotly is free for public projects, entirely online, and you own your data. Learn more on our site.