✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.

Public vs Private Graphs in MATLAB®

How to set the privacy settings of plotly graphs in MATLAB®.


% Learn about API authentication here: https://plotly.com/matlab/getting-started
% Find your api_key here: https://plotly.com/settings/api

data = {...
  struct(...
    'x', [0, 2, 4], ...
    'y', [0, 4, 2], ...
    'type', 'scatter')...
};
response = plotly(data, struct('filename', 'privacy-true', 'world_readable', true, 'fileopt', 'overwrite'));
plot_url = response.url
% Learn about API authentication here: https://plotly.com/matlab/getting-started
% Find your api_key here: https://plotly.com/settings/api

data = {...
  struct(...
    'x', [0, 2, 4], ...
    'y', [0, 4, 2], ...
    'type', 'scatter')...
};
response = plotly(data, struct('filename', 'privacy-false', 'world_readable', false, 'fileopt', 'overwrite'));
plot_url = response.url

MATLAB is a registered trademark of The MathWorks, Inc.