Saving a plot in Octave with a transparent background

前端 未结 1 1871
走了就别回头了
走了就别回头了 2021-01-14 02:48

I\'ve plotted some GPS tracks and heading vectors using Octave.

I\'d like to overlay the plot on a satellite image, but when I save the plot it has a white background

相关标签:
1条回答
  • 2021-01-14 03:37

    I think using print with the "pngalpha" device does what you want, e.g.:

    print(gcf,'-dpngalpha', 'myplot.png');
    

    This is poorly documented unfortunately. I browsed the source code extensively to find a way to hack/patch octave to do this, only to find out this was already possible.

    0 讨论(0)
提交回复
热议问题