在 Gnuplot 中引入带有特殊符号的框 [英] Introduce a box with special symbols in Gnuplot

查看:75
本文介绍了在 Gnuplot 中引入带有特殊符号的框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个 gnuplot,右上角有一个框,如下所示.我的难处是:

I want to have a gnuplot with a box on the right top corner like the one below. My difficulties are both:

  1. 如何在图例中获取 \hat{Q}?
  2. 如何添加包含标题的框?

推荐答案

set term cairolatex eps standalone size 3in,3in
set output 'Q.tex'
set key box opaque samplen 0.5
plot for [i=1:4] sinc(x)**i title sprintf('\tiny${\hat{Q}=%d}$',i) lw 2

standalone 关键字将输出包装在最少的 LaTeX 命令中,以便您可以直接运行 latex Q.如果您想生成 LaTeX 片段以包含在更大的文档中,请忽略此操作.

The standalone keyword wraps the output in minimal LaTeX commands so that you can run latex Q directly. Omit this if you want to produce a LaTeX fragment for including in a larger document.

我展示了如何构建一个包含 LaTeX 字体大小的格式化标题.请注意,格式使用单引号而不是双引号.

I show how to construct a formatted title that includes a LaTeX font size. Note that the format uses single quotes rather than double quotes.

此示例使用 cairolatex eps,因为您特别询问了 eps 文件.Normallay 我会使用 cairolatex pngcairolatex pdf 然后用 pdflatex 而不是普通的 latex 进行处理.

This example uses cairolatex eps because you specifically asked about an eps file. Normallay I would use cairolatex png or cairolatex pdf and process afterwards with pdflatex rather than plain latex.

这篇关于在 Gnuplot 中引入带有特殊符号的框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆