Print Plot in Octave in Background

前端 未结 1 1748
暖寄归人
暖寄归人 2020-12-06 12:15

Currently, I use print -dpng foo.png to print a plot to file in Octave 3.0.1 on Ubuntu.

Sometimes, I generate thousands of images in a loop.

Whe

相关标签:
1条回答
  • 2020-12-06 12:39

    It would be easier to answer your question with a little more information about what you are doing. But with a little guessing maybe this is what you need:

    f = figure
    set(f, "visible", "off")
    plot([1,2,3,4])
    print("MyPNG.png", "-dpng")
    
    0 讨论(0)
提交回复
热议问题