标签大小不会改变乳胶中的gnuplot(label size is not changing for a gnuplot in latex)

编程入门 行业动态 更新时间:2024-10-28 06:21:34
标签大小不会改变乳胶中的gnuplot(label size is not changing for a gnuplot in latex)

我在latex文档中调用了下面的gnuplot脚本。 我想更改不同标签的字体大小。 但它不会改变字体大小,是否有任何建议。

\begin{gnuplot}[terminal=cairolatex, terminaloptions = {size 8cm, 6cm}] reset set yrange [0.01: 10000000000.0] set xtics rotate by 45 right nomirror set grid ytics unset border set title "(a)" set macros set key top horizontal center set logscale y set format y "$ 10^{%L} $" set label 1 "Variation :" at 771, 680.0 center font "Bold-Times-Roman,24" set label 2 "Variation in IPC" at 671, 7 center tc lt 1 font "Bold-Times-Roman,30" set xlabel "Ticks" offset 0.5,0 font "Bold-Times-Roman,30" set ylabel "Vulnerability [bit*cycle]" offset 2.5,0 font "Bold-Times-Roman,30" #plot from file plot '../gnudata/matlab_fft/smatlab_ipc.txt' using 1:2 title 'IPC' with line linecolor rgb "blue" lw 3 \end{gnuplot}

I have the following gnuplot script called inside a latex document. I want to change font size of different labels. But it is not changing the font size, is there any suggestions.

\begin{gnuplot}[terminal=cairolatex, terminaloptions = {size 8cm, 6cm}] reset set yrange [0.01: 10000000000.0] set xtics rotate by 45 right nomirror set grid ytics unset border set title "(a)" set macros set key top horizontal center set logscale y set format y "$ 10^{%L} $" set label 1 "Variation :" at 771, 680.0 center font "Bold-Times-Roman,24" set label 2 "Variation in IPC" at 671, 7 center tc lt 1 font "Bold-Times-Roman,30" set xlabel "Ticks" offset 0.5,0 font "Bold-Times-Roman,30" set ylabel "Vulnerability [bit*cycle]" offset 2.5,0 font "Bold-Times-Roman,30" #plot from file plot '../gnudata/matlab_fft/smatlab_ipc.txt' using 1:2 title 'IPC' with line linecolor rgb "blue" lw 3 \end{gnuplot}

最满意答案

对于基于乳胶的终端,您应该使用latex命令来控制字体和字体样式:

\documentclass{article} \usepackage[shell]{gnuplottex} \begin{document} \begin{gnuplot}[terminal=cairolatex] set label 1 "\\Huge This is huge and \\bf bold" at -6,0 plot sin(x) \end{gnuplot} \end{document}

在这里输入图像描述

对于全局更改,您可以指定终端驱动程序的选项,请参阅help cairolatex 。

For latex-based terminals you should use latex commands to control fonts and font styles:

\documentclass{article} \usepackage[shell]{gnuplottex} \begin{document} \begin{gnuplot}[terminal=cairolatex] set label 1 "\\Huge This is huge and \\bf bold" at -6,0 plot sin(x) \end{gnuplot} \end{document}

enter image description here

For global changes you can specify options to the terminal driver, see help cairolatex.

更多推荐

本文发布于:2023-08-04 03:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1407276.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:乳胶   大小   标签   gnuplot   latex

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!