[pstricks] placing subpictures in pstricks

Michael Sharpe msharpe at ucsd.edu
Fri Jul 11 22:45:39 CEST 2008


The main problem is the \psline specification. The first should be

\psline(!0.5 \rt\space cos mul 0.5 \rt\space sin mul)%add ! at start,  
drop comma

and similarly for the second. Make sure to say \SpecialCoor beforehand.

Michael

On Jul 11, 2008, at 12:23 PM, Zbigniew Nitecki wrote:

>> \begin{pspicture}(-4,-2.5)(4,2.5)
>> 	\psset{xunit=2cm, yunit=2cm}
>> 		\newcommand{\polarplane}{
>> 			\psline{<->}(0,2)(0,0)(2,0)
>> 			\uput[u](0,2){$\theta$}
>> 			\uput[r](2,0){$r$}
>> 			\pspolygon[fillstyle=hlines,fillcolor=lightgray, gridangle=45]%
>> 				(0,0.5)(1.5,0.5)(1.5,1.5)(0,1.5)
>> 		}
>> 		\newcommand{\rectplane}{
>> 			\psline{<->}(0,2)(0,-2)
>> 			\psline{<->}(-2,0)(2,0)
>> 			\uput[u](0,2){$y$}
>> 			\uput[r](2,0){$x$}
>> 		\multido{\rr=0.5+0.2}{6}{%
>> 			\psarc(0,0){\rr}{0}{90}%
>> 			}	
>> 		\multido{\rt=0+10}{90}{%
>> 			\psline(0.5 \rt\space cos mul, 0.5 \rt\space sin mul)%
>> 				(1.5 \rt\space cos mul, 1.5 \rt\space sin mul)%
>> 			}	
>> 		}
>> 		\rput(-4,0){\polarplane}
>> 		\rput(2,0){\rectplane}
>>




More information about the PSTricks mailing list