[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cannot produce fig file
From: |
Pantxo |
Subject: |
Re: Cannot produce fig file |
Date: |
Sun, 13 May 2018 14:18:57 -0700 (MST) |
kpchiao wrote
> Hi,
>
> 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,
>
> plot(sin([0:0.1:pi]))
>
> 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
> Portrait
> Flush left
> Inches
> Letter
> 100.00
> Single
> 0
> 1200 2
>
> Is there anyone can help me out this?
>
> BTW, I also recompile octave 4.4.0, and it is still the same.
Hi,
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 ?
plot (1:10);
print foo.eps
If the above works, then there maybe something wrong with pstoedit. The
following is approximately how Octave calls pstoedit for final conversion
/usr/bin/pstoedit -f fig foo.eps > foo.fig
Pantxo
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html