Saving plot in octave with transparent background

I built some GPS tracks and header vectors using Octave. I would like to overlay the plot on the satellite image, but when I save the plot, it has a white background. Is there any way to save it with a transparent background?

+4
source share
1 answer

I think using print with the pngalpha device does what you want, for example:

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

Unfortunately, this is poorly documented. I looked through the source code to find a way to crack / correct the octave, to do this, only to find out that it is already possible.

+4
source

Source: https://habr.com/ru/post/1434377/


All Articles