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

I am trying to replicate the example on Filled area in MATLAB, 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
area(y)

And the figure looks like this as expected:
image

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:

getplotlyoffline(‘https://cdn.plot.ly/plotly-latest.min.js’)

and then using the offline tag in fig2plotly

Does someone maybe know what is going wrong here?

Thank you in advance.