将乳胶轴标签放入gnuplot并放入乳胶文件中

时间:2014-10-21 13:06:07

标签: graphics latex gnuplot

我在Gnuplot中有一个绘图,其中包含latex字体的轴标签,它编译生成* .tex文件和* .eps文件。当我将eps文件放入我的乳胶文档时,轴标签根本不会出现。当我尝试嵌入* .tex文件(引用EPS)时,我得到:

! LaTeX错误:无法确定dimensionlessformm5d.tex中的图形大小(无BoundingBox)。

什么是BoundingBox,如何将其添加到我想要嵌入的* .tex文件中?

2 个答案:

答案 0 :(得分:0)

没有代码很难判断,但是你应该能够在不指定边界框的情况下编译(你正在加载graphicx包吗?在你的乳胶前言中使用\usepackage{graphicx})。无论如何,你可以使用

获得一个边界框
gs -sDEVICE=bbox -dNOPAUSE -dBATCH file.eps

并使用

指定胶乳
\includegraphics[bb = insert 4 bounding box values here]{file.eps}

如果您需要更多定向建议,请发布gnuplot和latex代码。

答案 1 :(得分:-1)

乳胶代码:

\documentclass[12pt]{article}
\usepackage{amsmath,bm,fleqn,amssymb,graphicx}

\setlength{\topmargin}{0in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textheight}{9in}
\setlength{\textwidth}{6.5in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}


\begin{document}



\begin{figure}[h!]
\centering
\includegraphics[width=.995\textwidth]{dimensionlessformm5d.tex}
\caption{Dimensionless output 1: Spectral plot of the negative value of the real part of Eq. (\ref{eqn:new22}) in units of $\tau^2 / \gamma_i$ plotted vs. normalized frequency $\omega / \omega_L$ for $\omega_L \tau = 75$ (black curve),250(green),1000(magenta), for a value of the dimensionless initial momentum $p_i / (m^{\prime} c^{\prime})$ of 2.375. Note that the independent variables have been expressed in dimensionless form for ease of scaling analysis. Note also that this is simply the fractional single-pass gain, except lacking the prefactor $e^2 Z_0\dot{n}/(4m)$.}
\end{figure}



\begin{thebibliography}{99}

\bibitem{paper1} Borie, E. "Review of Gyrotron Theory". Tech. no. 4898. Karlsruhe, Germany: Kernforschungszentrum Karlsruhe, 1991. {\it Karlsruher Institut Fuer Technologie.} Web. 21 Nov. 2012. \textless http://bibliothek.fzk.de/zb/kfk-berichte/KFK4898.pdf\textgreater .

\bibitem{paper2} "Efficiency Enhancement of the Relativistic Gyrotron" N. A. Zavolsky, V. E. Zapevalov and M. A. Moiseev (Radiophysics and Quantum Electronics
Volume 44, Number 4 (2001), 318-325, DOI: 10.1023/A:1010422204317) Web. 21 Nov. 2012.
\textless http://www.springerlink.com/content/g15665j442405407/\textgreater .

\bibitem{paper3} Coyne, Kristen. "Magnets from Mini to Mighty." National High Magnetic Field Laboratory. N.p., n.d. Web. 21 Nov. 2012. \textless http://www.magnet.fsu.edu/education/tutorials/magnetacademy/magnets/fullarticle.html\textgreater .

\bibitem{paper4} Min, Hongki. "Electronic Structure of Graphene Graphene Monolayer Graphene Bilayer." Lecture. 11 Oct. 2006. Web. 21 Nov. 2012. \textless http://www.ph.utexas.edu/~macdgrp/meetings/hongki-monolayer.pdf\textgreater .


\bibitem{paper5} “Band gap formation in graphene by in-situ doping” (Appl. Phys. Lett. 98, 203102 (2011) doi: 10.1063/1.3589364)

\bibitem{paper6} “Universal Optical Conductance of Graphite”, Phys. Rev. Lett. 100, 117401 (2008)

\bibitem{paper7} “Intersubband Electroluminescence from Silicon-Based Quantum Cascade Structures” Science 22 December 2000
Vol. 290 no. 5500 pp. 2277-2280
DOI: 10.1126/science.290.5500.2277

\bibitem{paper8} Andronov, Alexander A. "From H. Kroemer and B. Lax to Modern Solid-State (Semiconductor) Cyclotron Resonance Masers." IEEE Transactions on Plasma Science 27.2 (1999): 303-11. Print.

\end{thebibliography}




% To be more explicit about losses, the mirror parameters’ relation to each other, and cavity performance is also
% included via the following equations.
% $CL=1-[(1-MT-MA)(1-GA)]$
% where $CL$ is the cavity loss,
% $MT$ is the mirror Transmission coefficient,
% $MA$ is the mirror Absorption coefficient,
% and $GA$ is the graphene Absorption coefficient.



% and we take the new fields E parallel and E perp to be slowly varying in time compared to the gyration at
% $\omega_{Larmor}$

\end{document}

Gnuplot代码:

set term postscript eps enhanced color
set output "C:\\Users\\cole1\\Desktop\\dimensionlessformm5d.eps"

set multiplot
set xtics font "Times-Roman, 20"
set ytics font "Times-Roman, 18"

set size 1,1
set origin 0,0
set xlabel "blahblah"

set xrange [0.35:0.8]
set yrange [-2:1]
plot 'C:\\Users\\cole1\\Documents\\MATLAB\\theorycurves3_1.txt' using 1:2 lc rgbcolor "#000000" with lines notitle, 'C:\\Users\\cole1\\Documents\\MATLAB\\theorycurves3_1.txt' using 7:8 lc rgbcolor "#00FF00" with lines notitle , 'C:\\Users\\cole1\\Documents\\MATLAB\\theorycurves3_1.txt' using 11:12 lc rgbcolor "#FF00FF" with lines notitle 
unset label 1