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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- 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