File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 % Theme - 'dark' (default), 'light' or 'auto' (follow the
3030 % browser/system preference). A toggle button in the
3131 % gallery switches between dark and light at runtime.
32+ % Open - true (default) to open the gallery in the default
33+ % web browser once it has been written.
3234 % Width,Height - maximum width and aspect ratio (Width:Height) of
3335 % the figure panels. The native PNGs and the Plotly
3436 % figures share the same size and shrink together
109111 fprintf(' %d /%d native figure exports OK, %d /%d Plotly conversions OK\n ' , ...
110112 gallery .summary.nativeOK, gallery .summary.total, ...
111113 gallery .summary.plotlyOK, gallery .summary.total);
114+
115+ if opts .Open
116+ web(htmlPath );
117+ end
112118end
113119
114120function opts = parseOptions(varargs )
121127 ' SavePNGs' , false , ...
122128 ' PlotlyJS' , ' auto' , ...
123129 ' Theme' , ' dark' , ...
130+ ' Open' , true , ...
124131 ' Width' , 640 , ...
125132 ' Height' , 480 ...
126133 );
145152 opts.PlotlyJS = value ;
146153 case ' theme'
147154 opts.Theme = value ;
155+ case ' open'
156+ opts.Open = value ;
148157 case ' width'
149158 opts.Width = value ;
150159 case ' height'
You can’t perform that action at this time.
0 commit comments