> I recently upgrade ubuntu from 16.04 to 18.04. Ths octave is also upgraded
> to 4.2.2.
> I found that the plot cannot be print to fig (for opening in xfig) using
> the following command.
> For example,
> print ('sin.fig', '-dfig')
> The contents in sin.fig are simply the header lines without any xfig
> object related commands as in the following:
> #FIG 3.2
> Flush left
> 1200 2
> Is there anyone can help me out this?
> BTW, I also recompile octave 4.4.0, and it is still the same.
This works for me both with Octave 4.2.x and 4.4.
In opengl based toolkits (the default "qt" toolkit and "fltk"), Octave
first creates an EPS file, using gl2ps, which is further converted into FIG
format by pstoedit. Are you able to print successfully to EPS ?
If the above works, then there maybe something wrong with pstoedit. The
following is approximately how Octave calls pstoedit for final conversion
That works, and the fig file will be created correctly inside octave GUI.
But this is not a proper way to cope with such bug. I hope ubuntu guys will
fix this is bug in the next version (say, 18.04.1).
BTW, how do I announce such bug to the ubuntu developers?