- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我需要在 gnuplot epslatex 终端中构建一个至少包含 12 个图的图形。问题是当图的数量变大时,图例框的大小就会变大并且与图重叠。如何控制图例框内的字体大小以及图例框的大小和位置?我的 gnuplot 脚本如下。脚本文件编译后,生成的tex文件无法编译,请指教。
Gnuplot 脚本:
reset
set terminal epslatex color colortext size 11cm,7.5cm standalone
set output "obspI=12.tex"
set style data lines
set multiplot
set log
set key samplen 1 left bottom
set key at 0.02,0.005
set key box lt 1 lc -2 lw 3
set xlabel "$t/N$"
set ylabel '$P_\ell(t)$'
set format y '$10^{%L}$'
set format x '$10^{%L}$'
set xr [0.01:1000]
set yr [0.002:1.5]
plot 'sp_e21_N20I1.dat' u 1:2 w l title '\footnotesize $\ell=1,N=20,E=21$' lc 7 lw 2, \
'sp_e19_N20I1.dat' u 1:2 w l title '\footnotesize $\ell=1,N=20,E=19$' lc 1 lw 2, \
'sp_n_N20I1.dat' u 1:2 w l title '\footnotesize $\ell=1,N=20$', \
'sp_e21_N20I10.dat' u 1:2 w l title '\footnotesize $\ell=10,N=20,E=21$' lw 2, \
'sp_e19_N20I10.dat' u 1:2 w l title '\footnotesize $\ell=10,N=20,E=19$' lw 2, \
'sp_n_N20I10.dat' u 1:2 w l title '\footnotesize $\ell=10,N=20$' lw 2, \
'sp_e21_N40I1.dat' u 1:2 w l title '\footnotesize $\ell=1,N=40,E=21$' lw 2, \
'sp_e19_N40I1.dat' u 1:2 w l title '\footnotesize $\ell=1,N=40,E=19$' lw 2, \
'sp_n_N40I1.dat' u 1:2 w l title '\footnotesize $\ell=1,N=40$', \
'sp_e21_N40I20.dat' u 1:2 w l title '\footnotesize $\ell=20,N=40,E=21$' lw 2, \
'sp_e19_N40I20.dat' u 1:2 w l title '\footnotesize $\ell=20,N=40,E=19$' lw 2, \
'sp_n_N40I20.dat' u 1:2 w l title '\footnotesize $\ell=20,N=40$' lw 2
unset multiplot
set output
最佳答案
按键文本大小(带或不带框)可以通过控制
set key font ",FONT_SIZE"
(例如,其中 FONT_SIZE 可以是 10.5)。
有关放置 key 盒的信息,请参阅 here 。有很多选择;您可以使用例如
将 key 放置在主要人物之外set key outside
key 盒的高度和宽度可以通过“height”和“width”控制,例如:
set key width -12
希望有所帮助。
关于gnuplot - 如何更改图例框的大小和图例框内的字体大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22121400/
我正在尝试将按钮和 div 底部的一些文本对齐,就像下面的示例中的价格和 checkout 按钮一样。最好的方法是什么。我制作了一个 div,对其设置了样式以获得正确的文本和图片。我只需要将按钮附加到
将内容放置在带圆 Angular 的框 div 中以使其不会重叠的正确方法是什么? 蓝框是白框父div 里面的内容div。我希望标题位于该父框内,以便它在顶部也有圆 Angular 。 当我尝试“溢出
让 SVG 内联 HTML 文档,带有一个 View 框“x y w h”。如何检查元素是否在 View 框内? 通过说元素,它可以是组内的嵌套子路径等等...... 所以我想我正在寻找 SVG 的内
有没有办法检查鼠标是否在屏幕上的某个框内。我不知道将 jQuery 变量导出为整数以在 Javascript if 语句 中使用。我知道这可以通过 div 实现,但我不想使用 div 因为我需要很多这
目前我有两个带文本的 div 框 1 和 2,在第三个 div 框内将它们包含在一起。 Sometimes text in box 1 is longer than text inside box2
我是一名优秀的程序员,十分优秀!