Strange behavior?

Ulrich Dirr udirr at das-team.com
Fri Nov 7 11:08:36 CET 1997


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

Denis Girou wrote:
> 
>     Ulrich.Dirr> (2)
>     Ulrich.Dirr> I've recently updated the pstricks package to the pst97 version.
>     Ulrich.Dirr> I had to make a new edition of a mathematical schoolbook where i had
>     Ulrich.Dirr> successfully used the "old" pstricks macros.
>     Ulrich.Dirr> The following problems occured:
>     Ulrich.Dirr> 1. all hatching with hlines and vlines in a polygon were rotated 90
>     Ulrich.Dirr> degrees.
> 
>   Strange, I see no difference between 93 and 97 for hlines and vlines
> fillstyle. Send me your test case. And which dvi to ps converter do you used?

One of many examples is:

{\footnotesize
\psset{xunit=.5cm,yunit=.5cm,curvature=1 .1 .75,plotpoints=200}
\begin{pspicture}(-3.74,-4.99)(8.99,6.99)
%
\pspolygon[fillstyle=hlines,hatchangle=90,hatchwidth=.1mm,hatchsep=4mm,linecolor=white]%
(-3,7)(-3,-5)(-.75,-5)(8.25,7)
\pspolygon[fillstyle=vlines,hatchangle=-45,hatchwidth=.1mm,hatchsep=4mm,linecolor=white]%
(4.6666666667,7)(8.25,7)(8.25,-5)(.6666666667,-5)
%
\psaxes[labelsep=.75mm,arrowlength=1.75,ticksize=2pt,linewidth=0.17mm]%
{->}(0,0)(-3.74,-4.99)(8.99,6.99)
%
\rput[Br](8.25,-.7){x}
\rput[tr](-.3,7){y}
\rput[Br](-.3,-.7){$0$}
%
\uput{1mm}[ur]{71}(3,4){$3x-y=7$}
\uput{1mm}[ur]{53}(5.5,2.35){$2x-1,5y=6$}
%
\psline[linewidth=.35mm](-.75,-5)(8.25,7)
\psline[linewidth=.35mm](4.6666666667,7)(.6666666667,-5)
%
\end{pspicture}}

In the first edition I used \pspolygon without hatchangle and the result
was hlines at 0 degree and vlines at 135 degree (assuming 0 degree as
the origin with counterclockwise direction). With PST97 the hlines
appeared at 90 degree and vlines at 45 degree; so I had to add a
hatchangle of 90 degree to compensate for this behavior.
I'm using the Y&Y DVIPSONE driver with appropriate header files to work
with PSTricks (maybe the problem is here!). These are PSTRICKS.CON 799
26.07.97 20:20 and PSTRICKS.PRO 12.339 08.09.97 18:36.

>   It's a funny case... In fact, the "c" value was never described and you must
> had not use it in the past! See the diagram page 44 of the documentation which
> show that the values tlrbB are the only defined ones. So we can't consider
> this problem as a bug.

Oh God! Sorry. Maybe it was to logical for me to have Bc and cr for
alignment at the ticks!
 
>   Nevertheless with the linewidth, dotted, dotsep, dashed and dash parameters
> you have already many possibilities to distinguish between lines. Not enough
> for your applications?

It's enough for me but not for my publisher!

Thanks,
Ulrich

*****************************
* Ulrich Dirr               *
* Graphik & Typographie     *
* Arnimstraße 9             *
* D-81369 München           *
*****************************
* fon (+49)-89-7433060      *
* fax (+49)-89-7433061      *
* e-mail udirr at das-team.com *
*****************************

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://tug.cs.umb.edu/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at tug.cs.umb.edu
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list