[pstricks] PSTricks Digest, Vol 66, Issue 10
Michael Sharpe
msharpe at ucsd.edu
Sat Jul 12 17:31:07 CEST 2008
\SpecialCoor can be anywhere before the \psline, even before
\begin{pspicture}. In the early days, it slowed down processing of all
coordinates, so switching only as necessary between \NormalCoor and
\SpecialCoor was sometimes an important performance issue. I leave
\SpecialCoor set all the time when generating individual
illustrations, with no noticeable effect on the speed.
By the way, I believe gridangle should be hatchangle, and 45 is the
default, so it need not be specified.
Michael
On Jul 12, 2008, at 6:23 AM, Zbigniew Nitecki wrote:
>
>
> Zbigniew Nitecki
> Department of Mathematics
> Tufts University
> Medford, MA 02155
>
> telephones:
> Office (617)627-3843
> Dept. (617)627-3234
> Dept. fax (617)627-3966
> http://www.tufts.edu/~znitecki/
>
> On Jul 12, 2008, at 6:00, pstricks-request at tug.org wrote:
>
>>
>> Message: 2
>> Date: Fri, 11 Jul 2008 15:23:57 -0400
>> From: Zbigniew Nitecki <zbigniew.nitecki at tufts.edu>
>> Subject: [pstricks] placing subpictures in pstricks
>> To: pstricks at tug.org
>> Message-ID: <DE21C360-079A-439C-A4D3-89421E1E8026 at tufts.edu>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> I want to place two different pictures side-by-side, and tried the
>> following:
>> **********************************************************************************
>>> \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}
>>> \end{pspicture}
>> ***************************************************************************************
>> which gave me an error message
>>
>>> l.49 \rput(-4,0){\polarplane}
>>>
>>> ?
>>> ! Illegal unit of measure (pt inserted).
>>> <to be read again>
>>> 0
>>> l.50 \rput(2,0){\rectplane}
>>>
>>> ?
>>>
>>
>> (line 49 is the first \rput) If I hit return, it repeated the second
>> message, four times with 0, then four with 1 in place of zero, etc;
>> when I ran in silent mode, I got an output consisting of two copies
>> of
>> the object defined by \polarplane, once on the extreme left and the
>> other on the extreme right, and no copy of \rectplane. What is going
>> on, and how should I carry out what I want to do?
>>
>>
>>
>> Zbigniew Nitecki
>> Department of Mathematics
>> Tufts University
>> Medford, MA 02155
>>
>> telephones:
>> Office (617)627-3843
>> Dept. (617)627-3234
>> Dept. fax (617)627-3966
>> http://www.tufts.edu/~znitecki/
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: http://tug.org/pipermail/pstricks/attachments/20080711/eaf72305/attachment-0001.html
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Fri, 11 Jul 2008 13:45:39 -0700
>> From: Michael Sharpe <msharpe at ucsd.edu>
>> Subject: Re: [pstricks] placing subpictures in pstricks
>> To: Graphics with PSTricks <pstricks at tug.org>
>> Cc: Michael Sharpe <msharpe at ucsd.edu>
>> Message-ID: <90F1484E-2194-4A9A-BC13-84B426F9DD07 at ucsd.edu>
>> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>>
>> 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
>>
>
> I understand the change in format in the \psline specification, but
> I am not sure where the \SpecialCoor command should go (my copy of
> the pstricks book has paragraphs on p. 27 and 125, but not one
> example of the syntax of using it. Does it go at the start of the
> body of the \newcommand definition, or inside the multido---and do I
> need to put a \NormalCoor command somewhere at the end?
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list