Unable to save the plots in Octave using print and saveas command -


i using octave 3.6.4 on window 7, not able save 9 plots generated using octave scripts. using below commands save plots. though sometime able save plots saved plots same similar last plot generated script. why?

 pathfig = [path, '.png'];   print(h, '-dpng', pathfig,'-r100');  saveas(h, pathfig, 'jpg');  

since seemingly saving last plot generate, safe variable h assigned last plot.

you need specify each figure want print. example, handle first figure, do:

h1 = figure(1); 

to handle second figure:

h2 = figure(2); 

and separately use h1, h2, etc. in separate calls saveas or print. how have done in past.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -