如何在打印(保存)时在八度音图(图)中制作换行符(\ n,\ break,\\ ...)?

时间:2018-01-16 09:52:12

标签: plot save newline octave fltk

任务很简单。我想让这个传奇工作:

h = legend ('measured', 'linear fit R(0)$\break$ = 2$\Omega$$\mu$m');

特殊字符正在运行,但不是新行。简单' \ n'正在使用qt。但是,qt并不知道希腊符号...... Gnuplot不会识别很多线宽设置,并且使用难看的字体作为符号。 所以我最终得到了graphics_toolkit fltk。为了保存,我使用:

print -depslatexstandalone test_epslatex
system("latexmk test_epslatex.tex -ps");
system("latexmk -c");

然而,我无法告诉乳胶我想换一条新线。它会看起来好多了。

更新

使用graphics_toolkit fltk和此图例配置:

h = legend ('measured', cstrcat('linear fit',"\n",'R(0) = ',num2str(p(2),5),'$\Omega$'));

在窗口中看起来像这样: screen shot

保存后(XLSfile是输入XLS文件名称的字符串):

% saving to png and ps
pom = XLSfile;
pom = strrep(pom, '.xls', '_Rdist');
print(pom,'-depslatexstandalone');

system(cstrcat('latexmk ',pom,'.tex -ps'));
system("latexmk -c");

pom1 = 'gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m ';
pom2 = '-dGraphicsAlphaBits=4 -r800s600 -sOutputFile=';
pom3 = cstrcat(pom,'.png ',pom ,'.ps');
system(cstrcat(pom1,pom2,pom3));

% remove unwanted:
system(cstrcat('rm ',pom,'.dvi ',pom,'.tex ',pom,'-inc.eps'));

看起来像这样:saved png image

我意识到很少的东西:" \ noTexWorksHere",'这里没有新的行字符\ n'。所以他们的组合应该有效......

由于出口使用Latex no Tex,美元符号必须存在。 传说中也存在一个问题:(。第一次从打印命令导出到eps是错误的。在导出中,Octave直接在图形背景后绘制图例背景。这就是网格在图例上的原因。我应该填写错误报告,但不知道怎么回事(几天前我安装了八度)。

一些技术细节:Ubuntu 16.04,Octave 4.0.0,希望配置齐全的乳胶(它可以工作,但我有点新用户)

0 个答案:

没有答案
相关问题