Gnuplot symbols in epslatex terminal with dots inside

旧街凉风 提交于 2019-12-20 02:08:39

问题


When creating symbols in combination with the epslatex terminal in Gnuplot 4.6, I always notice that in the center of the symbol a small dot is shown (clearly visible on zoom-in). This annoys me quite a bit, as it does not happen in, for example, the png terminal of Gnuplot.

Is there a simple method in Gnuplot to get rid of this dot?

Minimum reproductive example:

set terminal epslatex 
set output "test.tex"
test

It can be directly observed in the outputfile test.eps.

Additional info: I use the following code to create a complete eps-file out of it

\documentclass{article}
\usepackage{graphics}
\usepackage{nopageno}
\usepackage{txfonts}
\usepackage[usenames]{color}

\begin{document}
\begin{center}
\input{test.tex}
\end{center}
\end{document}

Is there a solution inside gnuplot?


回答1:


According to this answer: https://stackoverflow.com/a/16358393/1134387 there are much more symbols than the few shown by test in Gnuplot. When using 64, 65 and 66 as pointtype, I get symbols without the dot inside, which effectively solves my problem.




回答2:


Since an other question (Removing dot from centre of empty gnuplot point) has been marked as "duplicate" with no more possibility to answer, I put my answer here to provide some test code and images.

You can do a point test sequence yourself in any terminal.

### Terminal test dots
reset session
set colorsequence classic

set terminal postscript color
# set terminal pngcairo
# set terminal pdfcairo
# set terminal qt
# set terminal wxt
set output "TestDot.eps"   # in case of file output set the extension according to terminal

N = 160
M = 10
set parametric
set xrange [-0.5:M-0.5]
set yrange [-M/2:N]
set xtics 1
set ytics M
plot for [i=0:N-1] i%M,floor(i/M)*M w p pt i ps 3 notitle
unset parametric
set output
### end of code

postscript terminal:

pngcairo terminal:



来源:https://stackoverflow.com/questions/17040335/gnuplot-symbols-in-epslatex-terminal-with-dots-inside

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!