Graphics, Figures & Tables ⇒ pstricks | Rotate Circle created with '\nccircle'
pstricks | Rotate Circle created with '\nccircle'
I want to rotate to the side the small circle it is created above a node with the \nccircle command. Does anyone know how to achieve this?
Many thanks,
Themis
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
pstricks | Rotate Circle created with '\nccircle'
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
pstricks | Rotate Circle created with '\nccircle'
Code: Select all
\documentclass{article}
\usepackage{multido}
\usepackage{amsfonts}
\usepackage{pstricks,pst-plot,pst-node,pst-tree,pstricks-add}
\pagestyle{empty}
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10}
\begin{document}
\begin{center}
\begin{pspicture}(0,0)(10,10)
\psset{arrows=->,arcangle=10,arrowsize=4pt 2,labelsep=2pt}
\cnodeput[fillstyle=solid,fillcolor=lightgray](0,2){A}{$S_1$}
\cnodeput[fillstyle=solid,fillcolor=lightgray](3,2){B}{$S_2$}
\psset{nodesep=3pt}
\ncarc{->}{A}{B}
\ncarc{->}{B}{A}
\nccircle[arrowsize=4pt 2]{->}{A}{4.5mm}
\nccircle[arrowsize=4pt 2]{<-}{B}{4.5mm}
\end{pspicture}
\end{center}
\end{document}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
pstricks | Rotate Circle created with '\nccircle'
Code: Select all
\documentclass{minimal}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}[showgrid=true](-3,-1)(3,1)
\psset{arrows=->,arcangle=10,arrowsize=4pt 2,labelsep=2pt,nodesep=3pt}
\cnodeput[fillstyle=solid,fillcolor=lightgray](-2,0){A}{$S_1$}
\cnodeput[fillstyle=solid,fillcolor=lightgray](2,0){B}{$S_2$}
\ncarc{->}{A}{B}
\ncarc{->}{B}{A}
\nccircle[arrowsize=4pt 2,angle=90]{->}{A}{4.5mm}
\nccircle[arrowsize=4pt 2,angle=-90]{<-}{B}{4.5mm}
\end{pspicture}
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: pstricks | Rotate Circle created with '\nccircle'
