Skip to content

Commit 3932dbc

Browse files
committed
Offline is default for plotly
1 parent 453d1b6 commit 3932dbc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plotly/plotly_aux/plotly.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
offline = structargs.(f{idx});
2323
offline_given = offline;
2424
else
25-
offline = false;
25+
offline = true;
2626
offline_given = offline;
2727
end
2828

plotly/plotlyfig.m

+3
Original file line numberDiff line numberDiff line change
@@ -513,13 +513,16 @@ function validate(obj)
513513
args.filename = obj.PlotOptions.FileName;
514514
args.fileopt = obj.PlotOptions.FileOpt;
515515
args.world_readable = obj.PlotOptions.WorldReadable;
516+
args.offline = obj.PlotOptions.Offline;
516517

517518
%layout
518519
args.layout = obj.layout;
519520

520521
if obj.PlotOptions.WriteFile
522+
521523
%send to plotly
522524
if ~obj.PlotOptions.Offline
525+
523526
response = plotly(obj.data, args);
524527

525528
%update response

0 commit comments

Comments
 (0)