[pstricks] Replacing \psdots with \pscircle

Patrice MEGRET Patrice.MEGRET at umons.ac.be
Thu Dec 1 18:34:37 CET 2016


Dear Shailesh,

I already had the same trouble for publication in journal.

I used \psdot to plot the date with psdot style such as otimes, Oplus, … but the publisher refuses because of T3 fonts (but perfectly vectorial and scalable !).
So I solve the problem (Thanks to Herbert, see Herbert’s book, chapter 6 ) by using \newpsfontdot to redefine otimes, oplus, … in a T1 fonts.

See the example below:
the first figure is made from the classical psdot style ==> T3 fonts in the pdf
the second figure only use T1 fonts ==> if you compile only fig 2, you will see there is no longer T3 fonts
both figure are the same

You can probably do the same trick for your publication.

Bets regards,
Patrice

 \documentclass{article}

\usepackage{t1enc}
\usepackage[latin1]{inputenc}


\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{siunitx}
\usepackage{pstricks-add}

\newpsfontdot{pmCMultiply}[2 0 0 2 -.78 -.7]{Symbol}{<C4>}
\newpsfontdot{pmCPlus}[2 0 0 2 -.78 -.7]{Symbol}{<C5>}
\newpsfontdot{pmLosange}[2 0 0 2 -.78 -.5]{Symbol}{<A8>}
\newpsfontdot{pmPoint}[2 0 0 2 -.5 -.7]{Symbol}{<B7>}


\begin{document}

\begin{figure}[!t]
\savedata{\datacconcreta}[{%
{1, 22.7}%
{2, 33.1}%
{3, 41.3}%
{7, 53.4}%
{14, 58.7}%
{28, 61.7}%
}]

\savedata{\datacconcretb}[{%
{1, 23.4}%
{2, 39.1}%
{3, 45.2}%
{7, 52.1}%
{25, 61.7}%
{28, 61.7}%
{30, 62.2}%
}]
\centering
\psset{llx=-1.1cm,lly=-0.8cm,ury=0.1cm,labelFontSize=\scriptsize,mathLabel=false,xAxisLabel={Days},xAxisLabelPos={c,-0.6cm},yAxisLabel={$f_{cm,cub150}$ (\si{\mega\pascal})},yAxisLabelPos={-0.9cm,c}}
\rput[lb](5,1){%
\tiny
\begin{tabular}{ll}
\psdot[linecolor=orange,dotstyle=SolidDiamond](0,0.05) & B-FM \\
\psdot[linecolor=blue,dotstyle=Oplus](0,0.07) & B-TM1 \\
\psdot[linecolor=black,dotstyle=otimes](0,0.07) & B-TM2 \\
\end{tabular}
}
\begin{psgraph*}[Dx=5,Dy=10,Oy=20,ticklinestyle=dotted,xticksize=0 50,yticksize=0 35]{->}(0,20)(37,76){10cm}{5cm}
\listplot[showpoints=true,linecolor=orange,dotstyle=pmLosange,plotstyle=line]{\datacconcreta} %
\listplot[showpoints=true,linecolor=blue,dotstyle=pmCPlus,plotstyle=line]{\datacconcretb} %
\psdot[dotstyle=pmCMultiply](33,54.5)
\end{psgraph*}
%\includegraphics[width=3.5in]{Figure4n.eps}
\caption{With psdot style (T3).}
\label{fig-4n}
\end{figure}



\begin{figure}[!t]
\savedata{\datacconcreta}[{%
{1, 22.7}%
{2, 33.1}%
{3, 41.3}%
{7, 53.4}%
{14, 58.7}%
{28, 61.7}%
}]

\savedata{\datacconcretb}[{%
{1, 23.4}%
{2, 39.1}%
{3, 45.2}%
{7, 52.1}%
{25, 61.7}%
{28, 61.7}%
{30, 62.2}%
}]
\centering
\psset{llx=-1.1cm,lly=-0.8cm,ury=0.1cm,labelFontSize=\scriptsize,mathLabel=false,xAxisLabel={Days},xAxisLabelPos={c,-0.6cm},yAxisLabel={$f_{cm,cub150}$ (\si{\mega\pascal})},yAxisLabelPos={-0.9cm,c}}
\rput[lb](5,1){%
\tiny
\begin{tabular}{ll}
\psdot[linecolor=orange,dotstyle=pmLosange](0,0.05) & B-FM \\
\psdot[linecolor=blue,dotstyle=pmCPlus](0,0.07) & B-TM1 \\
\psdot[linecolor=black,dotstyle=pmCMultiply](0,0.07) & B-TM2 \\
\end{tabular}
}
\begin{psgraph*}[Dx=5,Dy=10,Oy=20,ticklinestyle=dotted,xticksize=0 50,yticksize=0 35]{->}(0,20)(37,76){10cm}{5cm}
\listplot[showpoints=true,linecolor=orange,dotstyle=pmLosange,plotstyle=line]{\datacconcreta} %
\listplot[showpoints=true,linecolor=blue,dotstyle=pmCPlus,plotstyle=line]{\datacconcretb} %
\psdot[dotstyle=pmCMultiply](33,54.5)
\end{psgraph*}
%\includegraphics[width=3.5in]{Figure4n.eps}
\caption{With only T1 made from newpsfontdot.}
\label{fig-4n}
\end{figure}


\end{document}


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20161201/47fc1e69/attachment-0001.html>


More information about the PSTricks mailing list