[pstricks] [Fwd: Re: spider/radar chart]

Jean-Côme Charpentier Jean-Come.Charpentier at wanadoo.fr
Sat Mar 3 18:37:16 CET 2007

Herbert Voss a écrit (sur ctt) :
> Jean-Côme Charpentier schrieb (auf ctt?):
>> Jim a écrit :
>>> On Mar 2, 10:21 am, sic... at sicher.at wrote (on ctt):
>>>> hello,
>>>> i'm looking for a source/package to draw a spider/radar chart
>>> Have you had a look at PS Tricks?
>>>   http://tug.org/PSTricks
>> There is also other tools for that, though I prefer PSTricks.
>>> A lot of people like it for things like this.
>> Indeed! In fact, this problem was very funy. I tried something:

> [My example below]

> very nice ... :-)
> please do a cc to pstricks at tug.org for such examples.

Sure. no problem.


% Empty the target
% Set one target.
  \@namedef{point@\the\c at nbtarget}{#1}%

% Color serie for echo area (green to black)


  % #1 center coordinates
  % #2 radar radius
  % #3 start angle for green area
  % #4 total angle of area
  % we use \psset => \begingroup...\endgroup
  % All the picture is translated at (#1)
    % radar background (black circle)
    % We use #4 colors from green to black
    % Each color for a wedge of 1 degree.
    % Edge of echo area is white (more beautiful!)
    % We display only the taget inside the echo area
    \begin{psclip}{\pswedge[linestyle=none](0,0){#2}{#3}{!#3 #4 add}}
    \multido{\i=0+1}{\the\c at nbtarget}{%
             (\csname point@\i\endcsname)
    % Radar rules
    % graduations 1/10
      \psline(!#2 \r\space mul 0.1 neg)(!#2 \r\space mul 0.1)
      \psline(!0.1 neg #2 \r\space mul)(!0.1 #2 \r\space mul)
    % it's all folk
  % No space after PSTricks object


\radarreset % For a new set  :-)
% ...

  Jean-Côme Charpentier

-------------- next part --------------
An embedded message was scrubbed...
From: =?ISO-8859-1?Q?Jean-C=F4me_Charpentier?=
	<Jean-Come.Charpentier at wanadoo.fr>
Subject: Re: spider/radar chart
Date: Sat, 03 Mar 2007 17:11:16 +0100
Size: 3973
Url: http://tug.org/pipermail/pstricks/attachments/20070303/9165eae1/attachment.mht 

More information about the PSTricks mailing list