Closed ReiSato18 closed 3 years ago
You are using the epslatex
which produces two files:
You may include the LaTeX code in a document as follows:
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{color}
\begin{document}
\begin{figure}
\input{test.tex}
\end{figure}
\end{document}
See here for further info.
However you may simply wish to use the eps
terminal:
save(term="eps fontscale 0.8", output="test.eps")
which would produce a self-contained EPS file.
I fully understood epslatex with your advice, thank you. But the second self-contained eps file you showed is very ideal for me and doesn't seem to work with latex. Is this reason related to gnuplot.jl? If there is a problem of latex, I solve by myself. I am sorry for the lack of understanding.
If you're trying to produce a PDF file from latex, try using pdf
or pdfcairo
as terminal in gnuplot.
Thank you for replaying.
but png and pdf file does not work well.... especially label ticks. below figure is pdf file
save(term="pdfcairo", output="test.pdf") save(term="pdf", output="test.pdf") outputs of above both two are same.
That's pretty strange, all pdf
, pdfcairo
, png
and pngcairo
terminals work well for me.
Try saving a PDF file using just gnuplot (type gnuplot
on your shell), without using julia, to check whether there is a problem with your gnuplot installation.
You will find plenty of examples on google..
Ok, Thank you for kind help!
Hi, I have a question.
When I output a file with eps, the label is not displayed. The complete picture can be output on jupyter notebook, but when I try to save the image as eps, the label is not displayed. How can this be resolved?
The environment is mac os Julia 1.5.0 Jupyter notebook is.
Sinceraly
on Jupyter notebook
output file