Filter löschen
Filter löschen

exportgraphics too many input arguments

11 Ansichten (letzte 30 Tage)
Anne Stunault
Anne Stunault am 5 Okt. 2022
Kommentiert: JOSE LUIS GOMEZ AMO am 24 Jul. 2024 um 6:49
I tried to export a plot using
>> exportgraphics(gca,'test.eps')
And I get the error message:
Error using exportgraphics
Too many input arguments.
Same problem if I try to use saveas
f=figure
saveas(f,'test','pdf')
I get:
Error using printopt
Too many input arguments.
Error in matlab.graphics.internal.mlprintjob
Error in printjob (line 22)
pj = matlab.graphics.internal.mlprintjob;
Error in saveas (line 159)
[ops,dev,ext] = printtables(printjob(h)); %#ok
  4 Kommentare
Adam Danz
Adam Danz am 18 Jan. 2023
@Pierre could you attach the figure you're trying to export and let us know what MATLAB release you're using?
JOSE LUIS GOMEZ AMO
JOSE LUIS GOMEZ AMO am 24 Jul. 2024 um 6:49
I have the same problems when I try to save a figure (in .fig format) both manually and with code (either using saveas and savefig).
In al cases I get the error: "error using saveas too many input arguments"
No errors appear when I save the figure in anyother format (pdf,jpg,eps,..).
I found the same error using R2022b, R2021a running in different computers. I did not notice this error en older versions.
Has anyone solved this?
any idea how to deal with it?
Thank you

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Pierre
Pierre am 18 Jan. 2023
Hi Adam,
I filed a bug report for this. It's any figure, even an empty one. I'm using R2022b.
Thanks

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by