✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Plotly Graphing Library for MATLAB: Basic Stacked Area Chart does not display correctly

I am trying to replicate the example on https://plotly.com/matlab/filled-area-plots/#basic-stacked-area-chart, namely create a simple stacked area chart in plotly after first creating a figure handle in MATLAB.

I run the example MATLAB code:

y = [1, 5, 3;
3, 2, 7;
1, 5, 3;
2, 6, 1];
fig = figure

And the figure looks like this as expected:

Then I run:
response = fig2plotly(fig, ‘filename’, ‘matlab-basic-area’);
plotly_url = response.url;

But I get this:

I have installed the graphing library for MATLAB, am running on Windows, and have MATLAB R2018b installed.

The same thing happens if I try to use the offline bundle by running:


and then using the offline tag in fig2plotly

Does someone maybe know what is going wrong here?

Thank you in advance.