From c80de8211fbffbd4e406a8ee646f9f75cd386c15 Mon Sep 17 00:00:00 2001 From: dennischan <48424802+dennischancs@users.noreply.github.com> Date: Tue, 8 Mar 2022 12:21:29 +0800 Subject: [PATCH] fix `nargin < 4` : figure without an extension add the line code `filename=[filename,'.',char(imageFormat)];` --- plotly/export_fig2/write_image.m | 1 + 1 file changed, 1 insertion(+) diff --git a/plotly/export_fig2/write_image.m b/plotly/export_fig2/write_image.m index bf84f72e..9e88dad7 100644 --- a/plotly/export_fig2/write_image.m +++ b/plotly/export_fig2/write_image.m @@ -15,6 +15,7 @@ width=pfObj.layout.width; scale=1; elseif nargin < 4 + filename=[filename,'.',char(imageFormat)]; height=pfObj.layout.height; width=pfObj.layout.width; scale=1;