From MAILER-DAEMON Thu Sep 19 19:21:30 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VMnXO-0004z0-Hq
	for mharc-bug-plotutils@gnu.org; Thu, 19 Sep 2013 19:21:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60369)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jobattle@gmail.com>) id 1VMnBa-0002i7-9K
	for bug-plotutils@gnu.org; Thu, 19 Sep 2013 18:59:06 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jobattle@gmail.com>) id 1VMnBR-0006yc-SB
	for bug-plotutils@gnu.org; Thu, 19 Sep 2013 18:58:58 -0400
Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:54595)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jobattle@gmail.com>) id 1VMnBR-0006yW-KT
	for bug-plotutils@gnu.org; Thu, 19 Sep 2013 18:58:49 -0400
Received: by mail-pb0-f42.google.com with SMTP id un15so9012824pbc.1
	for <bug-plotutils@gnu.org>; Thu, 19 Sep 2013 15:58:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=message-id:date:from:user-agent:mime-version:to:subject
	:content-type; bh=oySEY/d2qgBYCy4unqS2AK/6/59pKJNioNJAcfpXNXU=;
	b=pmorxFPV0bW4QUFRflpkapDaektOcpHnI6quXKRSM/OmvmmfxBFovFIcZkR0PEqC/t
	2CD50Su5qTvCtiZJR1MaE2647B8cUiMQ0pdvq6RkxOEFzZHsT7rV1S2s3W2nvcW6Y9eP
	pAKXXbM6ceqDgMVpXowNq2oF60DSbzrTeSvUQrGN2H5CEsJ6C/yuDdJSnBcTMJRRGkgL
	VmPPGBQf3BER71VvQ7x4n7qUtIPm6B5BUTbiDGHRiHlBsP4U/mGIPLEg2nbCwBZR7DJ0
	Eg+TCQQrHbio7ykjx6Zdqn9d9u0jkG0kHQYGhUV/4JZrGHpzXcr2F0OT5MkbnbGA0WIc
	u1Eg==
X-Received: by 10.68.212.2 with SMTP id ng2mr4351944pbc.175.1379631528063;
	Thu, 19 Sep 2013 15:58:48 -0700 (PDT)
Received: from [192.168.1.102] (adsl-108-71-38-1.dsl.lsan03.sbcglobal.net.
	[108.71.38.1])
	by mx.google.com with ESMTPSA id fy4sm11670314pbb.1.1969.12.31.16.00.00
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 19 Sep 2013 15:58:46 -0700 (PDT)
Message-ID: <523B81A4.50705@n4oe.com>
Date: Thu, 19 Sep 2013 15:58:44 -0700
From: John Battle <jobattle@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130804 Thunderbird/17.0.8
MIME-Version: 1.0
To: bug-plotutils@gnu.org, John Battle <jobattle@gmail.com>
Content-Type: multipart/alternative;
	boundary="------------030007000906070107000802"
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-Received-From: 2607:f8b0:400e:c01::22a
X-Mailman-Approved-At: Thu, 19 Sep 2013 19:21:29 -0400
Subject: [Bug-plotutils] graph error message
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Sep 2013 22:59:06 -0000

This is a multi-part message in MIME format.
--------------030007000906070107000802
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I am using the graphutils package from the ubuntu repository:
graph (GNU plotutils) 2.6

my platform is an intel i7 running ubuntu 12.04.3 LTS
Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz with 8G RAM
The kernel version is:  3.2.0-53-generic

When I execute the following comand:
graph -T X < data.txt
using a data file containing:
-2 0 0 2 2 5 4 2 6 0 8 -1

The graph appears properly but when I close the graph window, I get the 
error message:XIO:  fatal IO error 11 (Resource temporarily unavailable) 
on X server ":0.0"
       after 324 requests (324 known processed) with 0 events remaining.

*

John Battle

* *

jobattle@gmail.com

*626-709-6208



--------------030007000906070107000802
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I am using the graphutils package from the ubuntu repository:<br>
    graph (GNU plotutils) 2.6<br>
    <br>
    my platform is an intel i7 running ubuntu 12.04.3 LTS<br>
    Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz with 8G RAM<br>
    The kernel version is:&nbsp; 3.2.0-53-generic<br>
    <br>
    When I execute the following comand:<br>
    graph -T X &lt; data.txt<br>
    using a data file containing:&nbsp; <br>
    -2 0 0 2 2 5 4 2 6 0 8 -1<br>
    <br>
    The graph appears properly but when I close the graph window, I get
    the error message:XIO:&nbsp; fatal IO error 11 (Resource temporarily
    unavailable) on X server ":0.0"<br>
    <div class="moz-signature">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; after 324 requests (324 known
      processed) with 0 events remaining.<br>
      <br>
      <b>
        <p>John Battle</p>
      </b>
      <b>
        <p><a class="moz-txt-link-abbreviated" href="mailto:jobattle@gmail.com">jobattle@gmail.com</a></p>
      </b>626-709-6208
      <p><br>
      </p>
    </div>
  </body>
</html>

--------------030007000906070107000802--


From MAILER-DAEMON Tue Sep 24 09:30:04 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VOSgm-00078v-Te
	for mharc-bug-plotutils@gnu.org; Tue, 24 Sep 2013 09:30:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33275)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VOPbI-0001QU-P4
	for bug-plotutils@gnu.org; Tue, 24 Sep 2013 06:12:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VOPbB-0005k0-UL
	for bug-plotutils@gnu.org; Tue, 24 Sep 2013 06:12:12 -0400
Received: from zhbdzmsp-smta15.bluewin.ch ([195.186.99.132]:53793)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VOPbA-0005jR-U8
	for bug-plotutils@gnu.org; Tue, 24 Sep 2013 06:12:05 -0400
Received: from [195.186.227.130] ([195.186.227.130:63175]
	helo=zhhdzmsp-smta12.bluewin.ch)
	by zhbdzmsp-smta15.bluewin.ch (envelope-from
	<daniel.llorens@bluewin.ch>)
	(ecelerity 2.2.3.47 r(39824M)) with ESMTP
	id 06/20-01335-17561425; Tue, 24 Sep 2013 10:12:01 +0000
Received: from [172.16.96.17] (62.2.203.131) by zhhdzmsp-smta12.bluewin.ch
	(8.5.142) (authenticated as dll@bluewin.ch)
	id 51F052BA08B9C1CC for bug-plotutils@gnu.org;
	Tue, 24 Sep 2013 10:12:01 +0000
From: Daniel Llorens <daniel.llorens@bluewin.ch>
Content-Type: multipart/mixed; boundary=Apple-Mail-48-130869734
Date: Tue, 24 Sep 2013 12:11:51 +0200
Message-Id: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>
To: bug-plotutils@gnu.org
Mime-Version: 1.0 (Apple Message framework v1085)
X-Mailer: Apple Mail (2.1085)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.186.99.132
X-Mailman-Approved-At: Tue, 24 Sep 2013 09:30:03 -0400
Subject: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Sep 2013 10:12:20 -0000


--Apple-Mail-48-130869734
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


Hello,

Sorry if features are OT here, I couldn't find a -user or -devel mailing =
list.

The attached patches add a legend feature to GNU graph. There are new =
arguments: --legend (per dataset), --place-legend x y, =
--legend-font-size (global).

There is also a new parameter --line-color to give this explicitly to a =
dataset regardless of line style.

The patches are on top of plotutils 2.6.

This is a hack for my own use, which is through a wrapper for the most =
part. I'm not aware of having broken anything, but that can always =
happen. I'm posting the patches just in case someone finds them useful.

Regards,

	Daniel

PS I have uploaded these patches to =
https://gitorious.org/legend-patch-for-gnu-graph

PPS I apologize for the whitespace patch but I have emacs configured to =
remove it and it kept getting in the way when committing :-/



--Apple-Mail-48-130869734
Content-Disposition: attachment;
	filename=0001-Support-line-color-c.patch
Content-Type: application/octet-stream;
	name="0001-Support-line-color-c.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20a7a69db61c1e06ac52114c74ef72400f3ad1623a=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Daniel=20Llorens=20<dll@jast.ch>=0ADate:=20=
Mon,=2023=20Jan=202012=2017:47:11=20+0100=0ASubject:=20[PATCH=201/6]=20=
Support=20--line-color=20(-c)=0A=0A*=20graph/extern.h:=20Add=20explicit=20=
color=20argument=20to=20Point=20struct.=0A*=20graph/graph.c:=20Set=20=
line_color=20field=20from=20--line-color=20argument.=0A*=20=
graph/plotter.c:=20set_line_style()=20takes=20and=20prefers=20line_color=20=
to=20the=20color=20derived=20from=20line_mode.=0A*=20graph/reader.c:=20=
Explicit=20color=20argument=20in=20ReaderStruct.=0A---=0A=20=
graph/extern.h=20=20|=20=205=20+++--=0A=20graph/graph.c=20=20=20|=2023=20=
++++++++++++++++++-----=0A=20graph/plotter.c=20|=2021=20=
+++++++++++++--------=0A=20graph/reader.c=20=20|=20=209=20+++++++--=0A=20=
4=20files=20changed,=2041=20insertions(+),=2017=20deletions(-)=0A=0Adiff=20=
--git=20a/graph/extern.h=20b/graph/extern.h=0Aindex=2000cf4ac..51f4cda=20=
100644=0A---=20a/graph/extern.h=0A+++=20b/graph/extern.h=0A@@=20-41,6=20=
+41,7=20@@=20typedef=20struct=0A=20=09=09=20=20=20=20=200-31:=20a=20=
marker=20number,=20or=2032-up:=20a=20character.=20*/=0A=20=20=20double=20=
symbol_size;=09/*=20symbol=20size,=20as=20frac.=20of=20size=20of=20=
plotting=20area=20*/=0A=20=20=20const=20char=20*symbol_font_name;=20/*=20=
font=20from=20which=20symbols=20>=3D=2032=20are=20taken=20*/=0A+=20=20=
const=20char=20*line_color;=20/*=20explicitly=20replace=20color=20in=20=
linemode=20*/=0A=20=20=20int=20linemode;=09=09/*=20linemode=20of=20=
polyline=20(<0=20means=20no=20polyline)=20*/=0A=20=20=20double=20=
line_width;=09/*=20line=20width=20as=20fraction=20of=20size=20of=20the=20=
display=20*/=0A=20=20=20double=20fill_fraction;=09/*=20in=20interval=20=
[0,1],=20<0=20means=20polyline=20isn't=20filled=20*/=0A@@=20-100,7=20=
+101,7=20@@=20extern=20void=20end_polyline_and_flush=20(Multigrapher=20=
*multigrapher);=0A=20=0A=20typedef=20struct=20ReaderStruct=20Reader;=0A=20=
=0A-extern=20Reader=20*=20new_reader=20(FILE=20*input,=20data_type=20=
input_type,=20bool=20auto_abscissa,=20double=20delta_x,=20double=20=
abscissa,=20bool=20transpose_axes,=20int=20log_axis,=20bool=20auto_bump,=20=
int=20symbol,=20double=20symbol_size,=20const=20char=20=
*symbol_font_name,=20int=20linemode,=20double=20line_width,=20double=20=
fill_fraction,=20bool=20use_color);=0A+extern=20Reader=20*=20new_reader=20=
(FILE=20*input,=20data_type=20input_type,=20bool=20auto_abscissa,=20=
double=20delta_x,=20double=20abscissa,=20bool=20transpose_axes,=20int=20=
log_axis,=20bool=20auto_bump,=20int=20symbol,=20double=20symbol_size,=20=
const=20char=20*symbol_font_name,=20const=20char=20*line_color,=20int=20=
linemode,=20double=20line_width,=20double=20fill_fraction,=20bool=20=
use_color);=0A=20=0A=20extern=20void=20delete_reader=20(Reader=20=
*reader);=0A=20=0A@@=20-108,7=20+109,7=20@@=20extern=20void=20read_file=20=
(Reader=20*reader,=20Point=20**p,=20int=20*length,=20int=20*no_of_points=0A=
=20=0A=20extern=20void=20read_and_plot_file=20(Reader=20*reader,=20=
Multigrapher=20*multigrapher);=0A=20=0A-extern=20void=20=
alter_reader_parameters=20(Reader=20*reader,=20FILE=20*input,=20=
data_type=20input_type,=20bool=20auto_abscissa,=20double=20delta_x,=20=
double=20abscissa,=20int=20symbol,=20double=20symbol_size,=20const=20=
char=20*symbol_font_name,=20int=20linemode,=20double=20line_width,=20=
double=20fill_fraction,=20bool=20use_color,=20bool=20new_symbol,=20bool=20=
new_symbol_size,=20bool=20new_symbol_font_name,=20bool=20new_linemode,=20=
bool=20new_line_width,=20bool=20new_fill_fraction,=20bool=20=
new_use_color);=0A+extern=20void=20alter_reader_parameters=20(Reader=20=
*reader,=20FILE=20*input,=20data_type=20input_type,=20bool=20=
auto_abscissa,=20double=20delta_x,=20double=20abscissa,=20int=20symbol,=20=
double=20symbol_size,=20const=20char=20*symbol_font_name,=20const=20char=20=
*line_color,=20int=20linemode,=20double=20line_width,=20double=20=
fill_fraction,=20bool=20use_color,=20bool=20new_symbol,=20bool=20=
new_symbol_size,=20bool=20new_symbol_font_name,=20bool=20new_line_color,=20=
bool=20new_linemode,=20bool=20new_line_width,=20bool=20=
new_fill_fraction,=20bool=20new_use_color);=0A=20=0A=20=
/*-----------------=20prototypes=20for=20functions=20in=20misc.h=20=
-------------------*/=0A=20=0Adiff=20--git=20a/graph/graph.c=20=
b/graph/graph.c=0Aindex=20a90aea2..ddaff00=20100644=0A---=20=
a/graph/graph.c=0A+++=20b/graph/graph.c=0A@@=20-32,7=20+32,7=20@@=0A=20=
#define=09ARG_REQUIRED=091=0A=20#define=09ARG_OPTIONAL=092=0A=20=0A=
-const=20char=20*optstring=20=3D=20=
"-BCHOQVstE:F:f:g:h:k:K:I:l:L:m:N:q:R:r:T:u:w:W:X:Y:a::x::y::S::";=20/*=20=
initial=20hyphen=20requests=20no=20reordering=20*/=0A+const=20char=20=
*optstring=20=3D=20=
"-BCHOQVstE:F:f:g:h:k:K:I:l:L:m:N:q:R:r:T:u:w:W:c:X:Y:a::x::y::S::";=20=
/*=20initial=20hyphen=20requests=20no=20reordering=20*/=0A=20=0A=20=
struct=20option=20long_options[]=20=3D=0A=20{=0A@@=20-50,6=20+50,7=20@@=20=
struct=20option=20long_options[]=20=3D=0A=20=20=20{"input-format",=09=
ARG_REQUIRED,=09NULL,=20'I'},=0A=20=20=20{"line-mode",=09=09=
ARG_REQUIRED,=09NULL,=20'm'},=0A=20=20=20{"line-width",=09ARG_REQUIRED,=09=
NULL,=20'W'},=0A+=20=20{"line-color",=09ARG_REQUIRED,=09NULL,=20'c'},=0A=20=
=20=20{"right-shift",=09ARG_REQUIRED,=09NULL,=20'r'},=0A=20=20=20=
{"save-screen",=09ARG_NONE,=09NULL,=20's'},=0A=20=20=20{"symbol",=09=09=
ARG_OPTIONAL,=09NULL,=20'S'},=20/*=200=20or=201=20or=202=20*/=0A@@=20=
-130,6=20+131,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=20=20=
bool=20new_symbol=20=3D=20false;=0A=20=20=20bool=20new_symbol_size=20=3D=20=
false;=0A=20=20=20bool=20new_symbol_font_name=20=3D=20false;=0A+=20=20=
bool=20new_line_color=20=3D=20false;=0A=20=20=20bool=20new_linemode=20=3D=20=
false;=0A=20=20=20bool=20new_plot_line_width=20=3D=20false;=0A=20=20=20=
bool=20new_fill_fraction=20=3D=20false;=0A@@=20-207,6=20+209,7=20@@=20=
main=20(int=20argc,=20char=20*argv[])=0A=20=20=20const=20char=20=
*font_name=20=3D=20NULL;=09/*=20font=20name,=20NULL=20->=20device=20=
default=20*/=0A=20=20=20const=20char=20*title_font_name=20=3D=20NULL;=20=
/*=20title=20font=20name,=20NULL=20->=20default=20*/=0A=20=20=20const=20=
char=20*symbol_font_name=20=3D=20"ZapfDingbats";=20/*=20symbol=20font=20=
name,=20NULL=20->=20default=20*/=0A+=20=20const=20char=20*line_color=20=3D=
=20"";=20/*=20line=20color,=20default=20*/=0A=20=20=20const=20char=20=
*x_label=20=3D=20NULL;=09/*=20label=20for=20the=20x=20axis,=20NULL=20->=20=
no=20label=20*/=0A=20=20=20const=20char=20*y_label=20=3D=20NULL;=09/*=20=
label=20for=20the=20y=20axis,=20NULL=20->=20no=20label=20*/=0A=20=20=20=
const=20char=20*top_label=20=3D=20NULL;=09/*=20title=20above=20the=20=
plot,=20NULL=20->=20no=20title=20*/=0A@@=20-546,6=20+549,10=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=20=20=20=20=20=20errcnt++;=0A=20=09=
=20=20=20=20}=0A=20=09=20=20break;=0A+=20=20=20=20=20=20=20=20case=20=
'c':=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20/*=20Color,=20ARG=20=
REQUIRED=20=20=20=20=20=20=20=20=20=20*/=0A+=09=20=20new_line_color=20=3D=20=
true;=0A+=09=20=20line_color=20=3D=20xstrdup=20(optarg);=0A+=09=20=20=
break;=0A=20=09case=20'q':=09=09/*=20Fill=20fraction,=20ARG=20REQUIRED=09=
*/=0A=20=09=20=20if=20(sscanf=20(optarg,=20"%lf",=20=
&local_fill_fraction)=20<=3D=200)=0A=20=09=20=20=20=20{=0A@@=20-1272,10=20=
+1279,11=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=09=09=09=
=20=20(they=20set=20dataset=20attributes)=20*/=0A=20=09=09=09=09=20=20=20=
=20=20=20=20symbol_index,=20symbol_size,=0A=20=09=09=09=09=20=20=20=20=20=
=20=20symbol_font_name,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
line_color,=0A=20=09=09=09=09=20=20=20=20=20=20=20linemode_index,=20=
plot_line_width,=20=0A=20=09=09=09=09=20=20=20=20=20=20=20fill_fraction,=20=
use_color);=0A=20=09=09=20=20new_symbol=20=3D=20new_symbol_size=20=3D=20=
new_symbol_font_name=20=3D=20false;=0A-=09=09=20=20new_linemode=20=3D=20=
new_plot_line_width=20=3D=20false;=0A+=09=09=20=20new_line_color=20=3D=20=
new_linemode=20=3D=20new_plot_line_width=20=3D=20false;=0A=20=09=09=20=20=
new_fill_fraction=20=3D=20new_use_color=20=3D=20false;=0A=20=09=09}=0A=20=
=09=20=20=20=20=20=20else=0A@@=20-1290,16=20+1298,18=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=09=09=09=09=09=20=20=20=20=20=20attributes=20=
*/=0A=20=09=09=09=09=09=20=20=20symbol_index,=20symbol_size,=20=0A=20=09=09=
=09=09=09=20=20=20symbol_font_name,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20line_color,=0A=20=09=09=09=09=09=20=20=20=
linemode_index,=20plot_line_width,=20=0A=20=09=09=09=09=09=20=20=20=
fill_fraction,=20use_color,=0A=20=09=09=09=09=09=20=20=20/*=20following=20=
bools=20make=20up=20a=20mask*/=0A=20=09=09=09=09=09=20=20=20new_symbol,=20=
new_symbol_size,=0A=20=09=09=09=09=09=20=20=20new_symbol_font_name,=0A+=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20new_line_color,=0A=20=09=
=09=09=09=09=20=20=20new_linemode,=20new_plot_line_width,=20=0A=20=09=09=09=
=09=09=20=20=20new_fill_fraction,=20new_use_color);=0A=20=0A=20=09=09=20=20=
new_symbol=20=3D=20new_symbol_size=20=3D=20new_symbol_font_name=20=3D=20=
false;=0A-=09=09=20=20new_linemode=20=3D=20new_plot_line_width=20=3D=20=
false;=0A+=09=09=20=20new_line_color=20=3D=20new_linemode=20=3D=20=
new_plot_line_width=20=3D=20false;=0A=20=09=09=20=20new_fill_fraction=20=
=3D=20new_use_color=20=3D=20false;=0A=20=09=09}=0A=20=20=20=20=20=0A@@=20=
-1331,10=20+1341,11=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=
=09=09=09=09=20=20(they=20set=20dataset=20attributes)=20*/=0A=20=09=09=09=
=09=20=20=20=20=20=20=20symbol_index,=20symbol_size,=0A=20=09=09=09=09=20=
=20=20=20=20=20=20symbol_font_name,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20line_color,=0A=20=09=09=09=09=20=20=20=20=20=20=20linemode_index,=20=
plot_line_width,=20=0A=20=09=09=09=09=20=20=20=20=20=20=20fill_fraction,=20=
use_color);=0A=20=09=09=20=20new_symbol=20=3D=20new_symbol_size=20=3D=20=
new_symbol_font_name=20=3D=20false;=0A-=09=09=20=20new_linemode=20=3D=20=
new_plot_line_width=20=3D=20false;=0A+=09=09=20=20new_line_color=20=3D=20=
new_linemode=20=3D=20new_plot_line_width=20=3D=20false;=0A=20=09=09=20=20=
new_fill_fraction=20=3D=20new_use_color=20=3D=20false;=0A=20=09=09}=0A=20=
=09=20=20=20=20=20=20else=09/*=20not=20first=20file=20of=20plot,=20but=20=
do=20some=20things=20anyway=20*/=0A@@=20-1348,16=20+1359,18=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=09=09=09=09=20=20=20=20=20=20=
attributes=20*/=0A=20=09=09=09=09=09=20=20=20symbol_index,=20=
symbol_size,=20=0A=20=09=09=09=09=09=20=20=20symbol_font_name,=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20line_color,=0A=20=09=09=09=09=
=09=20=20=20linemode_index,=20plot_line_width,=20=0A=20=09=09=09=09=09=20=
=20=20fill_fraction,=20use_color,=0A=20=09=09=09=09=09=20=20=20/*=20=
following=20bools=20make=20up=20a=20mask*/=0A=20=09=09=09=09=09=20=20=20=
new_symbol,=20new_symbol_size,=0A=20=09=09=09=09=09=20=20=20=
new_symbol_font_name,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20new_line_color,=0A=20=09=09=09=09=09=20=20=20new_linemode,=20=
new_plot_line_width,=20=0A=20=09=09=09=09=09=20=20=20new_fill_fraction,=20=
new_use_color);=0A=20=0A=20=09=09=20=20new_symbol=20=3D=20=
new_symbol_size=20=3D=20new_symbol_font_name=20=3D=20false;=0A-=09=09=20=20=
new_linemode=20=3D=20new_plot_line_width=20=3D=20false;=0A+=09=09=20=20=
new_line_color=20=3D=20new_linemode=20=3D=20new_plot_line_width=20=3D=20=
false;=0A=20=09=09=20=20new_fill_fraction=20=3D=20new_use_color=20=3D=20=
false;=0A=20=09=09}=0A=20=09=20=20=20=20=20=20=0Adiff=20--git=20=
a/graph/plotter.c=20b/graph/plotter.c=0Aindex=200a21210..45b9f6a=20=
100644=0A---=20a/graph/plotter.c=0A+++=20b/graph/plotter.c=0A@@=20-39,6=20=
+39,7=20@@=0A=20=20=20=20=20=20=20a=20symbol=20size=20(a=20fraction=20of=20=
the=20size=20of=20the=20plotting=20box)=0A=20=20=20=20=20=20=20a=20=
symbol=20font=20name=20(relevant=20only=20for=20symbol=20types=20>=3D=20=
32)=0A=20=20=20=20=20=20=20a=20linemode=20(a=20small=20integer)=0A+=20=20=
=20=20=20=20a=20line_color=20(a=20string,=20overrides=20linemode=20color=20=
unless=20empty)=0A=20=20=20=20=20=20=20a=20linewidth=20(a=20fraction=20=
of=20the=20size=20of=20the=20display=20device)=0A=20=20=20=20=20=20=20a=20=
polyline=20fill-fraction=20(in=20the=20interval=20[0,1],=20<0=20means=20=
no=20fill)=0A=20=20=20=20=20=20=20a=20use_color=20flag=20(true=20or=20=
false)=0A@@=20-298,7=20+299,7=20@@=20static=20void=20=
plot_ordinate_log_subsubtick=20(Multigrapher=20*multigrapher,=20double=20=
xva=0A=20static=20void=20prepare_axis=20(Axis=20*axisp,=20Transform=20=
*trans,=20double=20min,=20double=20max,=20double=20spacing,=20const=20=
char=20*font_name,=20double=20font_size,=20const=20char=20*label,=20=
double=20subsubtick_spacing,=20bool=20user_specified_subsubticks,=20bool=20=
round_to_next_tick,=20bool=20log_axis,=20bool=20reverse_axis,=20bool=20=
switch_axis_end,=20=20bool=20omit_ticks);=0A=20static=20void=20=
print_tick_label=20(char=20*labelbuf,=20const=20Axis=20*axis,=20const=20=
Transform=20*transform,=20double=20val);=0A=20static=20void=20scale1=20=
(double=20min,=20double=20max,=20double=20*tick_spacing,=20int=20=
*tick_spacing_type);=0A-static=20void=20set_line_style=20(Multigrapher=20=
*multigrapher,=20int=20style,=20bool=20use_color);=0A+static=20void=20=
set_line_style=20(Multigrapher=20*multigrapher,=20int=20style,=20const=20=
char=20*line_color,=20bool=20use_color);=0A=20static=20void=20=
transpose_portmanteau=20(int=20*val);=0A=20=0A=20=0C=0A@@=20-864,8=20=
+865,8=20@@=20set_graph_parameters=20(Multigrapher=20*multigrapher,=20=
double=20frame_line_width,=20const=0A=20=20=20if=20(x_max=20=3D=3D=20=
x_min)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20fprintf=20(stderr,=20=0A=
-=09=20=20=20=20=20=20=20"%s:=20identical=20upper=20and=20lower=20x=20=
limits=20are=20separated\n",=0A-=09=20=20=20=20=20=20=20progname);=0A+=09=
=20=20=20=20=20=20=20"%s:=20identical=20upper=20and=20lower=20x=20limits=20=
(%f,=20%f)=20are=20separated\n",=0A+=09=20=20=20=20=20=20=20progname,=20=
x_max,=20x_min);=0A=20=20=20=20=20=20=20/*=20separate=20them=20*/=0A=20=20=
=20=20=20=20=20x_max=20+=3D=201.0;=0A=20=20=20=20=20=20=20x_min=20-=3D=20=
1.0;=0A@@=20-885,8=20+886,8=20@@=20set_graph_parameters=20(Multigrapher=20=
*multigrapher,=20double=20frame_line_width,=20const=0A=20=20=20if=20=
(y_max=20=3D=3D=20y_min)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20=
fprintf=20(stderr,=20=0A-=09=20=20=20=20=20=20=20"%s:=20identical=20=
upper=20and=20lower=20y=20limits=20are=20separated\n",=0A-=09=20=20=20=20=
=20=20=20progname);=0A+=09=20=20=20=20=20=20=20"%s:=20identical=20upper=20=
and=20lower=20x=20limits=20(%f,=20%f)=20are=20separated\n",=0A+=09=20=20=20=
=20=20=20=20progname,=20y_max,=20y_min);=0A=20=20=20=20=20=20=20/*=20=
separate=20them=20*/=0A=20=20=20=20=20=20=20y_max=20+=3D=201.0;=0A=20=20=20=
=20=20=20=20y_min=20-=3D=201.0;=0A@@=20-2225,7=20+2226,8=20@@=20=
plot_ordinate_log_subsubtick=20(Multigrapher=20*multigrapher,=20double=20=
yval)=0A=20=20*=20explanation=20at=20head=20of=20file.=20*/=0A=20=0A=20=
static=20void=0A-set_line_style=20(Multigrapher=20*multigrapher,=20int=20=
style,=20bool=20use_color)=0A+set_line_style=20(Multigrapher=20=
*multigrapher,=20int=20style,=20const=20char=20*line_color,=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20bool=20use_color)=0A=20{=0A=20=20=20=
if=20(!use_color)=09=09/*=20monochrome=20*/=0A=20=20=20=20=20{=0A@@=20=
-2260,7=20+2262,9=20@@=20set_line_style=20(Multigrapher=20*multigrapher,=20=
int=20style,=20bool=20use_color)=0A=20=20=20=20=20=20=20else=09=09=09/*=20=
neg.=20pl_linemode_r=20(no=20line=20will=20be=20drawn)*/=0A=20=09j=20=3D=20=
(-style=20-=201)=20%=20(NO_OF_LINEMODES=20-=201);=0A=20=0A-=20=20=20=20=20=
=20pl_colorname_r=20(multigrapher->plotter,=20colorstyle[j]);=0A+=20=20=20=
=20=20=20pl_colorname_r=20(multigrapher->plotter,=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20line_color=20&&=20=
line_color[0]=20?=20line_color=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20:=20colorstyle[j]);=0A=20=20=20=20=20=
}=0A=20}=0A=20=0A@@=20-2303,7=20+2307,8=20@@=20plot_point=20=
(Multigrapher=20*multigrapher,=20const=20Point=20*point)=0A=20=20=20=20=20=
{=0A=20=20=20=20=20=20=20int=20intfill;=0A=20=20=20=20=20=20=20=0A-=20=20=
=20=20=20=20set_line_style=20(multigrapher,=20point->linemode,=20=
point->use_color);=0A+=20=20=20=20=20=20set_line_style=20(multigrapher,=20=
point->linemode,=20point->line_color,=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20point->use_color);=0A=20=0A=20=20=20=20=20=
=20=20/*=20N.B.=20linewidth=20<=200.0=20means=20use=20libplot=20default=20=
*/=0A=20=20=20=20=20=20=20pl_flinewidth_r=20(multigrapher->plotter,=20=0A=
diff=20--git=20a/graph/reader.c=20b/graph/reader.c=0Aindex=20=
2984885..08f4699=20100644=0A---=20a/graph/reader.c=0A+++=20=
b/graph/reader.c=0A@@=20-119,6=20+119,7=20@@=20struct=20ReaderStruct=09=09=
/*=20point=20reader=20datatype=20*/=0A=20=20=20int=20symbol;=09=09=09/*=20=
symbol=20type=20*/=0A=20=20=20double=20symbol_size;=09=09/*=20symbol=20=
size=20(in=20`box=20coordinates')=20*/=0A=20=20=20const=20char=20=
*symbol_font_name;=09/*=20font=20used=20for=20marker=20types=20>=3D=2032=20=
*/=0A+=20=20const=20char=20*line_color;=20=20=20=20=20=20=20/*=20=
explicitly=20replace=20color=20in=20linemode=20*/=0A=20=20=20int=20=
linemode;=09=09=09/*=20linemode=20*/=0A=20=20=20double=20line_width;=09=09=
/*=20line=20width=20(as=20frac.=20of=20display=20size)=20*/=0A=20=20=20=
double=20fill_fraction;=09=09/*=20in=20interval=20[0,1],=20<0=20means=20=
no=20filling=20*/=0A@@=20-161,7=20+162,7=20@@=20static=20void=20=
skip_all_whitespace=20(FILE=20*stream);=0A=20=09=20line_width=20=3D=20=
fraction=20of=20display=20size=0A=20=09=20fill_fraction=20=3D=20number=20=
in=20range=20[0,1],=20<0=20means=20unfilled=20(transparent)*/=0A=20=
Reader=20*=0A-new_reader=20(FILE=20*input,=20data_type=20format_type,=20=
bool=20auto_abscissa,=20double=20delta_x,=20double=20abscissa,=20bool=20=
transpose_axes,=20int=20log_axis,=20bool=20auto_bump,=20int=20symbol,=20=
double=20symbol_size,=20const=20char=20*symbol_font_name,=20int=20=
linemode,=20double=20line_width,=20double=20fill_fraction,=20bool=20=
use_color)=0A+new_reader=20(FILE=20*input,=20data_type=20format_type,=20=
bool=20auto_abscissa,=20double=20delta_x,=20double=20abscissa,=20bool=20=
transpose_axes,=20int=20log_axis,=20bool=20auto_bump,=20int=20symbol,=20=
double=20symbol_size,=20const=20char=20*symbol_font_name,=20const=20char=20=
*line_color,=20int=20linemode,=20double=20line_width,=20double=20=
fill_fraction,=20bool=20use_color)=0A=20=0A=20{=0A=20=20=20Reader=20=
*reader;=0A@@=20-181,6=20+182,7=20@@=20new_reader=20(FILE=20*input,=20=
data_type=20format_type,=20bool=20auto_abscissa,=20double=20delta=0A=20=20=
=20reader->symbol=20=3D=20symbol;=0A=20=20=20reader->symbol_size=20=3D=20=
symbol_size;=0A=20=20=20reader->symbol_font_name=20=3D=20=
symbol_font_name;=0A+=20=20reader->line_color=20=3D=20line_color;=0A=20=20=
=20reader->linemode=20=3D=20linemode;=0A=20=20=20reader->line_width=20=3D=20=
line_width;=0A=20=20=20reader->fill_fraction=20=3D=20fill_fraction;=0A@@=20=
-206,7=20+208,7=20@@=20delete_reader=20(Reader=20*reader)=0A=20=0A=20/*=20=
ARGS:=20note=20that=20the=20final=20new_*=20args=20make=20up=20a=20mask=20=
*/=0A=20void=20=0A-alter_reader_parameters=20(Reader=20*reader,=20FILE=20=
*input,=20data_type=20format_type,=20bool=20auto_abscissa,=20double=20=
delta_x,=20double=20abscissa,=20int=20symbol,=20double=20symbol_size,=20=
const=20char=20*symbol_font_name,=20int=20linemode,=20double=20=
line_width,=20double=20fill_fraction,=20bool=20use_color,=20bool=20=
new_symbol,=20bool=20new_symbol_size,=20bool=20new_symbol_font_name,=20=
bool=20new_linemode,=20bool=20new_line_width,=20bool=20=
new_fill_fraction,=20bool=20new_use_color)=0A+alter_reader_parameters=20=
(Reader=20*reader,=20FILE=20*input,=20data_type=20format_type,=20bool=20=
auto_abscissa,=20double=20delta_x,=20double=20abscissa,=20int=20symbol,=20=
double=20symbol_size,=20const=20char=20*symbol_font_name,=20const=20char=20=
*line_color,=20int=20linemode,=20double=20line_width,=20double=20=
fill_fraction,=20bool=20use_color,=20bool=20new_symbol,=20bool=20=
new_symbol_size,=20bool=20new_symbol_font_name,=20bool=20new_line_color,=20=
bool=20new_linemode,=20bool=20new_line_width,=20bool=20=
new_fill_fraction,=20bool=20new_use_color)=0A=20{=0A=20=20=20=
reader->need_break=20=3D=20true;=09/*=20force=20break=20in=20polyline=20=
*/=0A=20=20=20reader->input=20=3D=20input;=0A@@=20-222,6=20+224,8=20@@=20=
alter_reader_parameters=20(Reader=20*reader,=20FILE=20*input,=20=
data_type=20format_type,=20boo=0A=20=20=20=20=20reader->symbol_size=20=3D=20=
symbol_size;=0A=20=20=20if=20(new_symbol_font_name)=0A=20=20=20=20=20=
reader->symbol_font_name=20=3D=20symbol_font_name;=0A+=20=20if=20=
(new_line_color)=0A+=20=20=20=20reader->line_color=20=3D=20line_color;=0A=
=20=20=20if=20(new_linemode)=0A=20=20=20=20=20reader->linemode=20=3D=20=
linemode;=0A=20=20=20if=20(new_line_width)=0A@@=20-248,6=20+252,7=20@@=20=
read_point=20(Reader=20*reader,=20Point=20*point)=0A=20=20=20=
point->symbol=20=3D=20reader->symbol;=0A=20=20=20point->symbol_size=20=3D=20=
reader->symbol_size;=0A=20=20=20point->symbol_font_name=20=3D=20=
reader->symbol_font_name;=0A+=20=20point->line_color=20=3D=20=
reader->line_color;=0A=20=20=20point->linemode=20=3D=20reader->linemode;=0A=
=20=20=20point->line_width=20=3D=20reader->line_width;=0A=20=20=20=
point->fill_fraction=20=3D=20reader->fill_fraction;=0A--=20=0A1.8.2.3=0A=0A=

--Apple-Mail-48-130869734
Content-Disposition: attachment;
	filename=0002-Rudimentary-legend-feature.patch
Content-Type: application/octet-stream;
	name="0002-Rudimentary-legend-feature.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2027e81b8c7cedd3ed6e30597989ea4155ce852b3b=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Daniel=20Llorens=20<dll@jast.ch>=0ADate:=20=
Mon,=2030=20Jan=202012=2013:26:59=20+0100=0ASubject:=20[PATCH=202/6]=20=
Rudimentary=20legend=20feature=0A=0A*=20graph/extern.H:=20Legend=20=
struct,=20legend,=20placement,=20font=20size=20arguments=20to=20=
plot_legend().=0A*=20graph/graph.c:=20Parse=20--legend,=20--place-legend=20=
options,=20and=20call=20plot_legend(),=20not=20in=20all=20necessary=20=
cases=20though.=0A*=20graph/plotter.c:=20Inverted=20transform=20macros=20=
XVI,=20etc.=20Draw=20legend=20with=20plot_legend().=0A---=0A=20=
graph/extern.h=20=20|=20=208=20+++++=0A=20graph/graph.c=20=20=20|=2083=20=
+++++++++++++++++++++++++++++++++++++++++++++++---=0A=20graph/plotter.c=20=
|=2094=20++++++++++++++++++++++++++++++++++++++++++++++++++++++++-=0A=20=
3=20files=20changed,=20180=20insertions(+),=205=20deletions(-)=0A=0Adiff=20=
--git=20a/graph/extern.h=20b/graph/extern.h=0Aindex=2051f4cda..d408cd1=20=
100644=0A---=20a/graph/extern.h=0A+++=20b/graph/extern.h=0A@@=20-95,6=20=
+95,14=20@@=20extern=20void=20plot_point=20(Multigrapher=20=
*multigrapher,=20const=20Point=20*point);=0A=20=0A=20extern=20void=20=
plot_point_array=20(Multigrapher=20*multigrapher,=20const=20Point=20*p,=20=
int=20length);=0A=20=0A+typedef=20struct=0A+{=0A+=20=20Point=20point;=0A=
+=20=20char=20const=20*=20label;=0A+}=20Legend;=0A+=0A+extern=20void=20=
plot_legend=20(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20=
length,=20double=20posy,=20double=20font_size);=0A+=0A=20extern=20void=20=
end_polyline_and_flush=20(Multigrapher=20*multigrapher);=0A=20=0A=20=
/*-----------------=20prototypes=20for=20functions=20in=20reader.h=20=
-------------------*/=0Adiff=20--git=20a/graph/graph.c=20b/graph/graph.c=0A=
index=20ddaff00..bb12160=20100644=0A---=20a/graph/graph.c=0A+++=20=
b/graph/graph.c=0A@@=20-85,6=20+85,9=20@@=20struct=20option=20=
long_options[]=20=3D=0A=20=20=20{"symbol-font-name",=09ARG_REQUIRED,=09=
NULL,=20'G'=20<<=208},=0A=20=20=20{"title-font-name",=09ARG_REQUIRED,=09=
NULL,=20'Z'=20<<=208},=0A=20=20=20{"title-font-size",=09ARG_REQUIRED,=09=
NULL,=20'F'=20<<=208},=0A+=20=20{"legend",=20=20=20=20=20=20=20=20=20=20=20=
=20ARG_REQUIRED,=20=20=20NULL,=20'L'=20<<=208},=0A+=20=20=
{"place-legend",=20=20=20=20=20=20ARG_REQUIRED,=20=20=20NULL,=20'O'=20<<=20=
8},=0A+=20=20{"legend-font-size",=20=20ARG_REQUIRED,=20=20=20NULL,=20'Q'=20=
<<=208},=0A=20=20=20{"page-size",=09=09ARG_REQUIRED,=09NULL,=20'P'=20<<=20=
8},=0A=20=20=20/*=20Options=20relevant=20only=20to=20raw=20graph=20=
(refers=20to=20plot(5)=20output)=20*/=0A=20=20=20{"portable-output",=09=
ARG_NONE,=09NULL,=20'O'},=0A@@=20-112,6=20+115,15=20@@=20static=20void=20=
close_file=20(char=20*filename,=20FILE=20*stream);=0A=20static=20void=20=
open_file_for_reading=20(char=20*filename,=20FILE=20**input);=0A=20=
static=20bool=20parse_pen_string=20(const=20char=20*pen_s);=0A=20=0A=
+void=0A+add_legend=20(Legend=20**legends,=20int=20*length,=20const=20=
Point=20*point,=20char=20const=20*label)=0A+{=0A+=20=20=20=20=
++(*length);=0A+=20=20=20=20*legends=20=3D=20(Legend=20*)xrealloc=20=
(*legends,=20*length=20*=20sizeof=20(Legend));=0A+=20=20=20=20=
memcpy(&((*legends)[*length-1].point),=20point,=20sizeof=20(Point));=0A+=20=
=20=20=20(*legends)[*length-1].label=20=3D=20xstrdup(label);=0A+}=0A+=0A=20=
int=0A=20main=20(int=20argc,=20char=20*argv[])=0A=20{=0A@@=20-156,6=20=
+168,13=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=20=20double=20=
fill_fraction=20=3D=20-1.0;=09/*=20negative=20means=20regions=20aren't=20=
filled=20*/=0A=20=20=20bool=20use_color=20=3D=20false;=09/*=20color=20/=20=
monochrome=20*/=0A=20=0A+=20=20bool=20new_legend_label=20=3D=20false;=0A=
+=20=20const=20char=20*legend_label=20=3D=20NULL;=0A+=20=20/*=20points=20=
used=20for=20legend=20*/=0A+=20=20Legend=20*legends=20=3D=20(Legend=20=
*)xmalloc=20(0);=0A+=20=20int=20no_of_legends=20=3D=200;=20=0A+=20=20=
double=20place_legend=20=3D=201.;=20=0A+=0A=20=20=20/*=20Variables=20=
related=20to=20both=20the=20point=20reader=20and=20the=20point=20plotter=20=
*/=0A=20=0A=20=20=20bool=20transpose_axes=20=3D=20false;=09/*=20true=20=
means=20-x=20applies=20to=20y=20axis,=20etc.=20*/=0A@@=20-202,6=20+221,7=20=
@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=20=20double=20tick_size=20=
=3D=20.02;=09/*=20size=20of=20tick=20marks=20(<=200.0=20allowed)=20*/=0A=20=
=20=20double=20font_size=20=3D=200.0525;=09/*=20fontsize=20*/=0A=20=20=20=
double=20title_font_size=20=3D=200.07;=20/*=20title=20fontsize=20*/=0A+=20=
=20double=20legend_font_size=20=3D=200.035;=20/*=20title=20fontsize=20*/=0A=
=20=20=20double=20blankout_fraction=20=3D=201.3;=20/*=20this=20fraction=20=
of=20size=20of=20plotting=20box=0A=20=09=09=09=09=20=20=20is=20erased=20=
before=20the=20plot=20is=20drawn=20*/=0A=20=0A@@=20-228,12=20+248,13=20=
@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=20=20int=20=
local_grid_style;=0A=20=20=20int=20local_symbol_index;=0A=20=20=20int=20=
local_clip_mode;=0A-=20=20double=20local_symbol_size,=20local_font_size,=20=
local_title_font_size;=0A+=20=20double=20local_symbol_size,=20=
local_font_size,=20local_title_font_size,=20local_legend_font_size;=0A=20=
=20=20double=20local_frame_line_width,=20local_plot_line_width;=0A=20=20=20=
double=20local_min_x,=20local_min_y;=0A=20=20=20double=20local_max_x,=20=
local_max_y;=0A=20=20=20double=20local_spacing_x,=20local_spacing_y;=0A=20=
=20=20double=20local_fill_fraction;=0A+=20=20double=20=
local_place_legend;=0A=20=20=20=0A=20=20=20/*=20`finalized'=20arguments=20=
to=20set_graph_parameters()=20(computed=20at=20the=20time=0A=20=20=20=20=20=
=20the=20first=20file=20of=20a=20graph=20is=20seen,=20and=20continuing=20=
in=20effect=20over=20the=0A@@=20-251,7=20+272,7=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=20=20Point=20*p;=09=09=09/*=20points=20=
array=20*/=0A=20=20=20int=20points_length=20=3D=201024;=09/*=20length=20=
of=20the=20points=20array,=20in=20points=20*/=0A=20=20=20int=20=
no_of_points=20=3D=200;=09=09/*=20number=20of=20points=20stored=20in=20=
it=20*/=0A-=0A+=20=20=0A=20=20=20/*=20support=20for=20multigraphing=20*/=0A=
=20=20=20double=20reposition_trans_x=20=3D=200.0,=20reposition_trans_y=20=
=3D=200.0;=0A=20=20=20double=20reposition_scale=20=3D=201.0;=0A@@=20=
-347,6=20+368,23=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=20=
=20new_use_color=20=3D=20true;=0A=20=09=20=20use_color=20=3D=20=
(use_color=20=3D=3D=20true=20?=20false=20:=20true);=0A=20=09=20=20break;=0A=
+=20=20=20=20=20=20=20=20case=20'L'=20<<=208:=0A+=20=20=20=20=20=20=20=20=
=20=20new_legend_label=20=3D=20true;=0A+=20=20=20=20=20=20=20=09=20=20=
legend_label=20=3D=20xstrdup=20(optarg);=0A+=20=20=20=20=20=20=20=20=20=20=
break;=0A+=20=20=20=20=20=20=20=20case=20'O'=20<<=208:=0A+=09=20=20if=20=
((sscanf=20(optarg,=20"%lf",=20&local_place_legend)=20<=3D=200)=0A+=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20||=20local_place_legend<0=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20||=20local_place_legend>1)=0A+=09=20=20=20=
=20{=0A+=09=20=20=20=20=20=20fprintf=20(stderr,=0A+=09=09=20=20=20=20=20=20=
=20"%s:=20error:=20legend=20placement=20should=20be=20number=20in=20[0=20=
1],=20but=20it=20was=20`%s'\n",=0A+=09=09=20=20=20=20=20=20=20progname,=20=
optarg);=0A+=09=20=20=20=20=20=20errcnt++;=0A+=09=20=20=20=20}=0A+=09=20=20=
else=0A+=20=20=20=20=20=20=20=20=20=20=20=20place_legend=20=3D=20=
local_place_legend;=0A+=09=20=20break;=0A=20=09case=20'H':=09=09/*=20=
Toggle=20frame-on-top,=20ARG=20NONE=20*/=0A=20=09=20=20frame_on_top=20=3D=20=
(frame_on_top=20=3D=3D=20true=20?=20false=20:=20true);=0A=20=09=20=20=
break;=0A@@=20-722,6=20+760,26=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20else=0A=20=09=20=20=20=20title_font_size=20=3D=20=
local_title_font_size;=0A=20=09=20=20break;=0A+=09case=20'Q'=20<<=208:=09=
=09/*=20Legend=20font=20size,=20ARG=20REQUIRED=09*/=0A+=09=20=20if=20=
(sscanf=20(optarg,=20"%lf",=20&local_legend_font_size)=20<=3D=200)=0A+=09=
=20=20=20=20{=0A+=09=20=20=20=20=20=20fprintf=20(stderr,=0A+=09=09=20=20=20=
=20=20=20=20"%s:=20error:=20the=20font=20size=20for=20the=20legend=20=
should=20be=20a=20number,=20but=20it=20was=20`%s'\n",=0A+=09=09=20=20=20=20=
=20=20=20progname,=20optarg);=0A+=09=20=20=20=20=20=20errcnt++;=0A+=09=20=
=20=20=20}=0A+=09=20=20else=20if=20(local_legend_font_size=20>=3D=201.0)=0A=
+=09=20=20=20=20fprintf=20(stderr,=20"%s:=20the=20too-large=20legend=20=
font=20size=20`%f'=20is=20disregarded=20(it=20should=20be=20less=20than=20=
1.0)\n",=0A+=09=09=20=20=20=20=20progname,=20local_legend_font_size);=0A=
+=09=20=20else=20if=20(local_legend_font_size=20<=200.0)=0A+=09=20=20=20=20=
fprintf=20(stderr,=20"%s:=20the=20negative=20legend=20font=20size=20`%f'=20=
is=20disregarded\n",=0A+=09=09=20=20=20=20=20progname,=20=
local_legend_font_size);=0A+=09=20=20if=20(local_legend_font_size=20=3D=3D=
=200.0)=0A+=09=20=20=20=20fprintf=20(stderr,=20"%s:=20the=20request=20=
for=20a=20zero=20legend=20font=20size=20is=20disregarded\n",=0A+=09=09=20=
=20=20=20=20progname);=0A+=09=20=20else=0A+=09=20=20=20=20=
legend_font_size=20=3D=20local_legend_font_size;=0A+=09=20=20break;=0A=20=
=09case=20'W'=20<<=208:=09=09/*=20Frame=20line=20width,=20ARG=20REQUIRED=09=
*/=0A=20=09=20=20if=20(sscanf=20(optarg,=20"%lf",=20=
&local_frame_line_width)=20<=3D=200)=0A=20=09=20=20=20=20{=0A@@=20=
-1030,7=20+1088,8=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=
=09=09=09final_min_y,=20final_max_y,=20final_spacing_y,=0A=20=09=09=09=09=
=09final_spec_spacing_x,=0A=20=09=09=09=09=09final_spec_spacing_y,=0A-=09=
=09=09=09=09plot_width,=20plot_height,=20margin_below,=20margin_left,=0A=
+=09=09=09=09=09plot_width,=20plot_height,=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20margin_below,=20margin_left,=0A=20=09=09=09=09=09=
font_name,=20font_size,=20/*=20for=20abs.=20label=20*/=0A=20=09=09=09=09=09=
x_label,=20=0A=20=09=09=09=09=09font_name,=20font_size,=20/*=20for=20=
ord.=20label=20*/=0A@@=20-1053,6=20+1112,8=20@@=20main=20(int=20argc,=20=
char=20*argv[])=0A=20=09=20=20=20=20=20=20=0A=20=09=09=20=20/*=20plot=20=
the=20laboriously=20read-in=20array=20*/=0A=20=09=09=20=20=
plot_point_array=20(multigrapher,=20p,=20no_of_points);=0A+=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20if=20(no_of_legends>0)=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20plot_legend=20=
(multigrapher,=20legends,=20no_of_legends,=20place_legend,=20=
legend_font_size);=20//Y=0A=20=09=20=20=20=20=20=20=0A=20=09=09=20=20/*=20=
free=20points=20array=20*/=0A=20=09=09=20=20free=20(p);=0A@@=20-1316,6=20=
+1377,12=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=20=20=20=20=
=20=20/*=20call=20read_and_plot_file()=20on=20the=20file;=20each=20=
dataset=20in=20the=0A=20=09=09=20file=20yields=20a=20polyline=20*/=0A=20=09=
=20=20=20=20=20=20read_and_plot_file=20(reader,=20multigrapher);=0A+//=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20=
(no_of_points>old_no_of_points)=20//R=20//=20don't=20know=20how=20to=20=
get=20the=20point=20here...//R=0A+//=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20{=0A+//=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20add_legend(legend_points,=20legend_labels,=20no_of_legends,=0A+//=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20p[no_of_points-1],=20legend_labels[no_of_legends-1]);=0A+//=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20}=0A+=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20new_legend_label=20=3D=20false;=0A=20=0A=20=09=20=20=20=
=20}=20/*=20end=20of=20filter=20case=20*/=0A=20=09=20=20=0A@@=20-1375,7=20=
+1442,13=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09}=0A=20=09=
=20=20=20=20=20=20=0A=20=09=20=20=20=20=20=20/*=20add=20points=20to=20=
points=20array=20by=20calling=20read_file()=20on=20file=20*/=0A+=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20int=20old_no_of_points=20=3D=20=
no_of_points;=0A=20=09=20=20=20=20=20=20read_file=20(reader,=20&p,=20=
&points_length,=20&no_of_points);=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20if=20(new_legend_label=20&&=20no_of_points>old_no_of_points)=20//Y=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20{=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20add_legend(&legends,=20&no_of_legends,=20=
&p[no_of_points-1],=20legend_label);=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20}=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
new_legend_label=20=3D=20false;=0A=20=0A=20=09=20=20=20=20}=20/*=20end=20=
of=20not-filter=20case=20*/=0A=20=0A@@=20-1438,7=20+1511,7=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=20=20=20=20=20graph=20currently=20=
in=20progress,=20if=20it's=20nonempty=20(i.e.=20if=20one=20or=20more=0A=20=
=20=20=20=20=20files=20have=20been=20read).=20*/=0A=20=0A-=20=20if=20=
(first_file_of_graph=20=3D=3D=20false)=0A+=20=20if=20=
(!first_file_of_graph)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20/*=20At=20=
least=20one=20file=20was=20read.=20=20If=20we're=20acting=20as=20a=20=
real-time=0A=20=09=20filter,=20then=20the=20graph=20is=20already=20drawn=20=
on=20the=20display=20and=20there's=0A@@=20-1514,6=20+1587,8=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=20=20=0A=20=09=20=20/*=20plot=20=
the=20laboriously=20read-in=20array=20*/=0A=20=09=20=20plot_point_array=20=
(multigrapher,=20p,=20no_of_points);=0A+=20=20=20=20=20=20=20=20=20=20if=20=
(no_of_legends>0)=0A+=20=20=20=20=20=20=20=20=20=20=20=20plot_legend=20=
(multigrapher,=20legends,=20no_of_legends,=20place_legend,=20=
legend_font_size);=20//Y=0A=20=09=20=20=0A=20=09=20=20/*=20free=20points=20=
array=20*/=0A=20=09=20=20free=20(p);=0Adiff=20--git=20a/graph/plotter.c=20=
b/graph/plotter.c=0Aindex=2045b9f6a..f41ffe4=20100644=0A---=20=
a/graph/plotter.c=0A+++=20b/graph/plotter.c=0A@@=20-173,19=20+173,23=20=
@@=20typedef=20struct=0A=20/*=20Affine=20transformation=20macros=20*/=0A=20=
=0A=20/*=20X=20Scale:=20convert=20from=20user=20x=20value=20to=20=
normalized=20x=20coordinate=20(floating=0A-=20=20=20point,=200.0=20to=20=
1.0).=20*/=0A+=20=20=20point,=200.0=20to=201.0),=20and=20inverse.=20*/=0A=
=20#define=20XS(x)=20(((x)=20-=20=
multigrapher->x_trans.input_min)/multigrapher->x_trans.input_range)=0A=
+#define=20XSI(x)=20(((x)*multigrapher->x_trans.input_range)=20+=20=
multigrapher->x_trans.input_min)=0A=20/*=20X=20Reflect:=20map=20[0,1]=20=
to=20[1,0],=20if=20that's=20called=20for=20*/=0A=20#define=20XR(x)=20=
(multigrapher->x_trans.reverse=20?=201.0=20-=20(x)=20:=20(x))=0A=20/*=20=
X=20Squeeze:=20map=20[0,1]=20range=20for=20normalized=20x=20coordinate=20=
into=20a=20smaller=0A=20=20=20=20interval,=20the=20x=20range=20for=20the=20=
plotting=20area=20within=20the=20graphics=20display=20*/=0A=20#define=20=
XSQ(x)=20(multigrapher->x_trans.squeezed_min=20+=20(x)=20*=20=
multigrapher->x_trans.squeezed_range)=0A+#define=20XSQI(x)=20(((x)=20-=20=
multigrapher->x_trans.squeezed_min)/multigrapher->x_trans.squeezed_range)=0A=
=20/*=20X=20Plot:=20convert=20from=20normalized=20x=20coordinate=20to=20=
floating=20point=20libplot=0A=20=20=20=20coordinate.=20*/=0A=20#define=20=
XP(x)=20(multigrapher->x_trans.output_min=20+=20(x)=20*=20=
multigrapher->x_trans.output_range)=0A+#define=20XPI(x)=20(((x)=20-=20=
multigrapher->x_trans.output_min)/multigrapher->x_trans.output_range)=0A=20=
/*=20X=20Value:=20convert=20from=20user=20x=20value=20(floating=20point)=20=
to=20floating=20point=0A=20=20=20=20libplot=20coordinate.=20*/=0A=20=
#define=20XV(x)=20XP(XSQ(XR(XS(x))))=0A+#define=20XVI(x)=20=
XSI(XR(XSQI(XPI(x))))=0A=20/*=20X=20Normalize:=20the=20same,=20but=20do=20=
not=20perform=20reflection=20if=20any.=20=20(We=20use=0A=20=20=20=20this=20=
for=20plotting=20of=20axes=20and=20their=20labels.)=20*/=0A=20#define=20=
XN(y)=20XP(XSQ(XS(y)))=0A@@=20-193,17=20+197,21=20@@=20typedef=20struct=0A=
=20/*=20Y=20Scale:=20convert=20from=20user=20y=20value=20to=20normalized=20=
y=20coordinate=20(floating=0A=20=20=20=20point,=200.0=20to=201.0).=20*/=0A=
=20#define=20YS(y)=20(((y)=20-=20=
multigrapher->y_trans.input_min)/multigrapher->y_trans.input_range)=0A=
+#define=20YSI(y)=20(((y)*multigrapher->y_trans.input_range)=20+=20=
multigrapher->y_trans.input_min)=0A=20/*=20Y=20Reflect:=20map=20[0,1]=20=
to=20[1,0],=20if=20that's=20called=20for=20*/=0A=20#define=20YR(y)=20=
(multigrapher->y_trans.reverse=20?=201.0=20-=20(y)=20:=20(y))=0A=20/*=20=
Y=20Squeeze:=20map=20[0,1]=20range=20for=20normalized=20y=20coordinate=20=
into=20a=20smaller=0A=20=20=20=20interval,=20the=20y=20range=20for=20the=20=
plotting=20area=20within=20the=20graphics=20display=20*/=0A=20#define=20=
YSQ(y)=20(multigrapher->y_trans.squeezed_min=20+=20(y)=20*=20=
multigrapher->y_trans.squeezed_range)=0A+#define=20YSQI(y)=20(((y)=20-=20=
multigrapher->y_trans.squeezed_min)/multigrapher->y_trans.squeezed_range)=0A=
=20/*=20Y=20Plot:=20convert=20from=20normalized=20y=20coordinate=20to=20=
floating=20point=20libplot=0A=20=20=20=20coordinate.=20*/=0A=20#define=20=
YP(y)=20(multigrapher->y_trans.output_min=20+=20(y)=20*=20=
multigrapher->y_trans.output_range)=0A+#define=20YPI(y)=20(((y)=20-=20=
multigrapher->y_trans.output_min)/multigrapher->y_trans.output_range)=0A=20=
/*=20Y=20Value:=20convert=20from=20user=20y=20value=20(floating=20point)=20=
to=20floating=20point=0A=20=20=20=20libplot=20coordinate.=20=20(We=20use=20=
this=20for=20plotting=20of=20points.)=20*/=0A=20#define=20YV(y)=20=
YP(YSQ(YR(YS(y))))=0A+#define=20YVI(x)=20YSI(YR(YSQI(YPI(x))))=0A=20/*=20=
Y=20Normalize:=20the=20same,=20but=20do=20not=20perform=20reflection=20=
if=20any.=20=20(We=20use=0A=20=20=20=20this=20for=20plotting=20of=20axes=20=
and=20their=20labels.)=20*/=0A=20#define=20YN(y)=20YP(YSQ(YS(y)))=0A@@=20=
-2282,6=20+2290,90=20@@=20plot_point_array=20(Multigrapher=20=
*multigrapher,=20const=20Point=20*p,=20int=20length)=0A=20=20=20=20=20=
plot_point=20(multigrapher,=20&(p[index]));=0A=20}=0A=20=0A+void=0A=
+plot_legend=20(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20=
length,=20double=20posy,=20double=20font_size)=0A+{=0A+=20=20=
pl_savestate_r=20(multigrapher->plotter);=20=0A+=20=20pl_fontname_r=20=
(multigrapher->plotter,=20multigrapher->x_axis.font_name);=0A+=20=20=
font_size=20=3D=20pl_ffontsize_r=20(multigrapher->plotter,=20=
SS(font_size));=0A+=20=20double=20legend_width=20=3D=200.;=0A+=20=20int=20=
i;=0A+=20=20for=20(i=3D0;=20i!=3Dlength;=20++i)=0A+=20=20=20=20{=0A+=20=20=
=20=20=20=20legend_width=20=3D=20fmax(legend_width,=20=
pl_flabelwidth_r(multigrapher->plotter,=20legends[i].label));=0A+=20=20=20=
=20=20=20fprintf(stderr,=20"legend=20%d=20label=20%s\n",=20i,=20=
legends[i].label);=0A+=20=20=20=20}=0A+=20=20double=20x=20=3D=20=
XP(XSQ(1.0))=20-=20legend_width=20-=20font_size*0.5;=0A+=20=20double=20y=20=
=3D=20posy=3D=3D1.=20?=20YP(YSQ(1.0))=20-=20font_size*1.0=0A+=20=20=20=20=
=20=20=20=20=20=20=20:=20posy=3D=3D0.=20?=20YP(YSQ(0.0))=20+=20=
font_size*length=0A+=20=20=20=20=20=20=20=20=20=20=20:=20YP(YSQ(1.0))=20=
-=20font_size*1.0;=20//=20@bug=20only=201=20or=200=0A+=20=20double=20=
xunscale=20=3D=201/(XV=20(1.)=20-=20XV=20(0.));=0A+=20=20double=20=
yunscale=20=3D=201/(YV=20(1.)=20-=20YV=20(0.));=0A+=20=20double=20dimx=20=
=3D=20font_size=20*=20xunscale;=0A+=0A+=20=20pl_savestate_r=20=
(multigrapher->plotter);=0A+=20=20/*=20use=20user-specified=20background=20=
color=20(if=20any)=20instead=20of=20white=20*/=0A+=20=20if=20=
(pl_havecap_r=20(multigrapher->plotter,=20"SETTABLE_BACKGROUND")=20!=3D=20=
0=20=0A+=20=20=20=20=20=20&&=20multigrapher->bg_color)=0A+=20=20=20=20=
pl_colorname_r=20(multigrapher->plotter,=20multigrapher->bg_color);=0A+=20=
=20else=0A+=20=20=20=20pl_colorname_r=20(multigrapher->plotter,=20=
"white");=0A+=0A+=20=20pl_filltype_r=20(multigrapher->plotter,=201);=09=
/*=20turn=20on=20filling=20*/=0A+=20=20pl_fbox_r=20=
(multigrapher->plotter,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20x=20-=20=
3.5+0.25*font_size,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20y=20-=20=
font_size*(length-0.25),=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20x=20+=20=
legend_width=20+=20font_size*0.25,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20y=20+=20font_size*0.5);=0A+=20=20pl_restorestate_r=20=
(multigrapher->plotter);=0A+=20=20=0A+=20=20for=20(i=3D0;=20i!=3Dlength;=20=
++i)=0A+=20=20=20=20{=0A+=20=20=20=20=20=20Point=20*p=20=3D=20=
&(legends[i].point);=0A+=20=20=20=20=20=20double=20ystep=20=3D=20-(i=20*=20=
font_size);=0A+=20=20=20=20=20=20int=20symbol=20=3D=20p->symbol;=0A+=0A+=20=
=20=20=20=20=20if=20(p->linemode=20>=200)=0A+=20=20=20=20=20=20=20=20{=0A=
+=20=20=20=20=20=20=20=20=20=20fprintf(stderr,=20"linemode=20%d=20is=20=
%d\n",=20i,=20p->linemode);=0A+=20=20=20=20=20=20=20=20=20=20p->y=20=3D=20=
YVI(y)=20+=20ystep*yunscale;=0A+=20=20=20=20=20=20=20=20=20=20p->pendown=20=
=3D=20false;=0A+=20=20=20=20=20=20=20=20=20=20p->symbol=20=3D=200;=0A+=20=
=20=20=20=20=20=20=20=20=20p->x=20=3D=20XVI(x)=20-=203.5*dimx;=0A+=20=20=20=
=20=20=20=20=20=20=20plot_point=20(multigrapher,=20p);=0A+=20=20=20=20=20=
=20=20=20=20=20p->pendown=20=3D=20true;=0A+=20=20=20=20=20=20=20=20=20=20=
p->symbol=20=3D=20symbol;=0A+=20=20=20=20=20=20=20=20=20=20p->x=20=3D=20=
XVI(x)=20-=202*dimx;=0A+=20=20=20=20=20=20=20=20=20=20plot_point=20=
(multigrapher,=20p);=0A+=20=20=20=20=20=20=20=20=20=20p->x=20=3D=20=
XVI(x)=20-=200.5*dimx;=0A+=20=20=20=20=20=20=20=20=20=20p->symbol=20=3D=20=
0;=0A+=20=20=20=20=20=20=20=20=20=20plot_point=20(multigrapher,=20p);=0A=
+=20=20=20=20=20=20=20=20=20=20p->pendown=20=3D=20false;=0A+=20=20=20=20=20=
=20=20=20}=0A+=20=20=20=20=20=20else=0A+=20=20=20=20=20=20=20=20{=0A+=20=20=
=20=20=20=20=20=20=20=20p->y=20=3D=20YVI(y)=20+=20ystep*yunscale;=0A+=20=20=
=20=20=20=20=20=20=20=20p->pendown=20=3D=20false;=0A+=20=20=20=20=20=20=20=
=20=20=20p->symbol=20=3D=200;=0A+//=20@bug=20not=20entirely=20clear:=20I=20=
get=20spurious=20dots=20if=20linemode=20is=20left=20to=200.=0A+//=20=
$GRAPH=20--font-name=20HersheyCyrillic=20-C=20-T=20ps=20--reposition=20=
0.=200.=201=20-m=200=20-S=2074=200.05=20--legend=20grey=20-c=20"#808080"=20=
data1=20-W=200.005=20--legend=20blue=20-c=20blue=20data2=20--legend=20=
red%label=20-m=2016=20-c=20red=20data3=20--place-legend=201=20>=20=
plot.ps=20&&=20evince=20plot.ps=0A+=20=20=20=20=20=20=20=20=20=20if=20=
(p->linemode=20=3D=3D=200)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
p->linemode=20=3D=20-1;=0A+=20=20=20=20=20=20=20=20=20=20p->x=20=3D=20=
XVI(x)=20-=201.0*dimx;=0A+=20=20=20=20=20=20=20=20=20=20plot_point=20=
(multigrapher,=20p);=0A+=20=20=20=20=20=20=20=20=20=20p->pendown=20=3D=20=
true;=0A+=20=20=20=20=20=20=20=20=20=20p->symbol=20=3D=20symbol;=0A+=20=20=
=20=20=20=20=20=20=20=20plot_point=20(multigrapher,=20p);=0A+=20=20=20=20=
=20=20=20=20=20=20p->pendown=20=3D=20false;=0A+=20=20=20=20=20=20=20=20}=0A=
+=0A+=20=20=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=20x,=20=
y+ystep);=0A+=20=20=20=20=20=20pl_colorname_r=20(multigrapher->plotter,=20=
"black");=0A+=20=20=20=20=20=20pl_alabel_r=20(multigrapher->plotter,=20=
'l',=20'c',=20legends[i].label);=0A+=20=20=20=20}=0A+=20=20=
pl_restorestate_r=20(multigrapher->plotter);=20=0A+}=0A+=0A=20/*=20=
plot_point()=20plots=20a=20single=20point,=20including=20the=20=
appropriate=20symbol=20and=0A=20=20*=20errorbar(s)=20if=20any.=20=20It=20=
may=20call=20either=20pl_fcont_r()=20or=20pl_fmove_r(),=0A=20=20*=20=
depending=20on=20whether=20the=20pendown=20flag=20is=20set=20or=20not.=20=
=20Gnuplot-style=0A--=20=0A1.8.2.3=0A=0A=

--Apple-Mail-48-130869734
Content-Disposition: attachment;
	filename=0003-Remove-trailing-whitespace.patch
Content-Type: application/octet-stream;
	name="0003-Remove-trailing-whitespace.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=204726b140f60e56d12d637a199e5314562ec5d270=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Daniel=20Llorens=20<dll@jast.ch>=0ADate:=20=
Tue,=2025=20Jun=202013=2013:33:47=20+0200=0ASubject:=20[PATCH=203/6]=20=
Remove=20trailing=20whitespace=0A=0A---=0A=20graph/extern.h=20=20=20|=20=20=
=206=20+=0A=20graph/graph.c=20=20=20=20|=20221=20+++++++++---------=0A=20=
graph/linemode.c=20|=20=20=206=20+=0A=20graph/misc.c=20=20=20=20=20|=20=20=
50=20++--=0A=20graph/plotter.c=20=20|=20686=20=
++++++++++++++++++++++++++++---------------------------=0A=20=
graph/reader.c=20=20=20|=20114=20++++-----=0A=206=20files=20changed,=20=
559=20insertions(+),=20524=20deletions(-)=0A=0Adiff=20--git=20=
a/graph/extern.h=20b/graph/extern.h=0Aindex=20d408cd1..b48bd9f=20100644=0A=
---=20a/graph/extern.h=0A+++=20b/graph/extern.h=0A@@=20-124,3=20+124,9=20=
@@=20extern=20void=20alter_reader_parameters=20(Reader=20*reader,=20FILE=20=
*input,=20data_type=20inpu=0A=20extern=20void=20array_bounds=20(const=20=
Point=20*p,=20int=20length,=20bool=20transpose_axes,=20int=20clip_mode,=20=
double=20*min_x,=20double=20*min_y,=20double=20*max_x,=20double=20=
*max_y,=20bool=20spec_min_x,=20bool=20spec_min_y,=20bool=20spec_max_x,=20=
bool=20spec_max_y);=0A=20=0A=20=
/*------------------------------------------------------------------------=
*/=0A+=0A+/*=0A+=20=20Local=20Variables:=0A+=20=20c-file-style:=20"gnu"=0A=
+=20=20End:=0A+*/=0Adiff=20--git=20a/graph/graph.c=20b/graph/graph.c=0A=
index=20bb12160..bb6f50a=20100644=0A---=20a/graph/graph.c=0A+++=20=
b/graph/graph.c=0A@@=20-74,8=20+74,8=20@@=20struct=20option=20=
long_options[]=20=3D=0A=20=20=20/*=20Long=20options=20with=20no=20=
equivalent=20short=20option=20alias=20*/=0A=20=20=20{"bg-color",=09=09=
ARG_REQUIRED,=09NULL,=20'q'=20<<=208},=0A=20=20=20{"bitmap-size",=09=
ARG_REQUIRED,=09NULL,=20'B'=20<<=208},=0A-=20=20{"blankout",=09=09=
ARG_REQUIRED,=09NULL,=20'b'=20<<=208},=20=20=0A-=20=20{"emulate-color",=09=
ARG_REQUIRED,=09NULL,=20'e'=20<<=208},=20=20=0A+=20=20{"blankout",=09=09=
ARG_REQUIRED,=09NULL,=20'b'=20<<=208},=0A+=20=20{"emulate-color",=09=
ARG_REQUIRED,=09NULL,=20'e'=20<<=208},=0A=20=20=20{"frame-line-width",=09=
ARG_REQUIRED,=09NULL,=20'W'=20<<=208},=0A=20=20=20{"frame-color",=09=
ARG_REQUIRED,=09NULL,=20'C'=20<<=208},=0A=20=20=20{"max-line-length",=09=
ARG_REQUIRED,=09NULL,=20'M'=20<<=208},=0A@@=20-172,8=20+172,8=20@@=20=
main=20(int=20argc,=20char=20*argv[])=0A=20=20=20const=20char=20=
*legend_label=20=3D=20NULL;=0A=20=20=20/*=20points=20used=20for=20legend=20=
*/=0A=20=20=20Legend=20*legends=20=3D=20(Legend=20*)xmalloc=20(0);=0A-=20=
=20int=20no_of_legends=20=3D=200;=20=0A-=20=20double=20place_legend=20=3D=20=
1.;=20=0A+=20=20int=20no_of_legends=20=3D=200;=0A+=20=20double=20=
place_legend=20=3D=201.;=0A=20=0A=20=20=20/*=20Variables=20related=20to=20=
both=20the=20point=20reader=20and=20the=20point=20plotter=20*/=0A=20=0A=
@@=20-182,7=20+182,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=20=
=20/*=20Variables=20related=20to=20the=20multigrapher,=20i.e.=20point=20=
plotter=20*/=0A=20=0A=20=20=20Multigrapher=20*multigrapher=20=3D=20NULL;=0A=
-=20=20=0A+=0A=20=20=20/*=20command-line=20parameters=20(constant=20over=20=
multigrapher=20operation)=20*/=0A=20=20=20const=20char=20*output_format=20=
=3D=20"meta";/*=20libplot=20output=20format=20*/=0A=20=20=20const=20char=20=
*bg_color=20=3D=20NULL;=09/*=20color=20of=20background,=20if=20non-NULL=20=
*/=0A@@=20-255,14=20+255,14=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=
=20=20=20double=20local_spacing_x,=20local_spacing_y;=0A=20=20=20double=20=
local_fill_fraction;=0A=20=20=20double=20local_place_legend;=0A-=20=20=0A=
+=0A=20=20=20/*=20`finalized'=20arguments=20to=20set_graph_parameters()=20=
(computed=20at=20the=20time=0A=20=20=20=20=20=20the=20first=20file=20of=20=
a=20graph=20is=20seen,=20and=20continuing=20in=20effect=20over=20the=0A=20=
=20=20=20=20=20duration=20of=20the=20graph)=20*/=0A=20=20=20int=20=
final_log_axis=20=3D=200;=0A=20=20=20int=20final_round_to_next_tick=20=3D=20=
0;=0A=20=20=20double=20final_min_x=20=3D=200.0,=20final_max_x=20=3D=20=
0.0,=20final_spacing_x=20=3D=200.0;=0A-=20=20double=20final_min_y=20=3D=20=
0.0,=20final_max_y=20=3D=200.0,=20final_spacing_y=20=3D=200.0;=20=20=0A+=20=
=20double=20final_min_y=20=3D=200.0,=20final_max_y=20=3D=200.0,=20=
final_spacing_y=20=3D=200.0;=0A=20=20=20bool=20final_spec_min_x=20=3D=20=
false,=20final_spec_min_y=20=3D=20false;=0A=20=20=20bool=20=
final_spec_max_x=20=3D=20false,=20final_spec_max_y=20=3D=20false;=0A=20=20=
=20bool=20final_spec_spacing_x=20=3D=20false,=20final_spec_spacing_y=20=3D=
=20false;=0A@@=20-272,7=20+272,7=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=20=20Point=20*p;=09=09=09/*=20points=20array=20*/=0A=20=20=
=20int=20points_length=20=3D=201024;=09/*=20length=20of=20the=20points=20=
array,=20in=20points=20*/=0A=20=20=20int=20no_of_points=20=3D=200;=09=09=
/*=20number=20of=20points=20stored=20in=20it=20*/=0A-=20=20=0A+=0A=20=20=20=
/*=20support=20for=20multigraphing=20*/=0A=20=20=20double=20=
reposition_trans_x=20=3D=200.0,=20reposition_trans_y=20=3D=200.0;=0A=20=20=
=20double=20reposition_scale=20=3D=201.0;=0A@@=20-302,9=20+302,9=20@@=20=
main=20(int=20argc,=20char=20*argv[])=0A=20=20=20=20=20=20=20if=20=
(using_getopt)=0A=20=09/*=20end=20of=20options=20not=20reached=20yet=20=
*/=0A=20=09{=0A-=09=20=20option=20=3D=20getopt_long=20(argc,=20argv,=20=0A=
+=09=20=20option=20=3D=20getopt_long=20(argc,=20argv,=0A=20=09=09=09=09=
/*=20initial=20hyphen=20requests=20no=20reordering=20*/=0A-=09=09=09=09=
optstring,=20=0A+=09=09=09=09optstring,=0A=20=09=09=09=09long_options,=20=
&opt_index);=0A=20=09=20=20if=20(option=20=3D=3D=20EOF)=09/*=20end=20of=20=
options=20*/=0A=20=09=20=20=20=20{=0A@@=20-553,7=20+553,7=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=20=20=20=20=20=20log_axis=20^=3D=20=
Y_AXIS;=0A=20=09=20=20=20=20=20=20break;=0A=20=09=20=20=20=20default:=0A=
-=09=20=20=20=20=20=20fprintf=20(stderr,=20=0A+=09=20=20=20=20=20=20=
fprintf=20(stderr,=0A=20=09=09=20=20=20=20=20=20=20"%s:=20the=20=
unrecognized=20axis=20specification=20`%s'=20is=20disregarded\n",=0A=20=09=
=09=20=20=20=20=20=20=20progname,=20optarg);=0A=20=09=20=20=20=20=20=20=
break;=0A@@=20-571,8=20+571,8=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20=20=20=20=20omit_ticks=20^=3D=20Y_AXIS;=0A=20=09=20=
=20=20=20=20=20break;=0A=20=09=20=20=20=20default:=0A-=09=20=20=20=20=20=20=
fprintf=20(stderr,=20=0A-=09=09=20=20=20=20=20=20=20"%s:=20the=20=
unrecognized=20axis=20specification=20`%s'=20is=20disregarded\n",=20=0A+=09=
=20=20=20=20=20=20fprintf=20(stderr,=0A+=09=09=20=20=20=20=20=20=20"%s:=20=
the=20unrecognized=20axis=20specification=20`%s'=20is=20disregarded\n",=0A=
=20=09=09=20=20=20=20=20=20=20progname,=20optarg);=0A=20=09=20=20=20=20=20=
=20break;=0A=20=09=20=20=20=20}=0A@@=20-602,7=20+602,7=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=20=20else=0A=20=09=20=20=20=20{=0A=
=20=09=20=20=20=20=20=20if=20(local_fill_fraction=20>=201.0)=0A-=09=09=
fprintf=20(stderr,=20=0A+=09=09fprintf=20(stderr,=0A=20=09=09=09=20"%s:=20=
the=20region=20fill=20fraction=20`%f'=20was=20disregarded=20(it=20should=20=
be=20less=20than=20or=20equal=20to=201.0)\n",=0A=20=09=09=09=20progname,=20=
local_fill_fraction);=0A=20=09=20=20=20=20=20=20else=0A@@=20-668,7=20=
+668,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=20=20=20=20=20=
=20round_to_next_tick=20^=3D=20Y_AXIS;=0A=20=09=20=20=20=20=20=20break;=0A=
=20=09=20=20=20=20default:=0A-=09=20=20=20=20=20=20fprintf=20(stderr,=20=0A=
+=09=20=20=20=20=20=20fprintf=20(stderr,=0A=20=09=09=20=20=20=20=20=20=20=
"%s:=20the=20unrecognized=20axis=20specification=20`%s'=20is=20=
disregarded\n",=0A=20=09=09=20=20=20=20=20=20=20progname,=20optarg);=0A=20=
=09=20=20=20=20=20=20break;=0A@@=20-709,7=20+709,7=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=09case=20'Y':=09=09/*=20Y=20axis=20title,=20=
ARG=20REQUIRED=09*/=0A=20=09=20=20y_label=20=3D=20xstrdup=20(optarg);=0A=20=
=09=20=20break;=0A-=09case=20'E':=09=09/*=20Toggle=20switching=20of=20=
axis=20to=20other=20end,=20=0A+=09case=20'E':=09=09/*=20Toggle=20=
switching=20of=20axis=20to=20other=20end,=0A=20=09=09=09=09=20=20=20ARG=20=
REQUIRED=20*/=0A=20=09=20=20switch=20(*optarg)=0A=20=09=20=20=20=20{=0A=
@@=20-722,8=20+722,8=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=
=20=20=20=20=20=20switch_axis_end=20^=3D=20X_AXIS;=0A=20=09=20=20=20=20=20=
=20break;=0A=20=09=20=20=20=20default:=0A-=09=20=20=20=20=20=20fprintf=20=
(stderr,=20=0A-=09=09=20=20=20=20=20=20=20"%s:=20the=20unrecognized=20=
axis=20specification=20`%s'=20is=20disregarded\n",=20=0A+=09=20=20=20=20=20=
=20fprintf=20(stderr,=0A+=09=09=20=20=20=20=20=20=20"%s:=20the=20=
unrecognized=20axis=20specification=20`%s'=20is=20disregarded\n",=0A=20=09=
=09=20=20=20=20=20=20=20progname,=20optarg);=0A=20=09=20=20=20=20=20=20=
break;=0A=20=09=20=20=20=20}=0A@@=20-814,7=20+814,7=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=09=20=20frame_color=20=3D=20xstrdup=20=
(optarg);=0A=20=09=20=20break;=0A=20=0A-=09=20=20=0A+=0A=20=09=20=20=
/*------=20options=20with=20zero=20or=20more=20arguments=20---------*/=0A=
=20=0A=20=09case=20'a':=09=09/*=20Auto-abscissa,=20ARG=20OPTIONAL=20=
[0,1,2]=20*/=0A@@=20-842,7=20+842,7=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20matched=20=3D=200;=0A=20=09=20=20if=20(optind=20=
>=3D=20argc=0A=20=09=20=20=20=20=20=20||=20((strcmp=20(argv[optind],=20=
"-")=20!=3D=200)=0A-=09=09=20=20&&=20(matched=20=0A+=09=09=20=20&&=20=
(matched=0A=20=09=09=20=20=20=20=20=20=3D=20sscanf=20(argv[optind],=20=
"%lf",=20&local_min_x))=20<=3D=200))=0A=20=09=20=20=20=20{=0A=20=09=20=20=
=20=20=20=20spec_min_x=20=3D=20spec_max_x=20=3D=20spec_spacing_x=20=3D=20=
false;=0A@@=20-860,7=20+860,7=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20matched=20=3D=200;=0A=20=09=20=20if=20(optind=20=
>=3D=20argc=0A=20=09=20=20=20=20=20=20||=20((strcmp=20(argv[optind],=20=
"-")=20!=3D=200)=0A-=09=09=20=20&&=20(matched=20=0A+=09=09=20=20&&=20=
(matched=0A=20=09=09=20=20=20=20=20=20=3D=20sscanf=20(argv[optind],=20=
"%lf",=20&local_max_x))=20<=3D=200))=0A=20=09=20=20=20=20{=0A=20=09=20=20=
=20=20=20=20spec_max_x=20=3D=20spec_spacing_x=20=3D=20false;=0A@@=20=
-878,7=20+878,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=20=20=
matched=20=3D=200;=0A=20=09=20=20if=20(optind=20>=3D=20argc=0A=20=09=20=20=
=20=20=20=20||=20((strcmp=20(argv[optind],=20"-")=20!=3D=200)=0A-=09=09=20=
=20&&=20(matched=20=0A+=09=09=20=20&&=20(matched=0A=20=09=09=20=20=20=20=20=
=20=3D=20sscanf=20(argv[optind],=20"%lf",=20&local_spacing_x))=20<=3D=20=
0))=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20spec_spacing_x=20=3D=20=
false;=0A@@=20-898,7=20+898,7=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20matched=20=3D=200;=0A=20=09=20=20if=20(optind=20=
>=3D=20argc=0A=20=09=20=20=20=20=20=20||=20((strcmp=20(argv[optind],=20=
"-")=20!=3D=200)=0A-=09=09=20=20&&=20(matched=20=0A+=09=09=20=20&&=20=
(matched=0A=20=09=09=20=20=20=20=20=20=3D=20sscanf=20(argv[optind],=20=
"%lf",=20&local_min_y))=20<=3D=200))=0A=20=09=20=20=20=20{=0A=20=09=20=20=
=20=20=20=20spec_min_y=20=3D=20spec_max_y=20=3D=20spec_spacing_y=20=3D=20=
false;=0A@@=20-916,7=20+916,7=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20matched=20=3D=200;=0A=20=09=20=20if=20(optind=20=
>=3D=20argc=0A=20=09=20=20=20=20=20=20||=20((strcmp=20(argv[optind],=20=
"-")=20!=3D=200)=0A-=09=09=20=20&&=20(matched=20=0A+=09=09=20=20&&=20=
(matched=0A=20=09=09=20=20=20=20=20=20=3D=20sscanf=20(argv[optind],=20=
"%lf",=20&local_max_y))=20<=3D=200))=0A=20=09=20=20=20=20{=0A=20=09=20=20=
=20=20=20=20spec_max_y=20=3D=20spec_spacing_y=20=3D=20false;=0A@@=20=
-934,7=20+934,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=20=20=
matched=20=3D=200;=0A=20=09=20=20if=20(optind=20>=3D=20argc=0A=20=09=20=20=
=20=20=20=20||=20((strcmp=20(argv[optind],=20"-")=20!=3D=200)=0A-=09=09=20=
=20&&=20(matched=20=0A+=09=09=20=20&&=20(matched=0A=20=09=09=20=20=20=20=20=
=20=3D=20sscanf=20(argv[optind],=20"%lf",=20&local_spacing_y))=20<=3D=20=
0))=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20spec_spacing_y=20=3D=20=
false;=0A@@=20-982,12=20+982,12=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20break;=0A=20=0A=20=09=20=20/*=20----------=20=
options=20with=20one=20or=20more=20arguments=20----------=20*/=0A-=09=20=20=
=0A+=0A=20=09case=20'R'=20<<=208:=09=09/*=20End=20graph=20and=20=
reposition,=20ARG=20REQUIRED=20[3]*/=0A=20=09=20=20=
old_reposition_trans_x=20=3D=20reposition_trans_x;=0A=20=09=20=20=
old_reposition_trans_y=20=3D=20reposition_trans_y;=0A=20=09=20=20=
old_reposition_scale=20=3D=20reposition_scale;=0A-=09=20=20=0A+=0A=20=09=20=
=20if=20(sscanf=20(optarg,=20"%lf",=20&reposition_trans_x)=20<=3D=200)=0A=
=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20fprintf=20(stderr,=0A@@=20=
-1046,24=20+1046,24=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=
=09=20=20=20=20=20specify=20(the=20prefix=20"final_"=20means=20these=20=
arguments=0A=20=09=09=20=20=20=20=20were=20finalized=20at=20the=20time=20=
the=20first=20file=20of=20the=20plot=0A=20=09=09=20=20=20=20=20was=20=
processed)=20*/=0A-=09=09=20=20array_bounds=20(p,=20no_of_points,=20=0A+=09=
=09=20=20array_bounds=20(p,=20no_of_points,=0A=20=09=09=09=09=
final_transpose_axes,=20clip_mode,=0A-=09=09=09=09&final_min_x,=20=
&final_min_y,=20=0A+=09=09=09=09&final_min_x,=20&final_min_y,=0A=20=09=09=
=09=09&final_max_x,=20&final_max_y,=0A-=09=09=09=09final_spec_min_x,=20=
final_spec_min_y,=20=0A+=09=09=09=09final_spec_min_x,=20=
final_spec_min_y,=0A=20=09=09=09=09final_spec_max_x,=20=
final_spec_max_y);=0A-=09=09=20=20=0A+=0A=20=09=09=20=20if=20=
(first_graph_of_multigraph)=0A=20=09=09=20=20=20=20/*=20haven't=20=
created=20multigrapher=20yet,=20do=20so=20now=20*/=0A=20=09=09=20=20=20=20=
{=0A=20=09=09=20=20=20=20=20=20if=20((multigrapher=20=3D=20=
new_multigrapher=20(output_format,=20bg_color,=20bitmap_size,=20=
emulate_color,=20max_line_length,=20meta_portable,=20page_size,=20=
rotation_angle,=20save_screen))=20=3D=3D=20NULL)=0A=20=09=09=09{=0A-=09=09=
=09=20=20fprintf=20(stderr,=20=0A+=09=09=09=20=20fprintf=20(stderr,=0A=20=
=09=09=09=09=20=20=20"%s:=20error:=20the=20graphing=20device=20could=20=
not=20be=20opened\n",=20progname);=0A=20=09=09=09=20=20return=20=
EXIT_FAILURE;=0A=20=09=09=09}=0A=20=09=09=20=20=20=20}=0A-=09=09=20=20=0A=
+=0A=20=09=09=20=20/*=20begin=20graph:=20push=20new=20libplot=20drawing=20=
state=20onto=20stack=0A=20=09=09=20=20=20=20=20of=20states;=20also=20=
concatenate=20the=20current=20transformation=0A=20=09=09=20=20=20=20=20=
matrix=20with=20a=20matrix=20formed=20from=20the=20repositioning=0A@@=20=
-1072,11=20+1072,11=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=
=09=20=20begin_graph=20(multigrapher,=0A=20=09=09=09=20=20=20=20=20=20=20=
old_reposition_scale,=0A=20=09=09=09=20=20=20=20=20=20=20=
old_reposition_trans_x,=20old_reposition_trans_y);=0A-=09=09=20=20=0A+=0A=
=20=09=09=20=20/*=20font=20selection,=20saves=20typing=20*/=0A=20=09=09=20=
=20if=20((title_font_name=20=3D=3D=20NULL)=20&&=20(font_name=20!=3D=20=
NULL))=0A=20=09=09=20=20=20=20title_font_name=20=3D=20font_name;=0A-=09=20=
=20=20=20=20=20=0A+=0A=20=09=09=20=20/*=20initialize,=20using=20(in=20=
part)=20finalized=20arguments=20*/=0A=20=09=09=20=20set_graph_parameters=20=
(multigrapher,=0A=20=09=09=09=09=09frame_line_width,=0A@@=20-1091,37=20=
+1091,37=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=09=09=09=
plot_width,=20plot_height,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20margin_below,=20margin_left,=0A=20=09=09=09=09=09font_name,=20=
font_size,=20/*=20for=20abs.=20label=20*/=0A-=09=09=09=09=09x_label,=20=0A=
+=09=09=09=09=09x_label,=0A=20=09=09=09=09=09font_name,=20font_size,=20=
/*=20for=20ord.=20label=20*/=0A=20=09=09=09=09=09y_label,=0A=20=09=09=09=09=
=09no_rotate_y_label,=0A=20=09=09=09=09=09/*=20these=20args=20are=20=
portmanteaux=20*/=0A-=09=09=09=09=09final_log_axis,=20=0A+=09=09=09=09=09=
final_log_axis,=0A=20=09=09=09=09=09final_round_to_next_tick,=0A-=09=09=09=
=09=09switch_axis_end,=20omit_ticks,=20=0A+=09=09=09=09=09=
switch_axis_end,=20omit_ticks,=0A=20=09=09=09=09=09/*=20more=20args=20*/=0A=
=20=09=09=09=09=09clip_mode,=0A=20=09=09=09=09=09blankout_fraction,=0A=20=
=09=09=09=09=09final_transpose_axes);=0A-=09=20=20=20=20=20=20=0A+=0A=20=09=
=09=20=20/*=20draw=20the=20graph=20frame=20(grid,=20ticks,=20etc.);=20=
draw=20a=0A=20=09=09=20=20=20=20=20`canvas'=20(a=20background=20opaque=20=
white=20rectangle)=20only=20if=0A=20=09=09=20=20=20=20=20this=20isn't=20=
the=20first=20graph=20*/=0A=20=09=09=20=20draw_frame_of_graph=20=
(multigrapher,=0A=20=09=09=09=09=20=20=20=20=20=20=20=
(first_graph_of_multigraph=20?=20false=20:=20true));=0A-=09=20=20=20=20=20=
=20=0A+=0A=20=09=09=20=20/*=20plot=20the=20laboriously=20read-in=20array=20=
*/=0A=20=09=09=20=20plot_point_array=20(multigrapher,=20p,=20=
no_of_points);=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
if=20(no_of_legends>0)=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20plot_legend=20(multigrapher,=20legends,=20no_of_legends,=20=
place_legend,=20legend_font_size);=20//Y=0A-=09=20=20=20=20=20=20=0A+=0A=20=
=09=09=20=20/*=20free=20points=20array=20*/=0A=20=09=09=20=20free=20(p);=0A=
=20=09=09=20=20no_of_points=20=3D=200;=0A=20=09=09=20=20=
first_file_of_graph=20=3D=20false;=0A-=09=20=20=20=20=20=20=0A+=0A=20=09=09=
}=20/*=20end=20of=20not-filter=20case=20*/=0A-=09=20=20=0A+=0A=20=09=20=20=
=20=20=20=20/*=20draw=20graph=20frame=20on=20top=20of=20graph,=20if=20=
user=20requested=20it=20*/=0A=20=09=20=20=20=20=20=20if=20(frame_on_top)=0A=
=20=09=09{=0A@@=20-1138,7=20+1138,7=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20=20=20=20=20first_file_of_graph=20=3D=20true;=0A=20=
=0A=20=09=20=20=20=20}=20/*=20end=20of=20not=20first-file-of-plot=20case=20=
*/=0A-=09=20=20=0A+=0A=20=09=20=20break;=09=09/*=20end=20of=20=
`--reposition'=20option=20*/=0A=20=0A=20=09=20=20/*=20----------------=20=
pseudo-options=20--------------=20*/=0A@@=20-1168,8=20+1168,8=20@@=20=
main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=09min_x=20=3D=20=
log10(min_x);=0A=20=09=09=20=20=20=20=20=20else=0A=20=09=09=09{=0A-=09=09=
=09=20=20fprintf(stderr,=20=0A-=09=09=09=09=20=20"%s:=20error:=20the=20=
limit=20%g=20on=20a=20logarithmic=20axis=20is=20nonpositive\n",=20=0A+=09=
=09=09=20=20fprintf(stderr,=0A+=09=09=09=09=20=20"%s:=20error:=20the=20=
limit=20%g=20on=20a=20logarithmic=20axis=20is=20nonpositive\n",=0A=20=09=09=
=09=09=20=20progname,=20min_x);=0A=20=09=09=09=20=20return=20=
EXIT_FAILURE;=0A=20=09=09=09}=0A@@=20-1180,8=20+1180,8=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=09=09max_x=20=3D=20log10(max_x);=0A=
=20=09=09=20=20=20=20=20=20else=0A=20=09=09=09{=0A-=09=09=09=20=20=
fprintf(stderr,=20=0A-=09=09=09=09=20=20"%s:=20error:=20the=20limit=20%g=20=
on=20a=20logarithmic=20axis=20is=20nonpositive\n",=20=0A+=09=09=09=20=20=
fprintf(stderr,=0A+=09=09=09=09=20=20"%s:=20error:=20the=20limit=20%g=20=
on=20a=20logarithmic=20axis=20is=20nonpositive\n",=0A=20=09=09=09=09=20=20=
progname,=20max_x);=0A=20=09=09=09=20=20return=20EXIT_FAILURE;=0A=20=09=09=
=09}=0A@@=20-1196,8=20+1196,8=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=09=09min_y=20=3D=20log10(min_y);=0A=20=09=09=20=20=20=20=
=20=20else=0A=20=09=09=09{=0A-=09=09=09=20=20fprintf(stderr,=20=0A-=09=09=
=09=09=20=20"%s:=20error:=20the=20limit=20%g=20on=20a=20logarithmic=20=
axis=20is=20nonpositive\n",=20=0A+=09=09=09=20=20fprintf(stderr,=0A+=09=09=
=09=09=20=20"%s:=20error:=20the=20limit=20%g=20on=20a=20logarithmic=20=
axis=20is=20nonpositive\n",=0A=20=09=09=09=09=20=20progname,=20min_y);=0A=
=20=09=09=09=20=20return=20EXIT_FAILURE;=0A=20=09=09=09}=0A@@=20-1208,8=20=
+1208,8=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=09max_y=20=
=3D=20log10(max_y);=0A=20=09=09=20=20=20=20=20=20else=0A=20=09=09=09{=0A=
-=09=09=09=20=20fprintf(stderr,=20=0A-=09=09=09=09=20=20"%s:=20error:=20=
the=20limit=20%g=20on=20a=20logarithmic=20axis=20is=20nonpositive\n",=20=0A=
+=09=09=09=20=20fprintf(stderr,=0A+=09=09=09=09=20=20"%s:=20error:=20the=20=
limit=20%g=20on=20a=20logarithmic=20axis=20is=20nonpositive\n",=0A=20=09=09=
=09=09=20=20progname,=20max_y);=0A=20=09=09=09=20=20return=20=
EXIT_FAILURE;=0A=20=09=09=09}=0A@@=20-1253,7=20+1253,7=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=09final_round_to_next_tick=20|=3D=20=
X_AXIS;=0A=20=09=20=20=20=20=20=20if=20(!final_spec_min_y=20&&=20=
!final_spec_max_y)=0A=20=09=09final_round_to_next_tick=20|=3D=20Y_AXIS;=0A=
-=09=20=20=20=20=20=20=0A+=0A=20=09=20=20=20=20=20=20/*=20The=20case=20=
when=20x_min,=20x_max,=20y_min,=20y_max=20are=20all=20specified=0A=20=09=09=
=20by=20the=20luser=20is=20special:=20we=20set=20the=20`filter'=20flag=20=
for=20the=0A=20=09=09=20duration=20of=20this=20plot,=20to=20indicate=20=
that=20we=20can=20function=20as=0A@@=20-1261,8=20+1261,8=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=09=20file,=20rather=20than=20=
calling=20read_file()=20on=20each=20one=0A=20=09=09=20separately=20to=20=
create=20an=20array=20of=20points,=20and=20then=20calling=0A=20=09=09=20=
plot_point_array().=20*/=0A-=09=20=20=20=20=20=20filter=20=3D=20=
((final_spec_min_x=20&&=20final_spec_max_x=20=0A-=09=09=09=20&&=20=
final_spec_min_y=20&&=20final_spec_max_y)=20=0A+=09=20=20=20=20=20=20=
filter=20=3D=20((final_spec_min_x=20&&=20final_spec_max_x=0A+=09=09=09=20=
&&=20final_spec_min_y=20&&=20final_spec_max_y)=0A=20=09=09=09?=20true=20=
:=20false);=0A=20=0A=20=09=20=20=20=20}=20/*=20end=20of=20=
first-file-of-plot=20case=20*/=0A@@=20-1277,13=20+1277,13=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=09=20=20=20=20{=0A=20=09=09=20=20=
=20=20=20=20if=20((multigrapher=20=3D=20new_multigrapher=20=
(output_format,=20bg_color,=20bitmap_size,=20emulate_color,=20=
max_line_length,=20meta_portable,=20page_size,=20rotation_angle,=20=
save_screen))=20=3D=3D=20NULL)=0A=20=09=09=09{=0A-=09=09=09=20=20fprintf=20=
(stderr,=20=0A-=09=09=09=09=20=20=20"%s:=20error:=20the=20graphing=20=
device=20could=20not=20be=20opened\n",=20=0A+=09=09=09=20=20fprintf=20=
(stderr,=0A+=09=09=09=09=20=20=20"%s:=20error:=20the=20graphing=20device=20=
could=20not=20be=20opened\n",=0A=20=09=09=09=09=20=20=20progname);=0A=20=09=
=09=09=20=20return=20EXIT_FAILURE;=0A=20=09=09=09}=0A=20=09=09=20=20=20=20=
}=0A-=09=09=20=20=0A+=0A=20=09=09=20=20/*=20begin=20graph:=20push=20a=20=
graph-specific=20drawing=20state=20onto=0A=20=09=09=20=20=20=20=20=
libplot's=20stack=20of=20drawing=20states;=20also=20concatenate=0A=20=09=09=
=20=20=20=20=20the=20current=20transformation=20matrix=20with=20a=20=
matrix=20formed=0A@@=20-1292,14=20+1292,14=20@@=20main=20(int=20argc,=20=
char=20*argv[])=0A=20=09=09=20=20begin_graph=20(multigrapher,=0A=20=09=09=
=09=20=20=20=20=20=20=20reposition_scale,=0A=20=09=09=09=20=20=20=20=20=20=
=20reposition_trans_x,=20reposition_trans_y);=0A-=09=20=20=20=20=20=20=0A=
+=0A=20=09=09=20=20/*=20font=20selection,=20saves=20typing=20*/=0A=20=09=09=
=20=20if=20((title_font_name=20=3D=3D=20NULL)=20&&=20(font_name=20!=3D=20=
NULL))=0A=20=09=09=20=20=20=20title_font_name=20=3D=20font_name;=0A-=09=20=
=20=20=20=20=20=0A+=0A=20=09=09=20=20/*=20following=20will=20be=20in=20=
effect=20for=20the=20entire=20plot=20*/=0A=20=09=09=20=20=
set_graph_parameters=20(multigrapher,=0A-=09=09=09=09=09=
frame_line_width,=20=0A+=09=09=09=09=09frame_line_width,=0A=20=09=09=09=09=
=09frame_color,=0A=20=09=09=09=09=09top_label,=0A=20=09=09=09=09=09=
title_font_name,=20title_font_size,=20/*=20for=20title=20*/=0A@@=20=
-1308,18=20+1308,18=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=
=09=09=09=09final_min_y,=20final_max_y,=20final_spacing_y,=0A=20=09=09=09=
=09=09final_spec_spacing_x,=0A=20=09=09=09=09=09final_spec_spacing_y,=0A=
-=09=09=09=09=09plot_width,=20plot_height,=20=0A+=09=09=09=09=09=
plot_width,=20plot_height,=0A=20=09=09=09=09=09margin_below,=20=
margin_left,=0A=20=09=09=09=09=09font_name,=20font_size,=20/*=20on=20=
abscissa=20*/=0A-=09=09=09=09=09x_label,=20=0A+=09=09=09=09=09x_label,=0A=
=20=09=09=09=09=09font_name,=20font_size,=20/*=20on=20ordinate=20*/=0A=20=
=09=09=09=09=09y_label,=0A=20=09=09=09=09=09no_rotate_y_label,=0A=20=09=09=
=09=09=09/*=20these=20args=20are=20portmanteaux=20*/=0A-=09=09=09=09=09=
final_log_axis,=20=0A+=09=09=09=09=09final_log_axis,=0A=20=09=09=09=09=09=
final_round_to_next_tick,=0A=20=09=09=09=09=09switch_axis_end,=0A-=09=09=09=
=09=09omit_ticks,=20=0A+=09=09=09=09=09omit_ticks,=0A=20=09=09=09=09=09=
/*=20more=20args=20*/=0A=20=09=09=09=09=09clip_mode,=0A=20=09=09=09=09=09=
blankout_fraction,=0A@@=20-1330,18=20+1330,18=20@@=20main=20(int=20argc,=20=
char=20*argv[])=0A=20=09=09=20=20=20=20=20this=20isn't=20the=20first=20=
graph=20*/=0A=20=09=09=20=20draw_frame_of_graph=20(multigrapher,=0A=20=09=
=09=09=09=20=20=20=20=20=20=20first_graph_of_multigraph=20?=20false=20:=20=
true);=0A-=09=09=20=20=0A+=0A=20=09=09=20=20reader=20=3D=20new_reader=20=
(data_file,=20input_type,=0A=20=09=09=09=09=20=20=20=20=20=20=20=
auto_abscissa,=20delta_x,=20x_start,=0A=20=09=09=09=09=20=20=20=20=20=20=20=
/*=20following=20three=20are=20graph-specific=20*/=0A-=09=09=09=09=20=20=20=
=20=20=20=20final_transpose_axes,=20=0A+=09=09=09=09=20=20=20=20=20=20=20=
final_transpose_axes,=0A=20=09=09=09=09=20=20=20=20=20=20=20=
final_log_axis,=20auto_bump,=0A=20=09=09=09=09=20=20=20=20=20=20=20/*=20=
following=20args=20are=20file-specific=0A=20=09=09=09=09=09=20=20(they=20=
set=20dataset=20attributes)=20*/=0A=20=09=09=09=09=20=20=20=20=20=20=20=
symbol_index,=20symbol_size,=0A=20=09=09=09=09=20=20=20=20=20=20=20=
symbol_font_name,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
line_color,=0A-=09=09=09=09=20=20=20=20=20=20=20linemode_index,=20=
plot_line_width,=20=0A+=09=09=09=09=20=20=20=20=20=20=20linemode_index,=20=
plot_line_width,=0A=20=09=09=09=09=20=20=20=20=20=20=20fill_fraction,=20=
use_color);=0A=20=09=09=20=20new_symbol=20=3D=20new_symbol_size=20=3D=20=
new_symbol_font_name=20=3D=20false;=0A=20=09=09=20=20new_line_color=20=3D=20=
new_linemode=20=3D=20new_plot_line_width=20=3D=20false;=0A@@=20-1355,37=20=
+1355,36=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=20=20=
alter_reader_parameters=20(reader,=0A=20=09=09=09=09=09=20=20=20=
data_file,=20input_type,=0A=20=09=09=09=09=09=20=20=20auto_abscissa,=20=
delta_x,=20x_start,=0A-=09=09=09=09=09=20=20=20/*=20following=20args=20=
set=20dataset=20=0A+=09=09=09=09=09=20=20=20/*=20following=20args=20set=20=
dataset=0A=20=09=09=09=09=09=20=20=20=20=20=20attributes=20*/=0A-=09=09=09=
=09=09=20=20=20symbol_index,=20symbol_size,=20=0A+=09=09=09=09=09=20=20=20=
symbol_index,=20symbol_size,=0A=20=09=09=09=09=09=20=20=20=
symbol_font_name,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20line_color,=0A-=09=09=09=09=09=20=20=20linemode_index,=20=
plot_line_width,=20=0A+=09=09=09=09=09=20=20=20linemode_index,=20=
plot_line_width,=0A=20=09=09=09=09=09=20=20=20fill_fraction,=20=
use_color,=0A=20=09=09=09=09=09=20=20=20/*=20following=20bools=20make=20=
up=20a=20mask*/=0A=20=09=09=09=09=09=20=20=20new_symbol,=20=
new_symbol_size,=0A=20=09=09=09=09=09=20=20=20new_symbol_font_name,=0A=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20new_line_color,=0A=
-=09=09=09=09=09=20=20=20new_linemode,=20new_plot_line_width,=20=0A+=09=09=
=09=09=09=20=20=20new_linemode,=20new_plot_line_width,=0A=20=09=09=09=09=09=
=20=20=20new_fill_fraction,=20new_use_color);=0A=20=0A=20=09=09=20=20=
new_symbol=20=3D=20new_symbol_size=20=3D=20new_symbol_font_name=20=3D=20=
false;=0A=20=09=09=20=20new_line_color=20=3D=20new_linemode=20=3D=20=
new_plot_line_width=20=3D=20false;=0A=20=09=09=20=20new_fill_fraction=20=
=3D=20new_use_color=20=3D=20false;=0A=20=09=09}=0A-=20=20=20=20=0A+=0A=20=
=09=20=20=20=20=20=20/*=20call=20read_and_plot_file()=20on=20the=20file;=20=
each=20dataset=20in=20the=0A=20=09=09=20file=20yields=20a=20polyline=20=
*/=0A=20=09=20=20=20=20=20=20read_and_plot_file=20(reader,=20=
multigrapher);=0A-//=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20=
(no_of_points>old_no_of_points)=20//R=20//=20don't=20know=20how=20to=20=
get=20the=20point=20here...//R=0A+//=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20if=20(new_legend_label=20&&=20no_of_points>old_no_of_points)=20//Y=0A=
=20//=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20{=0A-//=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20add_legend(legend_points,=20=
legend_labels,=20no_of_legends,=0A-//=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20p[no_of_points-1],=20=
legend_labels[no_of_legends-1]);=0A+//=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20add_legend(&legends,=20&no_of_legends,=20=
&p[no_of_points-1],=20legend_label);=0A=20//=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20}=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
new_legend_label=20=3D=20false;=0A=20=0A=20=09=20=20=20=20}=20/*=20end=20=
of=20filter=20case=20*/=0A-=09=20=20=0A+=0A=20=09=20=20else=0A=20=09=20=20=
=20=20/*=20filter=20flag=20is=20set,=20will=20read=20and=20plot=20this=20=
file=20separately=20*/=0A=20=0A@@=20-1398,18=20+1397,18=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=20=20=20=20=20=20if=20=
(first_file_of_graph)=09/*=20some=20additional=20initializations=20*/=0A=20=
=09=09{=0A=20=09=09=20=20p=20=3D=20(Point=20*)xmalloc=20(points_length=20=
*=20sizeof=20(Point));=0A-=09=09=20=20=0A-=09=09=20=20reader=20=3D=20=
new_reader=20(data_file,=20input_type,=20=0A+=0A+=09=09=20=20reader=20=3D=20=
new_reader=20(data_file,=20input_type,=0A=20=09=09=09=09=20=20=20=20=20=20=
=20auto_abscissa,=20delta_x,=20x_start,=0A=20=09=09=09=09=20=20=20=20=20=20=
=20/*=20following=20are=20graph-specific=20*/=0A-=09=09=09=09=20=20=20=20=
=20=20=20final_transpose_axes,=20=0A+=09=09=09=09=20=20=20=20=20=20=20=
final_transpose_axes,=0A=20=09=09=09=09=20=20=20=20=20=20=20=
final_log_axis,=20auto_bump,=0A=20=09=09=09=09=20=20=20=20=20=20=20/*=20=
following=20args=20are=20file-specific=0A=20=09=09=09=09=09=20=20(they=20=
set=20dataset=20attributes)=20*/=0A=20=09=09=09=09=20=20=20=20=20=20=20=
symbol_index,=20symbol_size,=0A=20=09=09=09=09=20=20=20=20=20=20=20=
symbol_font_name,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
line_color,=0A-=09=09=09=09=20=20=20=20=20=20=20linemode_index,=20=
plot_line_width,=20=0A+=09=09=09=09=20=20=20=20=20=20=20linemode_index,=20=
plot_line_width,=0A=20=09=09=09=09=20=20=20=20=20=20=20fill_fraction,=20=
use_color);=0A=20=09=09=20=20new_symbol=20=3D=20new_symbol_size=20=3D=20=
new_symbol_font_name=20=3D=20false;=0A=20=09=09=20=20new_line_color=20=3D=20=
new_linemode=20=3D=20new_plot_line_width=20=3D=20false;=0A@@=20-1420,27=20=
+1419,27=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=20=20=
/*=20set=20reader=20parameters=20that=20may=20change=20when=20we=20move=0A=
=20=09=09=20=20=20=20=20from=20file=20to=20file=20within=20a=20plot=20*/=0A=
=20=09=09=20=20alter_reader_parameters=20(reader,=0A-=09=09=09=09=09=20=20=
=20data_file,=20input_type,=20=0A+=09=09=09=09=09=20=20=20data_file,=20=
input_type,=0A=20=09=09=09=09=09=20=20=20auto_abscissa,=20delta_x,=20=
x_start,=0A=20=09=09=09=09=09=20=20=20/*=20following=20args=20set=20=
dataset=0A=20=09=09=09=09=09=20=20=20=20=20=20attributes=20*/=0A-=09=09=09=
=09=09=20=20=20symbol_index,=20symbol_size,=20=0A+=09=09=09=09=09=20=20=20=
symbol_index,=20symbol_size,=0A=20=09=09=09=09=09=20=20=20=
symbol_font_name,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20line_color,=0A-=09=09=09=09=09=20=20=20linemode_index,=20=
plot_line_width,=20=0A+=09=09=09=09=09=20=20=20linemode_index,=20=
plot_line_width,=0A=20=09=09=09=09=09=20=20=20fill_fraction,=20=
use_color,=0A=20=09=09=09=09=09=20=20=20/*=20following=20bools=20make=20=
up=20a=20mask*/=0A=20=09=09=09=09=09=20=20=20new_symbol,=20=
new_symbol_size,=0A=20=09=09=09=09=09=20=20=20new_symbol_font_name,=0A=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20new_line_color,=0A=
-=09=09=09=09=09=20=20=20new_linemode,=20new_plot_line_width,=20=0A+=09=09=
=09=09=09=20=20=20new_linemode,=20new_plot_line_width,=0A=20=09=09=09=09=09=
=20=20=20new_fill_fraction,=20new_use_color);=0A=20=0A=20=09=09=20=20=
new_symbol=20=3D=20new_symbol_size=20=3D=20new_symbol_font_name=20=3D=20=
false;=0A=20=09=09=20=20new_line_color=20=3D=20new_linemode=20=3D=20=
new_plot_line_width=20=3D=20false;=0A=20=09=09=20=20new_fill_fraction=20=
=3D=20new_use_color=20=3D=20false;=0A=20=09=09}=0A-=09=20=20=20=20=20=20=0A=
+=0A=20=09=20=20=20=20=20=20/*=20add=20points=20to=20points=20array=20by=20=
calling=20read_file()=20on=20file=20*/=0A=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20int=20old_no_of_points=20=3D=20no_of_points;=0A=20=09=20=20=20=
=20=20=20read_file=20(reader,=20&p,=20&points_length,=20&no_of_points);=0A=
@@=20-1458,7=20+1457,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=
=0A=20=09=20=20first_file_of_graph=20=3D=20false;=0A=20=09=20=20break;=09=
/*=20end=20of=20`case=201'=20in=20switch()=20[i.e.,=20filename=20seen]=20=
*/=0A-=09=20=20=0A+=0A=20=09=20=20/*----------------=20End=20of=20=
options=20----------------*/=0A=20=0A=20=09default:=09=09/*=20Default,=20=
unknown=20option=20*/=0A@@=20-1470,7=20+1469,7=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=20=20=20=20=20=20if=20(errcnt=20>=200)=0A=20=
=09continue_parse=20=3D=20false;=0A=20=20=20=20=20}=09=09=09=09/*=20end=20=
of=20while=20loop=20*/=0A-=20=20=0A+=0A=20=20=20if=20(errcnt=20>=200)=0A=20=
=20=20=20=20{=0A=20=20=20=20=20=20=20fprintf=20(stderr,=20"Try=20`%s=20=
--help'=20for=20more=20information\n",=20progname);=0A@@=20-1527,32=20=
+1526,32=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=09=09=
final_transpose_axes,=20clip_mode,=0A=20=09=09=09&final_min_x,=20=
&final_min_y,=0A=20=09=09=09&final_max_x,=20&final_max_y,=0A-=09=09=09=
final_spec_min_x,=20final_spec_min_y,=20=0A+=09=09=09final_spec_min_x,=20=
final_spec_min_y,=0A=20=09=09=09final_spec_max_x,=20final_spec_max_y);=0A=
-=09=20=20=0A+=0A=20=09=20=20if=20(first_graph_of_multigraph)=0A=20=09=20=
=20=20=20/*=20still=20haven't=20created=20multigrapher,=20do=20so=20now=20=
*/=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20if=20((multigrapher=20=
=3D=20new_multigrapher=20(output_format,=20bg_color,=20bitmap_size,=20=
emulate_color,=20max_line_length,=20meta_portable,=20page_size,=20=
rotation_angle,=20save_screen))=20=3D=3D=20NULL)=0A=20=09=09{=0A-=09=09=20=
=20fprintf=20(stderr,=20=0A+=09=09=20=20fprintf=20(stderr,=0A=20=09=09=09=
=20=20=20"%s:=20error:=20the=20graphing=20device=20could=20not=20be=20=
opened\n",=20progname);=0A=20=09=09=20=20return=20EXIT_FAILURE;=0A=20=09=09=
}=0A=20=09=20=20=20=20}=0A-=09=20=20=0A+=0A=20=09=20=20/*=20begin=20=
graph:=20push=20new=20libplot=20drawing=20state=20onto=20stack=20of=0A=20=
=09=20=20=20=20=20states;=20also=20concatenate=20the=20current=20=
transformation=20matrix=0A=20=09=20=20=20=20=20with=20a=20matrix=20=
formed=20from=20the=20repositioning=20parameters=20(this=0A=20=09=20=20=20=
=20=20will=20take=20effect=20for=20the=20duration=20of=20the=20graph)=20=
*/=0A=20=09=20=20begin_graph=20(multigrapher,=0A-=09=09=20=20=20=20=20=20=
=20reposition_scale,=20=0A+=09=09=20=20=20=20=20=20=20reposition_scale,=0A=
=20=09=09=20=20=20=20=20=20=20reposition_trans_x,=20reposition_trans_y);=0A=
-=09=20=20=0A+=0A=20=09=20=20/*=20font=20selection,=20saves=20typing=20=
*/=0A=20=09=20=20if=20((title_font_name=20=3D=3D=20NULL)=20&&=20=
(font_name=20!=3D=20NULL))=0A=20=09=20=20=20=20title_font_name=20=3D=20=
font_name;=0A-=09=20=20=20=20=20=20=0A+=0A=20=09=20=20=
set_graph_parameters=20(multigrapher,=0A=20=09=09=09=09frame_line_width,=0A=
=20=09=09=09=09frame_color,=0A@@=20-1563,33=20+1562,33=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=09=09=09=09final_min_y,=20=
final_max_y,=20final_spacing_y,=0A=20=09=09=09=09final_spec_spacing_x,=0A=
=20=09=09=09=09final_spec_spacing_y,=0A-=09=09=09=09plot_width,=20=
plot_height,=20=0A+=09=09=09=09plot_width,=20plot_height,=0A=20=09=09=09=09=
margin_below,=20margin_left,=0A=20=09=09=09=09font_name,=20font_size,=20=
/*=20for=20abscissa=20label=20*/=0A-=09=09=09=09x_label,=20=0A+=09=09=09=09=
x_label,=0A=20=09=09=09=09font_name,=20font_size,=20/*=20for=20ordinate=20=
label=20*/=0A=20=09=09=09=09y_label,=0A=20=09=09=09=09no_rotate_y_label,=0A=
=20=09=09=09=09/*=20these=20args=20are=20portmanteaux=20*/=0A=20=09=09=09=
=09final_log_axis,=0A=20=09=09=09=09final_round_to_next_tick,=0A-=09=09=09=
=09switch_axis_end,=20omit_ticks,=20=0A+=09=09=09=09switch_axis_end,=20=
omit_ticks,=0A=20=09=09=09=09/*=20more=20args=20*/=0A=20=09=09=09=09=
clip_mode,=0A=20=09=09=09=09blankout_fraction,=0A=20=09=09=09=09=
final_transpose_axes);=0A-=09=20=20=0A+=0A=20=09=20=20/*=20draw=20the=20=
graph=20frame=20(grid,=20ticks,=20etc.);=20draw=20a=20`canvas'=20(a=0A=20=
=09=20=20=20=20=20background=20opaque=20white=20rectangle)=20only=20if=20=
this=20isn't=20the=0A=20=09=20=20=20=20=20first=20graph=20*/=0A=20=09=20=20=
draw_frame_of_graph=20(multigrapher,=0A=20=09=09=09=20=20=20=20=20=20=20=
first_graph_of_multigraph=20?=20false=20:=20true);=0A-=09=20=20=0A+=0A=20=
=09=20=20/*=20plot=20the=20laboriously=20read-in=20array=20*/=0A=20=09=20=
=20plot_point_array=20(multigrapher,=20p,=20no_of_points);=0A=20=20=20=20=
=20=20=20=20=20=20=20if=20(no_of_legends>0)=0A=20=20=20=20=20=20=20=20=20=
=20=20=20=20plot_legend=20(multigrapher,=20legends,=20no_of_legends,=20=
place_legend,=20legend_font_size);=20//Y=0A-=09=20=20=0A+=0A=20=09=20=20=
/*=20free=20points=20array=20*/=0A=20=09=20=20free=20(p);=0A=20=09=20=20=
no_of_points=20=3D=200;=0A@@=20-1607,16=20+1606,16=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=20=20=20=20=20=20end_graph=20=
(multigrapher);=0A=20=0A=20=20=20=20=20}=20/*=20end=20of=20=
nonempty-graph=20case=20*/=0A-=20=20=0A+=0A=20=20=20/*=20finish=20up=20=
by=20deleting=20our=20multigrapher=20(one=20must=20have=20been=20=
created,=0A=20=20=20=20=20=20since=20we=20always=20read=20at=20least=20=
stdin)=20*/=0A=20=20=20if=20(delete_multigrapher=20(multigrapher)=20<=20=
0)=0A=20=20=20=20=20{=0A-=20=20=20=20=20=20fprintf=20(stderr,=20"%s:=20=
error:=20the=20graphing=20device=20could=20not=20be=20closed\n",=20=0A+=20=
=20=20=20=20=20fprintf=20(stderr,=20"%s:=20error:=20the=20graphing=20=
device=20could=20not=20be=20closed\n",=0A=20=09=20=20=20=20=20=20=20=
progname);=0A=20=20=20=20=20=20=20return=20EXIT_FAILURE;=0A=20=20=20=20=20=
}=0A-=20=20=0A+=0A=20=20=20return=20EXIT_SUCCESS;=0A=20}=0A=20=0A@@=20=
-1625,7=20+1624,7=20@@=20static=20void=0A=20open_file_for_reading=20=
(char=20*filename,=20FILE=20**input)=0A=20{=0A=20=20=20FILE=20=
*data_file;=0A-=09=09=0A+=0A=20=20=20data_file=20=3D=20fopen=20=
(filename,=20"r");=0A=20=20=20if=20(data_file=20=3D=3D=20NULL)=0A=20=20=20=
=20=20{=0A@@=20-1634,14=20+1633,14=20@@=20open_file_for_reading=20(char=20=
*filename,=20FILE=20**input)=0A=20=20=20=20=20}=0A=20=20=20else=0A=20=20=20=
=20=20*input=20=3D=20data_file;=0A-}=20=20=0A+}=0A=20=0A=20static=20void=0A=
=20close_file=20(char=20*filename,=20FILE=20*stream)=0A=20{=0A=20=20=20=
if=20(fclose=20(stream)=20<=200)=0A-=20=20=20=20fprintf=20(stderr,=20=0A=
-=09=20=20=20=20=20"%s:=20the=20input=20file=20`%s'=20could=20not=20be=20=
closed\n",=20=0A+=20=20=20=20fprintf=20(stderr,=0A+=09=20=20=20=20=20=
"%s:=20the=20input=20file=20`%s'=20could=20not=20be=20closed\n",=0A=20=09=
=20=20=20=20=20progname,=20filename);=0A=20}=0A=20=0A@@=20-1700,3=20=
+1699,9=20@@=20parse_pen_string=20(const=20char=20*pen_s)=0A=20=20=20=20=20=
}=0A=20=20=20return=20true;=0A=20}=0A+=0A+/*=0A+=20=20Local=20Variables:=0A=
+=20=20c-file-style:=20"gnu"=0A+=20=20End:=0A+*/=0Adiff=20--git=20=
a/graph/linemode.c=20b/graph/linemode.c=0Aindex=206997aff..6d59ee5=20=
100644=0A---=20a/graph/linemode.c=0A+++=20b/graph/linemode.c=0A@@=20=
-40,3=20+40,9=20@@=20const=20char=20*colorstyle[NO_OF_LINEMODES]=20=3D=0A=
=20{=0A=20=20=20"red",=20"green",=20"blue",=20"magenta",=20"cyan"=0A=20=
};=0A+=0A+/*=0A+=20=20Local=20Variables:=0A+=20=20c-file-style:=20"gnu"=0A=
+=20=20End:=0A+*/=0Adiff=20--git=20a/graph/misc.c=20b/graph/misc.c=0A=
index=200a8c0fc..d7e1663=20100644=0A---=20a/graph/misc.c=0A+++=20=
b/graph/misc.c=0A@@=20-19,7=20+19,7=20@@=0A=20=0A=20/*=20This=20file=20=
contains=20miscellaneous=20subroutines=20for=20GNU=20graph.=20=20=
Currently,=0A=20=20=20=20it=20contains=20only=20array_bounds(),=20which=20=
is=20called=20if=20the=20user=20fails=20to=0A-=20=20=20specify=20at=20=
least=20one=20of=20the=20bounds=20xmin,xmax,ymin,ymax.=20=20=0A+=20=20=20=
specify=20at=20least=20one=20of=20the=20bounds=20xmin,xmax,ymin,ymax.=0A=20=
=0A=20=20=20=20array_bounds()=20returns=20the=20unspecified=20bounds=20=
via=20pointers.=20=20I.e.,=20it=0A=20=20=20=20finishes=20the=20job=20of=20=
specifying=20a=20bounding=20box=20for=20the=20data=20points=20that=0A@@=20=
-43,16=20+43,16=20@@=20static=20int=20compute_relevant_points=20(double=20=
xx,=20double=20yy,=20double=20oldxx,=20double=20o=0A=20static=20int=20=
compute_outcode=20(double=20x,=20double=20y,=20double=20x_min_clip,=20=
double=20x_max_clip,=20double=20y_min_clip,=20double=20y_max_clip,=20=
bool=20spec_min_x,=20bool=20spec_min_y,=20bool=20spec_max_x,=20bool=20=
spec_max_y);=0A=20=0A=20void=0A-array_bounds=20(const=20Point=20*p,=20=
int=20length,=20=0A+array_bounds=20(const=20Point=20*p,=20int=20length,=0A=
=20=09=20=20=20=20=20=20bool=20transpose_axes,=20int=20clip_mode,=0A=20=09=
=20=20=20=20=20=20double=20*min_x,=20double=20*min_y,=20double=20*max_x,=20=
double=20*max_y,=0A-=09=20=20=20=20=20=20bool=20spec_min_x,=20bool=20=
spec_min_y,=20=0A+=09=20=20=20=20=20=20bool=20spec_min_x,=20bool=20=
spec_min_y,=0A=20=09=20=20=20=20=20=20bool=20spec_max_x,=20bool=20=
spec_max_y)=0A=20{=0A=20=20=20/*=20keep=20compilers=20happy=20*/=0A=20=20=
=20double=20user_min_x=20=3D=200.0,=20user_min_y=20=3D=200.0;=0A=20=20=20=
double=20user_max_x=20=3D=200.0,=20user_max_y=20=3D=200.0;=0A-=20=20=
double=20local_min_x=20=3D=200.0,=20local_min_y=20=3D=200.0;=20=0A+=20=20=
double=20local_min_x=20=3D=200.0,=20local_min_y=20=3D=200.0;=0A=20=20=20=
double=20local_max_x=20=3D=200.0,=20local_max_y=20=3D=200.0;=0A=20=20=20=
double=20xx,=20yy,=20oldxx,=20oldyy;=0A=20=20=20bool=20point_seen=20=3D=20=
false;=0A@@=20-80,12=20+80,12=20@@=20array_bounds=20(const=20Point=20*p,=20=
int=20length,=0A=20=20=20=20=20user_max_x=20=3D=20*max_x;=0A=20=20=20=
else=09=09=09=09/*=20won't=20use=20user_max_x=20*/=0A=20=20=20=20=20=
local_max_x=20=3D=20-(DBL_MAX);=0A-=20=20=0A+=0A=20=20=20/*=20special=20=
case:=20user=20specified=20both=20bounds,=20but=20min=20>=20max=20=
(reversed=20axis)=20*/=0A=20=20=20if=20(spec_min_x=20&&=20spec_max_x=20=
&&=20user_min_x=20>=20user_max_x)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=
=20double=20tmp;=0A-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=20tmp=20=
=3D=20user_min_x;=0A=20=20=20=20=20=20=20user_min_x=20=3D=20user_max_x;=0A=
=20=20=20=20=20=20=20user_max_x=20=3D=20tmp;=0A@@=20-96,15=20+96,15=20@@=20=
array_bounds=20(const=20Point=20*p,=20int=20length,=0A=20=20=20else=0A=20=
=20=20=20=20local_min_y=20=3D=20DBL_MAX;=09/*=20won't=20use=20user_min_y=20=
*/=0A=20=20=20if=20(spec_max_y)=0A-=20=20=20=20user_max_y=20=3D=20=
*max_y;=20=20=20=20=20=20=0A+=20=20=20=20user_max_y=20=3D=20*max_y;=0A=20=
=20=20else=09=09=09=09/*=20won't=20use=20user_max_y=20*/=0A=20=20=20=20=20=
local_max_y=20=3D=20-(DBL_MAX);=0A-=20=20=20=20=0A+=0A=20=20=20/*=20=
special=20case:=20user=20specified=20both=20bounds,=20but=20min=20>=20=
max=20(reversed=20axis)=20*/=0A=20=20=20if=20(spec_min_y=20&&=20=
spec_max_y=20&&=20user_min_y=20>=20user_max_y)=0A=20=20=20=20=20{=0A=20=20=
=20=20=20=20=20double=20tmp;=0A-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=
=20tmp=20=3D=20user_min_y;=0A=20=20=20=20=20=20=20user_min_y=20=3D=20=
user_max_y;=0A=20=20=20=20=20=20=20user_max_y=20=3D=20tmp;=0A@@=20-118,7=20=
+118,7=20@@=20array_bounds=20(const=20Point=20*p,=20int=20length,=0A=20=20=
=20=20=20=20=20double=20xxr[2],=20yyr[2];=09/*=20storage=20for=20=
`relevant=20points'=20*/=0A=20=20=20=20=20=20=20int=20n,=20j;=0A=20=20=20=
=20=20=20=20int=20effective_clip_mode;=0A-=20=20=20=20=20=20=0A+=0A=20=20=
=20=20=20=20=20/*=20get=20new=20point=20*/=0A=20=20=20=20=20=20=20xx=20=3D=
=20(transpose_axes=20?=20p[i].y=20:=20p[i].x);=0A=20=20=20=20=20=20=20yy=20=
=3D=20(transpose_axes=20?=20p[i].x=20:=20p[i].y);=0A@@=20-156,7=20+156,7=20=
@@=20array_bounds=20(const=20Point=20*p,=20int=20length,=0A=20=20=20=20=20=
=20=20oldxx=20=3D=20xx;=0A=20=20=20=20=20=20=20oldyy=20=3D=20yy;=0A=20=20=
=20=20=20}=0A-=20=20=0A+=0A=20=20=20if=20(!point_seen)=0A=20=20=20=20=20=
/*=20a=20convention=20*/=0A=20=20=20=20=20local_min_x=20=3D=20=
local_min_y=20=3D=20local_max_x=20=3D=20local_max_y=20=3D=200.0;=0A@@=20=
-185,7=20+185,7=20@@=20array_bounds=20(const=20Point=20*p,=20int=20=
length,=0A=20=0A=20=20=20=20If=20clip=20mode=3D0=20then=20the=20simplest=20=
algorithm=20is=20used:=20(xx,yy)=20is=20a=0A=20=20=20=20relevant=20point=20=
iff=20it=20satisfies=20the=20user-specified=20bound(s),=20and=20there=0A=
-=20=20=20are=20no=20other=20relevant=20points,=20i.e.,=20(oldxx,oldyy)=20=
is=20ignored.=20=20=0A+=20=20=20are=20no=20other=20relevant=20points,=20=
i.e.,=20(oldxx,oldyy)=20is=20ignored.=0A=20=0A=20=20=20=20If=20clip=20=
mode=3D1=20then=20if=20the=20line=20segment=20from=20(oldxx,=20oldyy)=20=
from=20(xx,yy)=0A=20=20=20=20has=20at=20least=20one=20endpoint=20that=20=
satisfies=20the=20user-specified=20bounds,=20it=0A@@=20-202,9=20+202,9=20=
@@=20static=20int=0A=20compute_relevant_points=20(double=20xx,=20double=20=
yy,=0A=20=09=09=09=20double=20oldxx,=20double=20oldyy,=0A=20=09=09=09=20=
int=20clip_mode,=0A-=09=09=09=20double=20user_min_x,=20double=20=
user_min_y,=20=0A+=09=09=09=20double=20user_min_x,=20double=20=
user_min_y,=0A=20=09=09=09=20double=20user_max_x,=20double=20user_max_y,=0A=
-=09=09=09=20bool=20spec_min_x,=20bool=20spec_min_y,=20=0A+=09=09=09=20=
bool=20spec_min_x,=20bool=20spec_min_y,=0A=20=09=09=09=20bool=20=
spec_max_x,=20bool=20spec_max_y,=0A=20=09=09=09=20double=20xxr[2],=20=
double=20yyr[2])=0A=20{=0A@@=20-228,7=20+228,7=20@@=20=
compute_relevant_points=20(double=20xx,=20double=20yy,=0A=20=20=20=20=20=
case=201:=0A=20=20=20=20=20default:=0A=20=20=20=20=20=20=20clipval=20=3D=20=
clip_line=20(&oldxx,=20&oldyy,=20&xx,=20&yy,=20user_min_x,=20user_max_x,=20=
user_min_y,=20user_max_y,=20spec_min_x,=20spec_min_y,=20spec_max_x,=20=
spec_max_y);=0A-=20=20=20=20=20=20if=20((clipval=20&=20ACCEPTED)=20=0A+=20=
=20=20=20=20=20if=20((clipval=20&=20ACCEPTED)=0A=20=09=20=20&&=20=
!((clipval=20&=20CLIPPED_FIRST)=20&&=20(clipval=20&=20CLIPPED_SECOND)))=0A=
=20=09{=0A=20=09=20=20xxr[0]=20=3D=20oldxx;=0A@@=20-264,7=20+264,7=20@@=20=
compute_relevant_points=20(double=20xx,=20double=20yy,=0A=20=20*=20=
CLIPPED_SECOND.=0A=20=20*=0A=20=20*=20This=20is=20a=20modified=20C-S=20=
clipper:=20the=20flags=20spec_{min,max}_{x,y}=20indicate=0A-=20*=20=
whether=20or=20not=20clipping=20is=20to=20be=20performed=20on=20each=20=
edge.=20=0A+=20*=20whether=20or=20not=20clipping=20is=20to=20be=20=
performed=20on=20each=20edge.=0A=20=20*/=0A=20=0A=20static=20int=0A@@=20=
-277,9=20+277,9=20@@=20clip_line=20(double=20*x0_p,=20double=20*y0_p,=20=
double=20*x1_p,=20double=20*y1_p,=20double=20x_min_=0A=20=20=20int=20=
outcode0,=20outcode1;=0A=20=20=20bool=20accepted;=0A=20=20=20int=20=
clipval=20=3D=200;=0A-=20=20=0A+=0A=20=20=20outcode0=20=3D=20=
compute_outcode=20(x0,=20y0,=20x_min_clip,=20x_max_clip,=20y_min_clip,=20=
y_max_clip,=20spec_min_x,=20spec_min_y,=20spec_max_x,=20spec_max_y);=0A-=20=
=20outcode1=20=3D=20compute_outcode=20(x1,=20y1,=20x_min_clip,=20=
x_max_clip,=20y_min_clip,=20y_max_clip,=20spec_min_x,=20spec_min_y,=20=
spec_max_x,=20spec_max_y);=20=20=0A+=20=20outcode1=20=3D=20=
compute_outcode=20(x1,=20y1,=20x_min_clip,=20x_max_clip,=20y_min_clip,=20=
y_max_clip,=20spec_min_x,=20spec_min_y,=20spec_max_x,=20spec_max_y);=0A=20=
=0A=20=20=20for=20(=20;=20;=20)=0A=20=20=20=20=20{=0A@@=20-298,7=20=
+298,7=20@@=20clip_line=20(double=20*x0_p,=20double=20*y0_p,=20double=20=
*x1_p,=20double=20*y1_p,=20double=20x_min_=0A=20=09=20=20/*=20at=20least=20=
one=20endpoint=20is=20outside;=20choose=20one=20that=20is=20*/=0A=20=09=20=
=20int=20outcode_out=20=3D=20(outcode0=20?=20outcode0=20:=20outcode1);=0A=
=20=09=20=20double=20x,=20y;=09=09/*=20intersection=20with=20clip=20edge=20=
*/=0A-=09=20=20=0A+=0A=20=09=20=20if=20(outcode_out=20&=20RIGHT)=0A=20=09=
=20=20=20=20{=0A=20=09=20=20=20=20=20=20x=20=3D=20x_max_clip;=0A@@=20=
-319,7=20+319,7=20@@=20clip_line=20(double=20*x0_p,=20double=20*y0_p,=20=
double=20*x1_p,=20double=20*y1_p,=20double=20x_min_=0A=20=09=20=20=20=20=20=
=20x=20=3D=20x0=20+=20(x1=20-=20x0)=20*=20(y_min_clip=20-=20y0)=20/=20=
(y1=20-=20y0);=0A=20=09=20=20=20=20=20=20y=20=3D=20y_min_clip;=0A=20=09=20=
=20=20=20}=0A-=09=20=20=0A+=0A=20=09=20=20if=20(outcode_out=20=3D=3D=20=
outcode0)=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20x0=20=3D=20x;=0A=
@@=20-328,7=20+328,7=20@@=20clip_line=20(double=20*x0_p,=20double=20=
*y0_p,=20double=20*x1_p,=20double=20*y1_p,=20double=20x_min_=0A=20=09=20=20=
=20=20}=0A=20=09=20=20else=0A=20=09=20=20=20=20{=0A-=09=20=20=20=20=20=20=
x1=20=3D=20x;=20=0A+=09=20=20=20=20=20=20x1=20=3D=20x;=0A=20=09=20=20=20=20=
=20=20y1=20=3D=20y;=0A=20=09=20=20=20=20=20=20outcode1=20=3D=20=
compute_outcode=20(x1,=20y1,=20x_min_clip,=20x_max_clip,=20y_min_clip,=20=
y_max_clip,=20spec_min_x,=20spec_min_y,=20spec_max_x,=20spec_max_y);=0A=20=
=09=20=20=20=20}=0A@@=20-364,6=20+364,12=20@@=20compute_outcode=20=
(double=20x,=20double=20y,=20double=20x_min_clip,=20double=20x_max_clip,=20=
doubl=0A=20=20=20=20=20code=20|=3D=20TOP;=0A=20=20=20else=20if=20=
(spec_min_y=20&&=20y=20<=20y_min_clip)=0A=20=20=20=20=20code=20|=3D=20=
BOTTOM;=0A-=20=20=0A+=0A=20=20=20return=20code;=0A=20}=0A+=0A+/*=0A+=20=20=
Local=20Variables:=0A+=20=20c-file-style:=20"gnu"=0A+=20=20End:=0A+*/=0A=
diff=20--git=20a/graph/plotter.c=20b/graph/plotter.c=0Aindex=20=
f41ffe4..f847ed4=20100644=0A---=20a/graph/plotter.c=0A+++=20=
b/graph/plotter.c=0A@@=20-24,7=20+24,7=20@@=0A=20=20=20=20multigraphing,=20=
i.e.=20producing=20a=20plot=20consisting=20of=20more=20than=20a=20single=0A=
=20=20=20=20graph.=20=20Each=20graph=20may=20be=20drawn=20from=20more=20=
than=20one=20file,=20i.e.,=20input=0A=20=20=20=20stream,=20and=20each=20=
input=20stream=20may=20provide=20more=20than=20a=20single=20polyline.=0A=
-=20=20=20=0A+=0A=20=20=20=20A=20`point'=20is=20a=20structure.=20=20Each=20=
point=20structure=20contains=20the=20following=0A=20=20=20=20fields:=0A=20=
=0A@@=20-53,7=20+53,7=20@@=0A=20=20=20=20single=20characters=20to=20be=20=
plotted,=20rather=20than=20symbols.=0A=20=0A=20=20=20=20Points=20without=20=
the=20pendown=20flag=20set=20cause=20the=20polyline=20to=20be=20broken,=20=
and=0A-=20=20=20a=20new=20one=20to=20begin,=20before=20the=20symbol=20=
(if=20any)=20is=20plotted.=20=20=0A+=20=20=20a=20new=20one=20to=20begin,=20=
before=20the=20symbol=20(if=20any)=20is=20plotted.=0A=20=0A=20=20=20=20=
The=20plotter=20supports=20five=20basic=20linemodes:=201=20through=205.=20=
=20The=0A=20=20=20=20interpretation=20of=20`linemode'=20depends=20on=20=
the=20polyline's=20use_color=20flag.=0A@@=20-90,15=20+90,15=20@@=0A=20=0A=
=20=20=20=20new_multigrapher()=20creates=20a=20new=20point=20plotter.=0A=20=
=20=20=20begin_graph()=0A-=20=20=20set_graph_parameters()=20initializes=20=
global=20structures=20used=20by=20=0A+=20=20=20set_graph_parameters()=20=
initializes=20global=20structures=20used=20by=0A=20=20=20=20=09the=20=
draw_frame_of_graph()=20and=20plot_point()=20routines.=20=20These=20=
include=0A=20=09the=20structures=20that=20specify=20the=20linear=20=
transformation=20from=20user=0A=20=09coordinates=20to=20the=20=
coordinates=20used=20by=20libplot,=20and=20structures=0A-=09that=20=
specify=20the=20style=20of=20the=20plot=20frame.=20=20=0A+=09that=20=
specify=20the=20style=20of=20the=20plot=20frame.=0A=20=20=20=20=
draw_frame_of_graph()=20plots=20the=20graph=20frame.=20=20[Optional.]=0A=
-=20=20=20plot_point()=20uses=20libplot=20routines=20to=20plot=20a=20=
single=20point,=20together=20=0A-=20=20=20=09with=20(possibly)=09a=20=
line=20extending=20to=20it=20from=20the=20last=20point,=20and=20=0A-=09a=20=
symbol.=20[Alternatively,=20plot_point_array()=20can=20be=20used,=20to=20=
plot=20=0A+=20=20=20plot_point()=20uses=20libplot=20routines=20to=20plot=20=
a=20single=20point,=20together=0A+=20=20=20=09with=20(possibly)=09a=20=
line=20extending=20to=20it=20from=20the=20last=20point,=20and=0A+=09a=20=
symbol.=20[Alternatively,=20plot_point_array()=20can=20be=20used,=20to=20=
plot=0A=20=09an=20array=20of=20points.]=0A=20=20=20=20end_graph()=0A=20=20=
=20=20..=0A@@=20-131,7=20+131,7=20@@=20enum=20{=20ACCEPTED=20=3D=200x1,=20=
CLIPPED_FIRST=20=3D=200x2,=20CLIPPED_SECOND=20=3D=200x4=20};=0A=20=
#define=20MAX_NUM_SUBTICKS=2029=09/*=20max=20num.=20of=20linearly=20=
spaced=20subticks=20*/=0A=20#define=20RELATIVE_SUBTICK_SIZE=200.4=20/*=20=
subtick_size=20/=20tick_size=20*/=0A=20/*=20if=20a=20log=20axis=20spans=20=
>5.0=20orders=20of=20magnitude,=20don't=20plot=20log=20subsubticks=20*/=0A=
-#define=20MAX_DECADES_WITH_LOG_SUBSUBTICKS=205.0=20=0A+#define=20=
MAX_DECADES_WITH_LOG_SUBSUBTICKS=205.0=0A=20=0A=20/*=20inter-tick=20=
spacing=20types,=20returned=20by=20scale1()=20and=20spacing_type()=20*/=0A=
=20#define=20S_ONE=200=0A@@=20-235,7=20+235,7=20@@=20=
multigrapher->y_trans.output_range=20*=20=
multigrapher->y_trans.squeezed_range)=20*=20(x)=0A=20=20=20=20which=20=
are=20filled=20in=20by=20draw_frame_of_graph(),=20as=20the=20frame=20for=20=
a=20graph=0A=20=20=20=20is=20being=20drawn.=20*/=0A=20=0A-typedef=20=
struct=20=0A+typedef=20struct=0A=20{=0A=20=20=20const=20char=20=
*font_name;=09/*=20fontname=20for=20axis=20label=20and=20tick=20labels=20=
*/=0A=20=20=20double=20font_size;=09=09/*=20font=20size=20for=20axis=20=
label=20and=20tick=20labels=20*/=0A@@=20-245,7=20+245,7=20@@=20typedef=20=
struct=0A=20=20=20int=20min_tick_count,=20max_tick_count;=20/*=20tick=20=
location=20=3D=20count=20*=20spacing=20*/=0A=20=20=20bool=20=
have_lin_subticks;=09/*=20does=20axis=20have=20linearly=20spaced=20=
subticks?=20*/=0A=20=20=20double=20lin_subtick_spacing;=09/*=20distance=20=
between=20linearly=20spaced=20subticks=20*/=0A-=20=20int=20=
min_lin_subtick_count,=20max_lin_subtick_count;=20=0A+=20=20int=20=
min_lin_subtick_count,=20max_lin_subtick_count;=0A=20=20=20bool=20=
have_normal_subsubticks;=20/*=20does=20axis=20have=20logarithmic=20=
subsubticks?*/=0A=20=20=20bool=20user_specified_subsubticks;=20/*=20axis=20=
has=20user-spec'd=20subsubticks?=20*/=0A=20=20=20double=20=
subsubtick_spacing;=09/*=20spacing=20for=20user-specified=20ones=20*/=0A=
@@=20-263,7=20+263,7=20@@=20typedef=20struct=0A=20=09=09=09=09=20=20=20=
spacing=20by=20hand=20if=20labelled_ticks=20<=3D=202)=20*/=0A=20}=20=
Axis;=0A=20=0A-=20=20=20=09=0A+=0A=20/*=20The=20Multigrapher=20=
structure.=20=20A=20pointer=20to=20one=20of=20these=20is=20passed=20as=20=
the=0A=20=20=20=20first=20argument=20to=20each=20Multigrapher=20method=20=
(e.g.,=20plot_point()).=20*/=0A=20=0A@@=20-296,7=20+296,7=20@@=20struct=20=
MultigrapherStruct=0A=20=20=20int=20symbol;=09=09=09/*=20symbol=20being=20=
plotted=20at=20each=20point=20*/=0A=20=20=20int=20linemode;=09=09=09/*=20=
linemode=20used=20for=20polyline=20*/=0A=20};=0A-=20=20=0A+=0A=20/*=20=
forward=20references=20*/=0A=20static=20int=20clip_line=20(Multigrapher=20=
*multigrapher,=20double=20*x0_p,=20double=20*y0_p,=20double=20*x1_p,=20=
double=20*y1_p);=0A=20static=20int=20spacing_type=20(double=20spacing);=0A=
@@=20-328,11=20+328,11=20@@=20print_tick_label=20(char=20*labelbuf,=20=
const=20Axis=20*axis,=20const=20Transform=20*transform,=0A=20=0A=20=20=20=
/*=20two=20possibilities:=20large/small=20exponent=20magnitudes=20*/=0A=20=
=0A-=20=20min=20=3D=20(axis->type=20=3D=3D=20A_LOG10=20=0A+=20=20min=20=3D=
=20(axis->type=20=3D=3D=20A_LOG10=0A=20=09=20?=20pow=20(10.0,=20=
transform->input_min)=20:=20transform->input_min);=0A-=20=20max=20=3D=20=
(axis->type=20=3D=3D=20A_LOG10=20=0A+=20=20max=20=3D=20(axis->type=20=3D=3D=
=20A_LOG10=0A=20=09=20?=20pow=20(10.0,=20transform->input_max)=20:=20=
transform->input_max);=0A-=09=20=20=0A+=0A=20=20=20big_exponents=20=3D=20=
(((min=20!=3D=200.0=20&&=20fabs=20(log10=20(fabs=20(min)))=20>=3D=204.0)=0A=
=20=09=09=20=20=20=20||=20(max=20!=3D=200.0=20&&=20fabs=20(log10=20(fabs=20=
(max)))=20>=3D=204.0))=0A=20=09=09=20=20=20?=20true=20:=20false);=0A@@=20=
-345,7=20+345,7=20@@=20print_tick_label=20(char=20*labelbuf,=20const=20=
Axis=20*axis,=20const=20Transform=20*transform,=0A=20=20=20=20=20=20=20=
char=20floatbuf[64];=0A=20=20=20=20=20=20=20char=20*fptr=20=3D=20=
floatbuf;=0A=20=20=20=20=20=20=20double=20prefactor;=0A-=20=20=20=20=20=20=
=0A+=0A=20=20=20=20=20=20=20sprintf=20(labelbuf_tmp,=20"%e",=20val);=0A=20=
=20=20=20=20=20=20if=20((eloc=20=3D=20strchr=20(labelbuf_tmp,=20=
(int)'e'))=20=3D=3D=20NULL)=0A=20=09return;=0A@@=20-353,7=20+353,7=20@@=20=
print_tick_label=20(char=20*labelbuf,=20const=20Axis=20*axis,=20const=20=
Transform=20*transform,=0A=20=20=20=20=20=20=20if=20(axis->type=20=3D=3D=20=
A_LOG10=20&&=20!axis->user_specified_subsubticks)=0A=20=09/*=20a=20hack:=20=
this=20must=20be=20a=20power=20of=2010,=20so=20just=20print=20"10^bar"=20=
*/=0A=20=09{=0A-=09=20=20sscanf=20(++eloc,=20"%d",=20&exponent);=09=20=20=
=20=20=20=20=0A+=09=20=20sscanf=20(++eloc,=20"%d",=20&exponent);=0A=20=09=
=20=20sprintf=20(dst,=20"10\\sp%d\\ep",=20exponent);=0A=20=09=20=20=
return;=0A=20=09}=0A@@=20-371,18=20+371,18=20@@=20print_tick_label=20=
(char=20*labelbuf,=20const=20Axis=20*axis,=20const=20Transform=20=
*transform,=0A=20=20=20=20=20=20=20*fptr=20=3D=20'\0';=0A=20=20=20=20=20=20=
=20sscanf=20(floatbuf,=20"%lf",=20&prefactor);=20/*=20get=20foo=20*/=0A=20=
=20=20=20=20=20=20sscanf=20(++src,=20"%d",=20&exponent);=20/*=20get=20=
bar=20*/=0A-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=20spacing=20=3D=20=
(axis->type=20=3D=3D=20A_LINEAR=0A=20=09=09=20?=20axis->tick_spacing=0A=20=
=09=09=20:=20axis->subsubtick_spacing);=20/*=20user-specified,=20for=20=
log=20axis*/=0A-=20=20=20=20=20=20sprintf=20(incrbuf,=20"%f",=20=0A+=20=20=
=20=20=20=20sprintf=20(incrbuf,=20"%f",=0A=20=09=20=20=20=20=20=20=20=
spacing=20/=20pow=20(10.0,=20(double)exponent));=0A=20=20=20=20=20=20=20=
ptr=20=3D=20strchr=20(incrbuf,=20(int)'.');=0A=20=20=20=20=20=20=20prec=20=
=3D=200;=0A=20=20=20=20=20=20=20if=20(ptr=20!=3D=20NULL)=0A=20=09{=0A=20=09=
=20=20int=20count=20=3D=200;=0A-=09=20=20=0A+=0A=20=09=20=20while=20=
(*(++ptr))=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20count++;=0A@@=20=
-390,10=20+390,10=20@@=20print_tick_label=20(char=20*labelbuf,=20const=20=
Axis=20*axis,=20const=20Transform=20*transform,=0A=20=09=09prec=20=3D=20=
count;=0A=20=09=20=20=20=20}=0A=20=09}=0A-=20=20=20=20=20=20=0A+=0A=20=20=
=20=20=20=20=20/*=20\sp=20...=20\ep=20is=20start_superscript=20...=20=
end_superscript,=20and=20\r6=20is=0A=20=09=20right-shift=20by=201/6=20=
em.=20=20\mu=20is=20the=20`times'=20character.=20*/=0A-=20=20=20=20=20=20=
sprintf=20(dst,=20"%.*f\\r6\\mu10\\sp%d\\ep",=20=0A+=20=20=20=20=20=20=
sprintf=20(dst,=20"%.*f\\r6\\mu10\\sp%d\\ep",=0A=20=09=20=20=20=20=20=20=20=
prec,=20prefactor,=20exponent);=0A=20=0A=20=20=20=20=20=20=20return;=0A=
@@=20-408,7=20+408,7=20@@=20print_tick_label=20(char=20*labelbuf,=20=
const=20Axis=20*axis,=20const=20Transform=20*transform,=0A=20=09=20=20=
sprintf=20(labelbuf,=20"%.9g",=20val);=0A=20=09=20=20return;=0A=20=09}=0A=
-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=20/*=20always=20use=20no.=20=
of=20digits=20of=20precision=20present=20in=20increment=20*/=0A=20=20=20=20=
=20=20=20spacing=20=3D=20(axis->type=20=3D=3D=20A_LINEAR=0A=20=09=09=20?=20=
axis->tick_spacing=0A@@=20-419,7=20+419,7=20@@=20print_tick_label=20=
(char=20*labelbuf,=20const=20Axis=20*axis,=20const=20Transform=20=
*transform,=0A=20=20=20=20=20=20=20if=20(ptr=20!=3D=20NULL)=0A=20=09{=0A=20=
=09=20=20int=20count=20=3D=200;=0A-=09=20=20=0A+=0A=20=09=20=20while=20=
(*(++ptr))=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20count++;=0A@@=20=
-438,7=20+438,7=20@@=20print_tick_label=20(char=20*labelbuf,=20const=20=
Axis=20*axis,=20const=20Transform=20*transform,=0A=20=20*=0A=20=20*=20=
Reference:=20Lewart,=20C.=20R.,=20"Algorithms=20SCALE1,=20SCALE2,=20and=0A=
=20=20*=09SCALE3=20for=20Determination=20of=20Scales=20on=20Computer=20=
Generated=0A-=20*=09Plots",=20Communications=20of=20the=20ACM,=2010=20=
(1973),=20639-640.=20=20=0A+=20*=09Plots",=20Communications=20of=20the=20=
ACM,=2010=20(1973),=20639-640.=0A=20=20*=20=20=20=20=20=20Also=20cited=20=
as=20ACM=20Algorithm=20463.=0A=20=20*=0A=20=20*=20We=20call=20this=20=
routine=20even=20when=20the=20axis=20is=20logarithmic=20rather=20than=0A=
@@=20-456,13=20+456,13=20@@=20scale1=20(double=20min,=20double=20max,=20=
double=20*tick_spacing,=20int=20*tick_spacing_type)=0A=20=20=20int=20k;=0A=
=20=20=20double=20nal;=0A=20=20=20double=20a,=20b;=0A-=20=20=0A+=0A=20=20=
=20/*=20valid=20interval=20lengths=20*/=0A=20=20=20static=20const=20=
double=20vint[]=20=3D=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=201.0,=20=
2.0,=205.0,=2010.0=0A=20=20=20=20=20};=0A-=20=20=0A+=0A=20=20=20/*=20=
Corresponding=20breakpoints.=20=20The=20published=20algorithm=20uses=20=
geometric=0A=20=20=20=20=20=20means,=20i.e.=20sqrt(2),=20sqrt(10),=20=
sqrt(50),=20but=20using=20sqrt(10)=3D3.16...=0A=20=20=20=20=20=20will=20=
(if=20nticks=3D5,=20as=20we=20choose=20it=20to=20be)=20cause=20intervals=20=
of=20length=0A@@=20-478,7=20+478,7=20@@=20scale1=20(double=20min,=20=
double=20max,=20double=20*tick_spacing,=20int=20*tick_spacing_type)=0A=20=
=20=20/*=20compute=20trial=20inter-tick=20interval=20length=20*/=0A=20=20=
=20a=20=3D=20(max=20-=20min)=20/=20TRIAL_NUMBER_OF_TICK_INTERVALS;=0A=20=20=
=20a=20*=3D=20(max=20>=20min)=20?=201.0=20:=20-1.0;=20/*=20paranoia,=20=
max>min=20always=20*/=0A-=20=20if=20(a=20<=3D=200.0)=09=09=09=0A+=20=20=
if=20(a=20<=3D=200.0)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20=
fprintf(stderr,=20"%s:=20error:=20the=20trial=20inter-tick=20spacing=20=
'%g'=20is=20bad\n",=0A=20=09=20=20=20=20=20=20progname,=20a);=0A@@=20=
-505,7=20+505,7=20@@=20scale1=20(double=20min,=20double=20max,=20double=20=
*tick_spacing,=20int=20*tick_spacing_type)=0A=20=0A=20/*=20Determine=20=
whether=20an=20inter-tick=20spacing=20(in=20practice,=20one=20specified=20=
by=0A=20=20=20=20the=20user)=20is=201.0,=202.0,=20or=205.0=20times=20a=20=
power=20of=2010.=20*/=0A-static=20int=20=0A+static=20int=0A=20=
spacing_type=20(double=20incr)=0A=20{=0A=20=20=20int=20i;=0A@@=20-547,7=20=
+547,7=20@@=20spacing_type=20(double=20incr)=0A=20=09=20reverse_axis=20=3D=
=20reverse=20min,=20max?=0A=20=09=20switch_axis_end=20=3D=20intersection=20=
w/=20other=20axis=20in=20alt.=20pos.?=0A=20=09=20omit_ticks=20=3D=20=
suppress=20all=20ticks=20and=20tick=20labels?=20*/=0A-static=20void=20=0A=
+static=20void=0A=20prepare_axis=20(Axis=20*axisp,=20Transform=20*trans,=20=
double=20min,=20double=20max,=20double=20spacing,=20const=20char=20=
*font_name,=20double=20font_size,=20const=20char=20*label,=20double=20=
subsubtick_spacing,=20bool=20user_specified_subsubticks,=20bool=20=
round_to_next_tick,=20bool=20log_axis,=20bool=20reverse_axis,=20bool=20=
switch_axis_end,=20bool=20omit_ticks)=0A=20{=0A=20=20=20double=20range;=0A=
@@=20-607,15=20+607,15=20@@=20prepare_axis=20(Axis=20*axisp,=20Transform=20=
*trans,=20double=20min,=20double=20max,=20double=20spac=0A=20=09=20=20=
double=20true_min=20=3D=20pow=20(10.0,=20min),=20true_max=20=3D=20pow=20=
(10.0,=20max);=0A=20=09=20=20double=20true_range=20=3D=20true_max=20-=20=
true_min;=0A=20=09=20=20int=20min_count,=20max_count;=0A-=09=20=20=0A+=0A=
=20=09=20=20min_count=20=3D=20(int)(floor=20((true_min=20+=20FUZZ=20*=20=
true_range)=0A=20=09=09=09=09=20=20=20/=20subsubtick_spacing));=0A-=09=20=
=20max_count=20=3D=20(int)(ceil=20((true_max=20-=20FUZZ=20*=20=
true_range)=20=0A+=09=20=20max_count=20=3D=20(int)(ceil=20((true_max=20-=20=
FUZZ=20*=20true_range)=0A=20=09=09=09=09=20=20/=20subsubtick_spacing));=0A=
=20=09=20=20/*=20avoid=20core=20dump,=20do=20*not*=20reduce=20minimum=20=
to=20zero!=20*/=0A=20=09=20=20if=20(min_count=20>=200)=0A=20=09=20=20=20=20=
min=20=3D=20log10=20(min_count=20*=20subsubtick_spacing);=0A-=09=20=20=
max=20=3D=20log10=20(max_count=20*=20subsubtick_spacing);=09=20=20=0A+=09=
=20=20max=20=3D=20log10=20(max_count=20*=20subsubtick_spacing);=0A=20=09=20=
=20range=20=3D=20max=20-=20min;=0A=20=09=20=20min_tick_count=20=3D=20=
max_tick_count=20=3D=200;=20/*=20keep=20gcc=20happy=20*/=0A=20=09}=0A@@=20=
-624,7=20+624,7=20@@=20prepare_axis=20(Axis=20*axisp,=20Transform=20=
*trans,=20double=20min,=20double=20max,=20double=20spac=0A=20=09=20=20=
min_tick_count=20=3D=20(int)(floor((min=20+=20FUZZ=20*=20range)/=20=
tick_spacing));=0A=20=09=20=20max_tick_count=20=3D=20(int)(ceil((max=20-=20=
FUZZ=20*=20range)/=20tick_spacing));=0A=20=09=20=20/*=20max_tick_count=20=
>=20min_tick_count=20always=20*/=0A-=09=20=20/*=20tickval=20=3D=20=
tick_spacing=20*=20count,=20=0A+=09=20=20/*=20tickval=20=3D=20=
tick_spacing=20*=20count,=0A=20=09=20=20=20=20=20for=20all=20count=20in=20=
[min_count,max_count];=20must=20have=20>=3D2=20ticks=20*/=0A=20=09=20=20=
min=20=3D=20tick_spacing=20*=20min_tick_count;=0A=20=09=20=20max=20=3D=20=
tick_spacing=20*=20max_tick_count;=0A@@=20-634,19=20+634,19=20@@=20=
prepare_axis=20(Axis=20*axisp,=20Transform=20*trans,=20double=20min,=20=
double=20max,=20double=20spac=0A=20=20=20else=09=09/*=20don't=20expand=20=
limits=20to=20next=20tick=20*/=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20=
min_tick_count=20=3D=20(int)(ceil((min=20-=20FUZZ=20*=20range)/=20=
tick_spacing));=0A-=20=20=20=20=20=20max_tick_count=20=3D=20=
(int)(floor((max=20+=20FUZZ=20*=20range)/=20tick_spacing));=20=0A+=20=20=20=
=20=20=20max_tick_count=20=3D=20(int)(floor((max=20+=20FUZZ=20*=20=
range)/=20tick_spacing));=0A=20=20=20=20=20=20=20/*=20max_tick_count=20=
<=3D=20min_tick_count=20is=20possible=20*/=0A-=20=20=20=20=20=20/*=20=
tickval=20=3D=20incr=20*=20count,=20=0A+=20=20=20=20=20=20/*=20tickval=20=
=3D=20incr=20*=20count,=0A=20=09=20for=20all=20count=20in=20=
[min_count,max_count];=20can=20have=200,1,2,3...=20ticks=20*/=0A=20=20=20=
=20=20}=0A-=20=20=0A+=0A=20=20=20/*=20Allow=205=20subticks=20per=20tick=20=
if=20S_FIVE=20or=20S_TWO_FIVE,=202=20if=20S_TWO.=20=20Case=0A=20=20=20=20=
=20=20S_ONE=20is=20special;=20we=20try=2010,=205,=20and=202=20in=20=
succession=20*/=0A=20=20=20switch=20(tick_spacing_type)=0A=20=20=20=20=20=
{=0A=20=20=20=20=20case=20S_FIVE:=0A=20=20=20=20=20case=20S_TWO_FIVE:=0A=
-=20=20=20=20=20=20lin_subtick_spacing=20=3D=20tick_spacing=20/=205;=20=20=
=20=20=20=20=0A+=20=20=20=20=20=20lin_subtick_spacing=20=3D=20=
tick_spacing=20/=205;=0A=20=20=20=20=20=20=20break;=0A=20=20=20=20=20=
case=20S_TWO:=0A=20=20=20=20=20=20=20lin_subtick_spacing=20=3D=20=
tick_spacing=20/=202;=0A@@=20-654,12=20+654,12=20@@=20prepare_axis=20=
(Axis=20*axisp,=20Transform=20*trans,=20double=20min,=20double=20max,=20=
double=20spac=0A=20=20=20=20=20case=20S_ONE:=0A=20=20=20=20=20=20=20=
lin_subtick_spacing=20=3D=20tick_spacing=20/=2010;=0A=20=20=20=20=20=20=20=
min_lin_subtick_count=20=3D=20(int)(ceil((min=20-=20FUZZ=20*=20range)/=20=
lin_subtick_spacing));=0A-=20=20=20=20=20=20max_lin_subtick_count=20=3D=20=
(int)(floor((max=20+=20FUZZ=20*=20range)/=20lin_subtick_spacing));=20=0A=
+=20=20=20=20=20=20max_lin_subtick_count=20=3D=20(int)(floor((max=20+=20=
FUZZ=20*=20range)/=20lin_subtick_spacing));=0A=20=20=20=20=20=20=20if=20=
(max_lin_subtick_count=20-=20min_lin_subtick_count=20>=20=
MAX_NUM_SUBTICKS)=0A=20=09{=0A=20=09=20=20lin_subtick_spacing=20=3D=20=
tick_spacing=20/=205;=0A=20=09=20=20min_lin_subtick_count=20=3D=20=
(int)(ceil((min=20-=20FUZZ=20*=20range)/=20lin_subtick_spacing));=0A-=09=20=
=20max_lin_subtick_count=20=3D=20(int)(floor((max=20+=20FUZZ=20*=20=
range)/=20lin_subtick_spacing));=20=0A+=09=20=20max_lin_subtick_count=20=
=3D=20(int)(floor((max=20+=20FUZZ=20*=20range)/=20lin_subtick_spacing));=0A=
=20=09=20=20if=20(max_lin_subtick_count=20-=20min_lin_subtick_count=20>=20=
MAX_NUM_SUBTICKS)=0A=20=09=20=20=20=20lin_subtick_spacing=20=3D=20=
tick_spacing=20/=202;=0A=20=09}=0A@@=20-675,8=20+675,8=20@@=20=
prepare_axis=20(Axis=20*axisp,=20Transform=20*trans,=20double=20min,=20=
double=20max,=20double=20spac=0A=20=20=20=20=20lin_subtick_spacing=20=3D=20=
1.0;=0A=20=0A=20=20=20min_lin_subtick_count=20=3D=20(int)(ceil((min=20-=20=
FUZZ=20*=20range)/=20lin_subtick_spacing));=0A-=20=20=
max_lin_subtick_count=20=3D=20(int)(floor((max=20+=20FUZZ=20*=20range)/=20=
lin_subtick_spacing));=20=0A-=20=20have_lin_subticks=20=0A+=20=20=
max_lin_subtick_count=20=3D=20(int)(floor((max=20+=20FUZZ=20*=20range)/=20=
lin_subtick_spacing));=0A+=20=20have_lin_subticks=0A=20=20=20=20=20=3D=20=
((tick_spacing_type=20!=3D=20S_UNKNOWN=20/*=20S_UNKNOWN=20->=20no=20=
subticks=20*/=0A=20=09&&=20(max_lin_subtick_count=20-=20=
min_lin_subtick_count)=20<=3D=20MAX_NUM_SUBTICKS)=0A=20=20=20=20=20=20=20=
=20?=20true=20:=20false);=0A@@=20-709,8=20+709,8=20@@=20prepare_axis=20=
(Axis=20*axisp,=20Transform=20*trans,=20double=20min,=20double=20max,=20=
double=20spac=0A=20=20=20if=20(log_axis)=09=09/*=20logarithmic=20axis=20=
*/=0A=20=20=20=20=20/*=20do=20we=20have=20special=20logarithmic=20=
subsubticks,=20and=20should=20we=20label=20them?=20*/=0A=20=20=20=20=20{=0A=
-=20=20=20=20=20=20if=20(max=20-=20min=20<=3D=20=0A-=09=20=20=
MAX_DECADES_WITH_LOG_SUBSUBTICKS=20+=20FUZZ)=20=0A+=20=20=20=20=20=20if=20=
(max=20-=20min=20<=3D=0A+=09=20=20MAX_DECADES_WITH_LOG_SUBSUBTICKS=20+=20=
FUZZ)=0A=20=09/*=20not=20too=20many=20orders=20of=20magnitude,=20so=20=
plot=20normal=20log=20subsubticks=20*/=0A=20=09=
axisp->have_normal_subsubticks=20=3D=20true;=0A=20=20=20=20=20=20=20else=0A=
@@=20-736,7=20+736,7=20@@=20new_multigrapher=20(const=20char=20=
*output_format,=20const=20char=20*bg_color,=20const=20char=20*b=0A=20=20=20=
plPlotterParams=20*plotter_params;=0A=20=20=20plPlotter=20*plotter;=0A=20=
=20=20Multigrapher=20*multigrapher;=0A-=20=20=20=09=0A+=0A=20=20=20=
multigrapher=20=3D=20(Multigrapher=20*)xmalloc=20(sizeof=20=
(Multigrapher));=0A=20=0A=20=20=20/*=20set=20Plotter=20parameters=20*/=0A=
@@=20-814,7=20+814,7=20@@=20end_graph=20(Multigrapher=20*multigrapher)=0A=
=20=20=20=20=20=20const=20char=20*x_font_name=0A=20=20=20=20=20=20double=20=
x_font_size=0A=20=20=20=20=20=20const=20char=20*x_label=0A-=20=20=20=20=20=
const=20char=20*y_font_name=20=0A+=20=20=20=20=20const=20char=20=
*y_font_name=0A=20=20=20=20=20=20double=20y_font_size=0A=20=20=20=20=20=20=
const=20char=20*y_label=0A=20=20=20=20=20=20bool=20no_rotate_y_label=0A=
@@=20-828,7=20+828,7=20@@=20end_graph=20(Multigrapher=20*multigrapher)=0A=
=20=20=20=20=20=20int=20clip_mode=09=09=3D=200,=201,=20or=202=0A=20=20=20=
=20=20=20double=20blankout_fraction=09=3D=201.0=20means=20blank=20out=20=
whole=20box=20before=20plot=0A=20=20=20=20=20=20bool=20transpose_axes=20=
*/=0A-void=20=0A+void=0A=20set_graph_parameters=20(Multigrapher=20=
*multigrapher,=20double=20frame_line_width,=20const=20char=20=
*frame_color,=20const=20char=20*title,=20const=20char=20=
*title_font_name,=20double=20title_font_size,=20double=20tick_size,=20=
grid_type=20grid_spec,=20double=20x_min,=20double=20x_max,=20double=20=
x_spacing,=20double=20y_min,=20double=20y_max,=20double=20y_spacing,=20=
bool=20spec_x_spacing,=20bool=20spec_y_spacing,=20double=20width,=20=
double=20height,=20double=20up,=20double=20right,=20const=20char=20=
*x_font_name,=20double=20x_font_size,=20const=20char=20*x_label,=20const=20=
char=20*y_font_name,=20double=20y_font_size,=20const=20char=20*y_label,=20=
bool=20no_rotate_y_label,=20int=20log_axis,=20int=20round_to_next_tick,=20=
int=20switch_axis_end,=20int=20omit_ticks,=20int=20clip_mode,=20double=20=
blankout_fraction,=20bool=20transpose_axes)=0A=20{=0A=20=20=20double=20=
x_subsubtick_spacing=20=3D=200.0,=20y_subsubtick_spacing=20=3D=200.0;=0A=
@@=20-846,7=20+846,7=20@@=20set_graph_parameters=20(Multigrapher=20=
*multigrapher,=20double=20frame_line_width,=20const=0A=20=09=20=20=
x_subsubtick_spacing=20=3D=20x_spacing;=0A=20=09}=0A=20=20=20=20=20}=0A-=20=
=20=0A+=0A=20=20=20if=20(log_axis=20&=20Y_AXIS)=0A=20=20=20=20=20{=0A=20=20=
=20=20=20=20=20if=20(spec_y_spacing)=0A@@=20-857,14=20+857,14=20@@=20=
set_graph_parameters=20(Multigrapher=20*multigrapher,=20double=20=
frame_line_width,=20const=0A=20=09=20=20y_subsubtick_spacing=20=3D=20=
y_spacing;=0A=20=09}=0A=20=20=20=20=20}=0A-=20=20=0A+=0A=20=20=20/*=20=
check=20for=20reversed=20axes=20(min=20>=20max)=20*/=0A=20=20=20if=20=
(x_max=20<=20x_min)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20=
reverse_axis=20|=3D=20X_AXIS;=0A=20=20=20=20=20=20=20{=0A=20=09double=20=
temp;=0A-=09=0A+=0A=20=09temp=20=3D=20x_min;=0A=20=09x_min=20=3D=20=
x_max;=0A=20=09x_max=20=3D=20temp;=0A@@=20-872,7=20+872,7=20@@=20=
set_graph_parameters=20(Multigrapher=20*multigrapher,=20double=20=
frame_line_width,=20const=0A=20=20=20=20=20}=0A=20=20=20if=20(x_max=20=3D=3D=
=20x_min)=0A=20=20=20=20=20{=0A-=20=20=20=20=20=20fprintf=20(stderr,=20=0A=
+=20=20=20=20=20=20fprintf=20(stderr,=0A=20=09=20=20=20=20=20=20=20"%s:=20=
identical=20upper=20and=20lower=20x=20limits=20(%f,=20%f)=20are=20=
separated\n",=0A=20=09=20=20=20=20=20=20=20progname,=20x_max,=20x_min);=0A=
=20=20=20=20=20=20=20/*=20separate=20them=20*/=0A@@=20-885,7=20+885,7=20=
@@=20set_graph_parameters=20(Multigrapher=20*multigrapher,=20double=20=
frame_line_width,=20const=0A=20=20=20=20=20=20=20reverse_axis=20|=3D=20=
Y_AXIS;=0A=20=20=20=20=20=20=20{=0A=20=09double=20temp;=0A-=09=0A+=0A=20=09=
temp=20=3D=20y_min;=0A=20=09y_min=20=3D=20y_max;=0A=20=09y_max=20=3D=20=
temp;=0A@@=20-893,24=20+893,24=20@@=20set_graph_parameters=20=
(Multigrapher=20*multigrapher,=20double=20frame_line_width,=20const=0A=20=
=20=20=20=20}=0A=20=20=20if=20(y_max=20=3D=3D=20y_min)=0A=20=20=20=20=20=
{=0A-=20=20=20=20=20=20fprintf=20(stderr,=20=0A+=20=20=20=20=20=20=
fprintf=20(stderr,=0A=20=09=20=20=20=20=20=20=20"%s:=20identical=20upper=20=
and=20lower=20x=20limits=20(%f,=20%f)=20are=20separated\n",=0A=20=09=20=20=
=20=20=20=20=20progname,=20y_max,=20y_min);=0A=20=20=20=20=20=20=20/*=20=
separate=20them=20*/=0A=20=20=20=20=20=20=20y_max=20+=3D=201.0;=0A=20=20=20=
=20=20=20=20y_min=20-=3D=201.0;=0A=20=20=20=20=20}=0A-=20=20=0A+=0A=20=20=
=20/*=20At=20this=20point,=20min=20<=20max=20for=20each=20axis,=20if=20=
the=20user=20specified=20the=20two=0A=20=20=20=20=20=20limits=20on=20an=20=
axis;=20reverse_axis=20portmanteau=20variable=20keeps=20track=20of=0A=20=20=
=20=20=20=20whether=20either=20axis=20was=20discovered=20to=20be=20=
reversed.=20*/=0A-=20=20=0A+=0A=20=20=20/*=20silently=20accept=20=
negative=20spacing=20as=20equivalent=20as=20positive=20*/=0A=20=20=20if=20=
(spec_x_spacing)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20if=20=
(x_spacing=20=3D=3D=200.0)=0A=20=09{=0A-=09=20=20fprintf=20(stderr,=20=0A=
+=09=20=20fprintf=20(stderr,=0A=20=09=09=20=20=20"%s:=20error:=20the=20=
spacing=20between=20ticks=20on=20an=20axis=20is=20zero\n",=0A=20=09=09=20=
=20=20progname);=0A=20=09=20=20exit=20(EXIT_FAILURE);=0A@@=20-921,21=20=
+921,21=20@@=20set_graph_parameters=20(Multigrapher=20*multigrapher,=20=
double=20frame_line_width,=20const=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=
=20if=20(y_spacing=20=3D=3D=200.0)=0A=20=09{=0A-=09=20=20fprintf=20=
(stderr,=20=0A+=09=20=20fprintf=20(stderr,=0A=20=09=09=20=20=20"%s:=20=
error:=20the=20spacing=20between=20ticks=20on=20an=20axis=20is=20=
zero\n",=0A=20=09=09=20=20=20progname);=0A=20=09=20=20exit=20=
(EXIT_FAILURE);=0A=20=09}=0A=20=20=20=20=20=20=20y_spacing=20=3D=20fabs=20=
(y_spacing);=0A=20=20=20=20=20}=0A-=09=20=20=20=20=20=20=0A+=0A=20=20=20=
/*=20now=20transpose=20the=20two=20axes=20(i.e.=20their=20portmanteau=20=
variables,=20labels,=0A=20=20=20=20=20=20limits=20etc.)=20if=20=
transpose_axes=20was=20set=20*/=0A=20=20=20if=20(transpose_axes)=0A=20=20=
=20=20=20{=0A=20=20=20=20=20=20=20const=20char=20*temp_string;=0A=20=20=20=
=20=20=20=20double=20temp_double;=0A-=20=20=20=20=20=20=0A+=0A=20=20=20=20=
=20=20=20transpose_portmanteau=20(&log_axis);=0A=20=20=20=20=20=20=20=
transpose_portmanteau=20(&round_to_next_tick);=0A=20=20=20=20=20=20=20=
transpose_portmanteau=20(&switch_axis_end);=0A@@=20-943,28=20+943,28=20=
@@=20set_graph_parameters=20(Multigrapher=20*multigrapher,=20double=20=
frame_line_width,=20const=0A=20=0A=20=20=20=20=20=20=20=
transpose_portmanteau=20(&reverse_axis);=0A=20=20=20=20=20=20=20=
transpose_portmanteau=20(&user_specified_subsubticks);=0A-=20=20=20=20=20=
=20=0A+=0A=20=20=20=20=20=20=20temp_string=20=3D=20x_label;=0A=20=20=20=20=
=20=20=20x_label=20=3D=20y_label;=0A=20=20=20=20=20=20=20y_label=20=3D=20=
temp_string;=0A-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=20=
temp_double=20=3D=20x_min;=0A=20=20=20=20=20=20=20x_min=20=3D=20y_min;=0A=
=20=20=20=20=20=20=20y_min=20=3D=20temp_double;=0A-=20=20=20=20=20=20=0A=
+=0A=20=20=20=20=20=20=20temp_double=20=3D=20x_max;=0A=20=20=20=20=20=20=20=
x_max=20=3D=20y_max;=0A=20=20=20=20=20=20=20y_max=20=3D=20temp_double;=0A=
-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=20temp_double=20=3D=20=
x_spacing;=0A=20=20=20=20=20=20=20x_spacing=20=3D=20y_spacing;=0A=20=20=20=
=20=20=20=20y_spacing=20=3D=20temp_double;=0A-=20=20=20=20=20=20=0A+=0A=20=
=20=20=20=20=20=20temp_double=20=3D=20x_subsubtick_spacing;=0A=20=20=20=20=
=20=20=20x_subsubtick_spacing=20=3D=20y_subsubtick_spacing;=0A=20=20=20=20=
=20=20=20y_subsubtick_spacing=20=3D=20temp_double;=0A=20=20=20=20=20}=0A=
-=09=20=20=20=20=20=20=0A+=0A=20=20=20/*=20fill=20in=20the=20=
Multigrapher=20struct=20*/=0A=20=0A=20=20=20=
multigrapher->frame_line_width=20=3D=20frame_line_width;=0A@@=20-989,29=20=
+989,29=20@@=20set_graph_parameters=20(Multigrapher=20*multigrapher,=20=
double=20frame_line_width,=20const=0A=20=20=20/*=20fill=20in=20the=20=
Transform=20and=20Axis=20elements=20for=20each=20coordinate=20*/=0A=20=20=
=20prepare_axis=20(&multigrapher->x_axis,=20&multigrapher->x_trans,=0A=20=
=09=09x_min,=20x_max,=20x_spacing,=0A-=09=09x_font_name,=20x_font_size,=20=
x_label,=20=0A+=09=09x_font_name,=20x_font_size,=20x_label,=0A=20=09=09=
x_subsubtick_spacing,=0A-=09=09(bool)(user_specified_subsubticks=20&=20=
X_AXIS),=20=0A+=09=09(bool)(user_specified_subsubticks=20&=20X_AXIS),=0A=20=
=09=09(bool)(round_to_next_tick=20&=20X_AXIS),=0A-=09=09(bool)(log_axis=20=
&=20X_AXIS),=20=0A+=09=09(bool)(log_axis=20&=20X_AXIS),=0A=20=09=09=
(bool)(reverse_axis=20&=20X_AXIS),=0A=20=09=09(bool)(switch_axis_end=20&=20=
X_AXIS),=0A=20=09=09(bool)(omit_ticks=20&=20X_AXIS));=0A=20=20=20=
prepare_axis=20(&multigrapher->y_axis,=20&multigrapher->y_trans,=0A=20=09=
=09y_min,=20y_max,=20y_spacing,=0A-=09=09y_font_name,=20y_font_size,=20=
y_label,=20=0A+=09=09y_font_name,=20y_font_size,=20y_label,=0A=20=09=09=
y_subsubtick_spacing,=0A-=09=09(bool)(user_specified_subsubticks=20&=20=
Y_AXIS),=20=0A+=09=09(bool)(user_specified_subsubticks=20&=20Y_AXIS),=0A=20=
=09=09(bool)(round_to_next_tick=20&=20Y_AXIS),=0A-=09=09(bool)(log_axis=20=
&=20Y_AXIS),=20=0A+=09=09(bool)(log_axis=20&=20Y_AXIS),=0A=20=09=09=
(bool)(reverse_axis=20&=20Y_AXIS),=0A=20=09=09(bool)(switch_axis_end=20&=20=
Y_AXIS),=0A=20=09=09(bool)(omit_ticks=20&=20Y_AXIS));=0A-=20=20=0A+=0A=20=
=20=20/*=20fill=20in=20additional=20parameters=20in=20the=20two=20=
Transform=20structures=20*/=0A=20=20=20=
multigrapher->x_trans.squeezed_min=20=3D=20right;=0A=20=20=20=
multigrapher->x_trans.squeezed_max=20=3D=20right=20+=20width;=0A-=20=20=
multigrapher->x_trans.squeezed_range=20=3D=20width;=20=20=0A+=20=20=
multigrapher->x_trans.squeezed_range=20=3D=20width;=0A=20=20=20=
multigrapher->y_trans.squeezed_min=20=3D=20up;=0A=20=20=20=
multigrapher->y_trans.squeezed_max=20=3D=20up=20+=20height;=0A=20=20=20=
multigrapher->y_trans.squeezed_range=20=3D=20height;=0A@@=20-1043,11=20=
+1043,11=20@@=20set_graph_parameters=20(Multigrapher=20*multigrapher,=20=
double=20frame_line_width,=20const=0A=20=20=20=20=20=20=20=20=20=20at=20=
the=20value=200=20(the=20origin)=20if=20the=20value=200=20is=20between=20=
the=20limits=0A=20=20=20=20=20=20=20=20=20=20of=20the=20opposing=20axis.=20=
=20Otherwise,=20the=20position=20is=20at=20the=20end=0A=20=20=20=20=20=20=
=20=20=20=20closer=20to=20the=20value=20of=200.=20*/=0A-=20=20=20=20=20=20=
multigrapher->x_axis.other_axis_loc=20=0A-=09=3D=20=
(multigrapher->x_trans.input_min=20*=20multigrapher->x_trans.input_max=20=
<=3D=200.0)=20?=200.0=20:=20=0A+=20=20=20=20=20=20=
multigrapher->x_axis.other_axis_loc=0A+=09=3D=20=
(multigrapher->x_trans.input_min=20*=20multigrapher->x_trans.input_max=20=
<=3D=200.0)=20?=200.0=20:=0A=20=09=20=20(multigrapher->x_trans.input_min=20=
>=200.0=20?=20multigrapher->x_trans.input_min=20:=20=
multigrapher->x_trans.input_max);=0A-=20=20=20=20=20=20=
multigrapher->y_axis.other_axis_loc=20=0A-=09=3D=20=
(multigrapher->y_trans.input_min=20*=20multigrapher->y_trans.input_max=20=
<=3D=200.0)=20?=200.0=20:=20=0A+=20=20=20=20=20=20=
multigrapher->y_axis.other_axis_loc=0A+=09=3D=20=
(multigrapher->y_trans.input_min=20*=20multigrapher->y_trans.input_max=20=
<=3D=200.0)=20?=200.0=20:=0A=20=09=20=20(multigrapher->y_trans.input_min=20=
>=200.0=20?=20multigrapher->y_trans.input_min=20:=20=
multigrapher->y_trans.input_max);=0A=20=20=20=20=20=20=20/*=20secondary=20=
axes=20are=20the=20same=20*/=0A=20=20=20=20=20=20=20=
multigrapher->x_axis.alt_other_axis_loc=20=3D=20=
multigrapher->x_axis.other_axis_loc;=0A@@=20-1063,7=20+1063,7=20@@=20=
set_graph_parameters=20(Multigrapher=20*multigrapher,=20double=20=
frame_line_width,=20const=0A=20=20=20/*=20The=20following=20is=20a=20=
version=20of=20(multigrapher->frame_line_width)/2=0A=20=20=20=20=20=20=
(expressed=20in=20terms=20of=20libplot=20coordinates)=20which=20the=20=
plotter=20uses=20as=0A=20=20=20=20=20=20an=20offset,=20to=20get=20highly=20=
accurate=20positioning=20of=20ticks=20and=20labels.=20*/=0A-=20=20if=20=
(frame_line_width=20<=200.0=20=0A+=20=20if=20(frame_line_width=20<=200.0=0A=
=20=20=20=20=20=20=20||=20pl_havecap_r=20(multigrapher->plotter,=20=
"WIDE_LINES")=20=3D=3D=200)=0A=20=20=20=20=20=
multigrapher->half_line_width=20=3D=200.0;/*=20N.B.=20<0.0=20->=20=
default=20width,=20pres.=20small=20*/=0A=20=20=20else=0A@@=20-1071,7=20=
+1071,7=20@@=20set_graph_parameters=20(Multigrapher=20*multigrapher,=20=
double=20frame_line_width,=20const=0A=20=0A=20=20=20/*=20initialize=20=
the=20plotter=20state=20variables=20*/=0A=20=20=20=
multigrapher->first_point_of_polyline=20=3D=20true;=0A-=20=20=
multigrapher->oldpoint_x=20=3D=200.0;=20=0A+=20=20=
multigrapher->oldpoint_x=20=3D=200.0;=0A=20=20=20=
multigrapher->oldpoint_y=20=3D=200.0;=0A=20}=0A=20=0A@@=20-1115,16=20=
+1115,16=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=20=20static=20bool=20tick_warning_printed=20=3D=20=
false;=20/*=20when=20too=20few=20labelled=20ticks=20*/=0A=20=0A=20=20=20=
/*=20wrap=20savestate()--restorestate()=20around=20all=209=20tasks=20*/=0A=
-=20=20pl_savestate_r=20(multigrapher->plotter);=20=0A+=20=20=
pl_savestate_r=20(multigrapher->plotter);=0A=20=0A=20=20=20/*=20set=20=
color=20for=20graph=20frame=20*/=0A=20=20=20if=20=
(multigrapher->frame_color)=0A=20=20=20=20=20pl_pencolorname_r=20=
(multigrapher->plotter,=20multigrapher->frame_color);=0A=20=0A=20=20=20=
/*=20set=20line=20width=20as=20a=20fraction=20of=20size=20of=20display,=20=
<0.0=20means=20default=20*/=0A-=20=20pl_flinewidth_r=20=
(multigrapher->plotter,=20=0A+=20=20pl_flinewidth_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=
multigrapher->frame_line_width=20*=20(double)PLOT_SIZE);=0A-=20=20=0A+=0A=
=20=20=20/*=20axes=20(or=20box)=20will=20be=20drawn=20in=20solid=20line=20=
style=20*/=0A=20=20=20pl_linemod_r=20(multigrapher->plotter,=20"solid");=0A=
=20=0A@@=20-1137,15=20+1137,15=20@@=20draw_frame_of_graph=20=
(Multigrapher=20*multigrapher,=20bool=20draw_canvas)=0A=20=20=20=20=20{=0A=
=20=20=20=20=20=20=20pl_savestate_r=20(multigrapher->plotter);=0A=20=20=20=
=20=20=20=20/*=20use=20user-specified=20background=20color=20(if=20any)=20=
instead=20of=20white=20*/=0A-=20=20=20=20=20=20if=20(pl_havecap_r=20=
(multigrapher->plotter,=20"SETTABLE_BACKGROUND")=20!=3D=200=20=0A+=20=20=20=
=20=20=20if=20(pl_havecap_r=20(multigrapher->plotter,=20=
"SETTABLE_BACKGROUND")=20!=3D=200=0A=20=09=20=20&&=20=
multigrapher->bg_color)=0A=20=09pl_colorname_r=20(multigrapher->plotter,=20=
multigrapher->bg_color);=0A=20=20=20=20=20=20=20else=0A=20=09=
pl_colorname_r=20(multigrapher->plotter,=20"white");=0A=20=0A=20=20=20=20=
=20=20=20pl_filltype_r=20(multigrapher->plotter,=201);=09/*=20turn=20on=20=
filling=20*/=0A-=20=20=20=20=20=20pl_fbox_r=20(multigrapher->plotter,=20=0A=
-=09=09=20XP(XSQ(0.5=20-=200.5=20*=20multigrapher->blankout_fraction)),=20=
=0A+=20=20=20=20=20=20pl_fbox_r=20(multigrapher->plotter,=0A+=09=09=20=
XP(XSQ(0.5=20-=200.5=20*=20multigrapher->blankout_fraction)),=0A=20=09=09=
=20YP(YSQ(0.5=20-=200.5=20*=20multigrapher->blankout_fraction)),=0A=20=09=
=09=20XP(XSQ(0.5=20+=200.5=20*=20multigrapher->blankout_fraction)),=0A=20=
=09=09=20YP(YSQ(0.5=20+=200.5=20*=20multigrapher->blankout_fraction)));=0A=
@@=20-1154,7=20+1154,7=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=0A=20=20=20/*=201.=20=20DRAW=20=
THE=20TITLE,=20I.E.=20THE=20TOP=20LABEL=20*/=0A=20=0A-=20=20if=20=
(multigrapher->grid_spec=20!=3D=20NO_AXES=20=0A+=20=20if=20=
(multigrapher->grid_spec=20!=3D=20NO_AXES=0A=20=20=20=20=20=20=20&&=20=
!multigrapher->y_axis.switch_axis_end=20/*=20no=20title=20if=20x=20axis=20=
is=20at=20top=20of=20plot=20*/=0A=20=20=20=20=20=20=20&&=20=
multigrapher->title=20!=3D=20NULL=20&&=20*multigrapher->title=20!=3D=20=
'\0')=0A=20=20=20=20=20{=0A@@=20-1162,20=20+1162,20=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=0A=20=20=20=20=20=20=20/*=20switch=20to=20our=20font=20=
for=20drawing=20title=20*/=0A=20=20=20=20=20=20=20pl_fontname_r=20=
(multigrapher->plotter,=20multigrapher->title_font_name);=0A-=20=20=20=20=
=20=20title_font_size=20=3D=20pl_ffontsize_r=20(multigrapher->plotter,=20=
=0A+=20=20=20=20=20=20title_font_size=20=3D=20pl_ffontsize_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=09=
SS(multigrapher->title_font_size));=0A=20=0A-=20=20=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=20=20XP(XSQ(0.5)),=20=0A=
-=09=09=20=20YP(YSQ(1.0=20=0A-=09=09=09=20+=20(((multigrapher->grid_spec=20=
=3D=3D=20AXES_AND_BOX=20=0A+=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=20=20XP(XSQ(0.5)),=0A+=09=09=20=20=
YP(YSQ(1.0=0A+=09=09=09=20+=20(((multigrapher->grid_spec=20=3D=3D=20=
AXES_AND_BOX=0A=20=09=09=09=20=20=20=20=20=20||=20=
multigrapher->grid_spec=20=3D=3D=20AXES)=0A=20=09=09=09=20=20=20=20=20&&=20=
(multigrapher->tick_size=20<=3D=200.0)=20?=201.0=20:=200.5)=0A=20=09=09=09=
=20=20=20=20*=20fabs(multigrapher->tick_size))))=0A=20=09=09=20=20+=20=
0.65=20*=20title_font_size=0A=20=09=09=20=20+=20=
multigrapher->half_line_width);=0A=20=20=20=20=20=20=20/*=20title=20=
centered,=20bottom=20spec'd=20*/=0A-=20=20=20=20=20=20pl_alabel_r=20=
(multigrapher->plotter,=20'c',=20'b',=20multigrapher->title);=20=0A+=20=20=
=20=20=20=20pl_alabel_r=20(multigrapher->plotter,=20'c',=20'b',=20=
multigrapher->title);=0A=20=20=20=20=20}=0A=20=0A=20=20=20/*=202.=20=20=
DRAW=20AXES=20FOR=20THE=20PLOT=20*/=0A@@=20-1185,28=20+1185,28=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=20=20=20=20case=20AXES_AND_BOX_AND_GRID:=0A=20=20=20=20=
=20case=20AXES_AND_BOX:=0A=20=20=20=20=20=20=20/*=20draw=20a=20box,=20=
not=20just=20a=20pair=20of=20axes=20*/=0A-=20=20=20=20=20=20pl_fbox_r=20=
(multigrapher->plotter,=20=0A+=20=20=20=20=20=20pl_fbox_r=20=
(multigrapher->plotter,=0A=20=09=09=20XP(XSQ(0.0)),=20YP(YSQ(0.0)),=20=
XP(XSQ(1.0)),=20YP(YSQ(1.0)));=0A=20=20=20=20=20=20=20break;=0A=20=20=20=20=
=20case=20AXES:=0A=20=20=20=20=20=20=20{=0A=20=09double=20xstart,=20=
ystart,=20xmid,=20ymid,=20xend,=20yend;=0A-=09=0A-=09xstart=20=3D=20=
(multigrapher->x_axis.switch_axis_end=20=0A+=0A+=09xstart=20=3D=20=
(multigrapher->x_axis.switch_axis_end=0A=20=09=09=20=20?=20=
XN(multigrapher->x_axis.other_axis_loc)=20-=20=
multigrapher->half_line_width=0A=20=09=09=20=20:=20=
XN(multigrapher->x_axis.alt_other_axis_loc)=20+=20=
multigrapher->half_line_width);=0A-=09ystart=20=3D=20=
(multigrapher->y_axis.switch_axis_end=20=0A+=09ystart=20=3D=20=
(multigrapher->y_axis.switch_axis_end=0A=20=09=09=20=20?=20=
YN(multigrapher->y_axis.alt_other_axis_loc)=0A=20=09=09=20=20:=20=
YN(multigrapher->y_axis.other_axis_loc));=0A-=09xmid=20=3D=20=
(multigrapher->x_axis.switch_axis_end=20=0A+=09xmid=20=3D=20=
(multigrapher->x_axis.switch_axis_end=0A=20=09=09?=20=
XN(multigrapher->x_axis.alt_other_axis_loc)=0A=20=09=09:=20=
XN(multigrapher->x_axis.other_axis_loc));=0A=20=09ymid=20=3D=20ystart;=0A=
=20=09xend=20=3D=20xmid;=0A-=09yend=20=3D=20=
(multigrapher->y_axis.switch_axis_end=20=0A+=09yend=20=3D=20=
(multigrapher->y_axis.switch_axis_end=0A=20=09=09?=20=
YN(multigrapher->y_axis.other_axis_loc)=20-=20=
multigrapher->half_line_width=0A=20=09=09:=20=
YN(multigrapher->y_axis.alt_other_axis_loc)=20+=20=
multigrapher->half_line_width);=0A-=09=0A+=0A=20=09pl_fmove_r=20=
(multigrapher->plotter,=20xstart,=20ystart);=0A=20=09pl_fcont_r=20=
(multigrapher->plotter,=20xmid,=20ymid);=0A=20=09pl_fcont_r=20=
(multigrapher->plotter,=20xend,=20yend);=0A@@=20-1215,19=20+1215,19=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=20=20=20=20case=20AXES_AT_ORIGIN:=0A=20=20=20=20=20=20=
=20{=0A=20=09double=20xpos,=20ypos;=0A-=09=0A-=09xpos=20=3D=20=
(multigrapher->x_axis.switch_axis_end=20=0A+=0A+=09xpos=20=3D=20=
(multigrapher->x_axis.switch_axis_end=0A=20=09=09?=20=
XN(multigrapher->x_axis.other_axis_loc)=0A=20=09=09:=20=
XN(multigrapher->x_axis.alt_other_axis_loc));=0A-=09ypos=20=3D=20=
(multigrapher->y_axis.switch_axis_end=20=0A+=09ypos=20=3D=20=
(multigrapher->y_axis.switch_axis_end=0A=20=09=09?=20=
YN(multigrapher->y_axis.alt_other_axis_loc)=0A=20=09=09:=20=
YN(multigrapher->y_axis.other_axis_loc));=0A-=09=0A-=09pl_fline_r=20=
(multigrapher->plotter,=20=0A+=0A+=09pl_fline_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20xpos,=20YP(YSQ(0.0))=20-=20=
multigrapher->half_line_width,=0A=20=09=09=20=20=20=20xpos,=20=
YP(YSQ(1.0))=20+=20multigrapher->half_line_width);=0A-=09pl_fline_r=20=
(multigrapher->plotter,=20=0A-=09=09=20=20=20=20XP(XSQ(0.0))=20-=20=
multigrapher->half_line_width,=20ypos,=20=0A+=09pl_fline_r=20=
(multigrapher->plotter,=0A+=09=09=20=20=20=20XP(XSQ(0.0))=20-=20=
multigrapher->half_line_width,=20ypos,=0A=20=09=09=20=20=20=20=
XP(XSQ(1.0))=20+=20multigrapher->half_line_width,=20ypos);=0A=20=20=20=20=
=20=20=20}=0A=20=20=20=20=20=20=20break;=0A@@=20-1249,14=20+1249,14=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=20=20=20=20=20=20/*=20switch=20to=20our=20font=20for=20=
drawing=20x=20axis=20label=20and=20tick=20labels=20*/=0A=20=20=20=20=20=20=
=20pl_fontname_r=20(multigrapher->plotter,=20=
multigrapher->x_axis.font_name);=0A=20=20=20=20=20=20=20pl_ffontsize_r=20=
(multigrapher->plotter,=20SS(multigrapher->x_axis.font_size));=0A-=20=20=20=
=20=20=20=0A-=20=20=20=20=20=20for=20(i=20=3D=20=
multigrapher->x_axis.min_tick_count;=20i=20<=3D=20=
multigrapher->x_axis.max_tick_count;=20i++)=20=0A+=0A+=20=20=20=20=20=20=
for=20(i=20=3D=20multigrapher->x_axis.min_tick_count;=20i=20<=3D=20=
multigrapher->x_axis.max_tick_count;=20i++)=0A=20=09/*=20tick=20range=20=
can=20be=20empty=20*/=0A=20=09{=0A=20=09=20=20xval=20=3D=20i=20*=20=
multigrapher->x_axis.tick_spacing;=0A-=09=20=20=09=20=20=0A+=0A=20=09=20=20=
/*=20discard=20tick=20locations=20outside=20plotting=20area=20*/=0A-=09=20=
=20if=20(xval=20<=20multigrapher->x_trans.input_min=20-=20FUZZ=20*=20=
xrange=20=0A+=09=20=20if=20(xval=20<=20multigrapher->x_trans.input_min=20=
-=20FUZZ=20*=20xrange=0A=20=09=20=20=20=20=20=20||=20xval=20>=20=
multigrapher->x_trans.input_max=20+=20FUZZ=20*=20xrange)=0A=20=09=20=20=20=
=20continue;=0A=20=0A@@=20-1264,18=20+1264,18=20@@=20draw_frame_of_graph=20=
(Multigrapher=20*multigrapher,=20bool=20draw_canvas)=0A=20=09=20=20if=20=
(!multigrapher->y_axis.switch_axis_end=0A=20=09=20=20=20=20=20=20&&=20=
!(multigrapher->grid_spec=20=3D=3D=20AXES_AT_ORIGIN=0A=20=09=09=20=20=20=
/*=20don't=20plot=20label=20if=20it=20could=20run=20into=20an=20axis=20=
*/=0A-=09=09=20=20=20&&=20NEAR_EQUALITY=20(xval,=20=
multigrapher->x_axis.other_axis_loc,=20=0A+=09=09=20=20=20&&=20=
NEAR_EQUALITY=20(xval,=20multigrapher->x_axis.other_axis_loc,=0A=20=09=09=
=09=09=20=20=20=20=20multigrapher->x_trans.input_range)=0A=20=09=09=20=20=
=20&&=20(multigrapher->y_axis.other_axis_loc=20!=3D=20=
multigrapher->y_trans.input_min)=0A=20=09=09=20=20=20&&=20=
(multigrapher->y_axis.other_axis_loc=20!=3D=20=
multigrapher->y_trans.input_max)))=0A=20=09=20=20=20=20/*=20print=20=
labels=20below=20bottom=20boundary=20*/=0A=20=09=20=20=20=20{=0A-=09=20=20=
=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20=20=20=20=
=20pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20XV=20(xval),=0A=
=20=09=09=09=20=20YN=20(multigrapher->y_axis.other_axis_loc)=0A=20=09=09=09=
=20=20-=20(SS=20((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=20=
1.75)=20*=20fabs(multigrapher->tick_size))=0A=20=09=09=09=20=20=20=20=20=
+=20multigrapher->half_line_width));=0A-=09=20=20=20=20=20=20=
print_tick_label=20(labelbuf,=20=0A+=09=20=20=20=20=20=20=
print_tick_label=20(labelbuf,=0A=20=09=09=09=09&multigrapher->x_axis,=20=
&multigrapher->x_trans,=0A=20=09=09=09=09(multigrapher->x_axis.type=20=3D=3D=
=20A_LOG10)=20?=20pow=20(10.0,=20xval)=20:=20xval);=0A=20=09=20=20=20=20=20=
=20pl_alabel_r=20(multigrapher->plotter,=20'c',=20't',=20labelbuf);=0A@@=20=
-1286,23=20+1286,23=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=09=20=20=20=20if=20=
(multigrapher->y_axis.switch_axis_end=0A=20=09=20=20=20=20=20=20&&=20=
!(multigrapher->grid_spec=20=3D=3D=20AXES_AT_ORIGIN=0A=20=09=09=20=20=20=
/*=20don't=20plot=20label=20if=20it=20could=20run=20into=20an=20axis=20=
*/=0A-=09=09=20=20=20&&=20NEAR_EQUALITY=20(xval,=20=
multigrapher->x_axis.other_axis_loc,=20=0A+=09=09=20=20=20&&=20=
NEAR_EQUALITY=20(xval,=20multigrapher->x_axis.other_axis_loc,=0A=20=09=09=
=09=09=20=20=20=20=20multigrapher->x_trans.input_range)=0A=20=09=09=20=20=
=20&&=20(multigrapher->y_axis.other_axis_loc=20!=3D=20=
multigrapher->y_trans.input_min)=0A=20=09=09=20=20=20&&=20=
(multigrapher->y_axis.other_axis_loc=20!=3D=20=
multigrapher->y_trans.input_max)))=0A=20=09=20=20=20=20=20=20{=0A-=09=09=
pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20XV=20(xval),=0A=20=09=09=
=09=20=20=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc)=0A=20=09=09=
=09=20=20=20=20+=20(SS=20((multigrapher->tick_size=20>=3D=200.0=20?=20=
0.75=20:=201.75)=20*=20fabs(multigrapher->tick_size))=0A=20=09=09=09=20=20=
=20=20=20+=20multigrapher->half_line_width));=0A-=09=09print_tick_label=20=
(labelbuf,=20=0A+=09=09print_tick_label=20(labelbuf,=0A=20=09=09=09=09=20=
=20&multigrapher->x_axis,=20&multigrapher->x_trans,=0A=20=09=09=09=09=20=20=
(multigrapher->x_axis.type=20=3D=3D=20A_LOG10)=20?=20pow=20(10.0,=20=
xval)=20:=20xval);=0A=20=09=09pl_alabel_r=20(multigrapher->plotter,=20=
'c',=20'b',=20labelbuf);=0A=20=09=09=
multigrapher->x_axis.labelled_ticks++;=0A=20=09=20=20=20=20=20=20}=0A-=09=
=20=20=0A+=0A=20=09=20=20/*=20Plot=20the=20abscissa=20tick=20marks,=20=
and=20vertical=20grid=20lines.=20*/=0A=20=09=20=20switch=20=
(multigrapher->grid_spec)=0A=20=09=20=20=20=20{=0A@@=20-1315,11=20=
+1315,11=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=09=20=20=20=20case=20AXES_AND_BOX:=0A=20=09=20=20=
=20=20=20=20if=20(!multigrapher->y_axis.switch_axis_end)=0A=20=09=09{=0A=
-=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=
=20=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc));=0A=
-=09=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=
=20=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc)=0A=
=20=09=09=09=20=20=20=20=20=20-=20(SS=20(multigrapher->tick_size)=0A=20=09=
=09=09=09=20+=20(multigrapher->tick_size=20>=200.0=20?=20=
multigrapher->half_line_width=0A@@=20-1327,11=20+1327,11=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=09}=0A=20=09=20=20=20=20=20=20else=0A=20=09=09{=0A=
-=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=
=20=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.other_axis_loc));=0A-=09=
=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=20=
=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.other_axis_loc)=0A=20=09=
=09=09=20=20=20=20=20=20+=20(SS=20(multigrapher->tick_size)=0A=20=09=09=09=
=09=20+=20(multigrapher->tick_size=20>=200.0=20?=20=
multigrapher->half_line_width=0A@@=20-1342,11=20+1342,11=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=20=20=20=20case=20AXES_AT_ORIGIN:=0A=20=09=20=20=20=
=20=20=20if=20(!multigrapher->y_axis.switch_axis_end)=0A=20=09=09{=0A-=09=
=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=20=
=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.other_axis_loc));=0A-=09=
=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=20=
=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.other_axis_loc)=0A=20=09=
=09=09=20=20=20=20=20=20+=20(SS=20(multigrapher->tick_size)=0A=20=09=09=09=
=09=20+=20(multigrapher->tick_size=20>=200.0=20?=20=
multigrapher->half_line_width=0A@@=20-1354,11=20+1354,11=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=09}=0A=20=09=20=20=20=20=20=20else=0A=20=09=09{=0A=
-=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=
=20=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc));=0A=
-=09=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=20=20=20=
=20=20=20XV=20(xval),=20=0A+=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc)=0A=
=20=09=09=09=20=20=20=20=20=20-=20(SS=20(multigrapher->tick_size)=0A=20=09=
=09=09=09=20+=20(multigrapher->tick_size=20>=200.0=20?=20=
multigrapher->half_line_width=0A@@=20-1369,23=20+1369,23=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=20=20=20=20=20=20break;=0A=20=09=20=20=20=20}=0A=20=
=09}=0A-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=20if=20=
(multigrapher->x_axis.have_lin_subticks)=0A=20=09{=0A=20=09=20=20double=20=
subtick_size;=09/*=20libplot=20coordinates=20*/=0A-=09=20=20=0A+=0A=20=09=
=20=20/*=20linearly=20spaced=20subticks=20on=20log=20axes=20are=20as=20=
long=20as=20reg.=20ticks=20*/=0A-=09=20=20subtick_size=20=3D=20=
(multigrapher->x_axis.type=20=3D=3D=20A_LOG10=20=0A+=09=20=20=
subtick_size=20=3D=20(multigrapher->x_axis.type=20=3D=3D=20A_LOG10=0A=20=09=
=09=09=20=20?=20SS(multigrapher->tick_size)=20:=20=
SS(multigrapher->subtick_size));=0A=20=0A=20=09=20=20/*=20Plot=20the=20=
linearly=20spaced=20subtick=20marks=20on=20the=20abscissa=20*/=0A-=09=20=20=
for=20(i=20=3D=20multigrapher->x_axis.min_lin_subtick_count;=20i=20<=3D=20=
multigrapher->x_axis.max_lin_subtick_count;=20i++)=20=0A+=09=20=20for=20=
(i=20=3D=20multigrapher->x_axis.min_lin_subtick_count;=20i=20<=3D=20=
multigrapher->x_axis.max_lin_subtick_count;=20i++)=0A=20=09=20=20=20=20=
/*=20tick=20range=20can=20be=20empty=20*/=0A=20=09=20=20=20=20{=0A=20=09=20=
=20=20=20=20=20xval=20=3D=20i=20*=20=
multigrapher->x_axis.lin_subtick_spacing;=0A-=09=20=20=09=20=20=0A+=0A=20=
=09=20=20=20=20=20=20/*=20discard=20subtick=20locations=20outside=20=
plotting=20area=20*/=0A-=09=20=20=20=20=20=20if=20(xval=20<=20=
multigrapher->x_trans.input_min=20-=20FUZZ=20*=20xrange=20=0A+=09=20=20=20=
=20=20=20if=20(xval=20<=20multigrapher->x_trans.input_min=20-=20FUZZ=20*=20=
xrange=0A=20=09=09=20=20||=20xval=20>=20multigrapher->x_trans.input_max=20=
+=20FUZZ=20*=20xrange)=0A=20=09=09continue;=0A=20=0A@@=20-1396,11=20=
+1396,11=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=09=09=20=20/*=20draw=20on=20both=20sides=20*/=0A=
=20=09=09=20=20if=20(!multigrapher->y_axis.switch_axis_end)=0A=20=09=09=20=
=20=20=20{=0A-=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=20=20XV=20(xval),=0A=20=09=09=09=
=09=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc));=0A-=09=09=20=20=
=20=20=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=09=20=20=
XV=20(xval),=20=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=09=20=20XV=20(xval),=0A=20=09=09=09=09=
=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc)=0A=20=09=09=09=09=20=
=20-=20(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20(subtick_size=20=
>=200.0=20?=20multigrapher->half_line_width=0A@@=20-1408,11=20+1408,11=20=
@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=09=20=20=20=20}=0A=20=09=09=20=20else=0A=20=09=09=20=
=20=20=20{=0A-=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A-=09=09=09=09=20=20XV=20(xval),=20=0A+=09=09=
=20=20=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=0A+=09=09=09=09=20=
=20XV=20(xval),=0A=20=09=09=09=09=20=20YN=20=
(multigrapher->y_axis.other_axis_loc));=0A-=09=09=20=20=20=20=20=20=
pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=09=20=20XV=20=
(xval),=20=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=09=20=20XV=20(xval),=0A=20=09=09=09=09=
=20=20YN=20(multigrapher->y_axis.other_axis_loc)=0A=20=09=09=09=09=20=20=
+=20(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20(subtick_size=20>=20=
0.0=20?=20multigrapher->half_line_width=0A@@=20-1424,11=20+1424,11=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=09=20=20if=20=
(!multigrapher->y_axis.switch_axis_end)=0A=20=09=09=20=20=20=20/*=20draw=20=
on=20only=20one=20side=20*/=0A=20=09=09=20=20=20=20{=0A-=09=09=20=20=20=20=
=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=09=09=20=20XV=20=
(xval),=20=0A+=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=09=09=20=20XV=20(xval),=0A=20=09=09=09=09=
=20=20YN=20(multigrapher->y_axis.other_axis_loc));=0A-=09=09=20=20=20=20=20=
=20pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=09=20=20XV=20=
(xval),=20=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=09=20=20XV=20(xval),=0A=20=09=09=09=09=
=20=20YN=20(multigrapher->y_axis.other_axis_loc)=0A=20=09=09=09=09=20=20=
+=20(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20(subtick_size=20>=20=
0.0=20?=20multigrapher->half_line_width=0A@@=20-1436,11=20+1436,11=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=09=20=20=20=20}=0A=20=09=09=20=20else=0A=20=09=09=20=
=20=20=20{=0A-=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A-=09=09=09=09=20=20XV=20(xval),=20=0A+=09=09=
=20=20=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=0A+=09=09=09=09=20=
=20XV=20(xval),=0A=20=09=09=09=09=20=20YN=20=
(multigrapher->y_axis.alt_other_axis_loc));=0A-=09=09=20=20=20=20=20=20=
pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=09=09=20=20XV=20=
(xval),=20=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A+=09=09=09=09=20=20XV=20(xval),=0A=20=09=09=09=09=
=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc)=0A=20=09=09=09=09=20=
=20-=20(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20(subtick_size=20=
>=200.0=20?=20multigrapher->half_line_width=0A@@=20-1454,17=20+1454,17=20=
@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09}=0A=20=0A=20=20=20=20=20=20=20/*=20plot=20a=20=
vertical=20dotted=20line=20at=20x=20=3D=200=20*/=0A-=20=20=20=20=20=20if=20=
(multigrapher->grid_spec=20!=3D=20AXES_AT_ORIGIN=20=0A+=20=20=20=20=20=20=
if=20(multigrapher->grid_spec=20!=3D=20AXES_AT_ORIGIN=0A=20=09=20=20&&=20=
multigrapher->x_axis.type=20=3D=3D=20A_LINEAR=0A=20=09=20=20&&=20=
multigrapher->x_trans.input_min=20*=20multigrapher->x_trans.input_max=20=
<=200.0)=0A=20=09{=0A=20=09=20=20pl_linemod_r=20(multigrapher->plotter,=20=
"dotted");=0A-=09=20=20pl_fline_r=20(multigrapher->plotter,=20=0A+=09=20=20=
pl_fline_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20=
XV(0.0),=20YP(YSQ(0.0)),=20XV(0.0),=20YP(YSQ(1.0)));=0A-=09=20=20=
pl_linemod_r=20(multigrapher->plotter,=20"solid");=09=20=20=0A+=09=20=20=
pl_linemod_r=20(multigrapher->plotter,=20"solid");=0A=20=09}=0A=20=20=20=20=
=20}=0A-=20=20=0A+=0A=20=20=20/*=204.=20=20PLOT=20TICK=20MARKS,=20GRID=20=
LINES,=20AND=20TICK=20LABELS=20ON=20ORDINATE=20*/=0A=20=0A=20=20=20if=20=
(multigrapher->grid_spec=20!=3D=20NO_AXES=20&&=20=
!multigrapher->y_axis.omit_ticks=0A@@=20-1478,14=20+1478,14=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=20=20=20=20=20=20/*=20switch=20to=20our=20font=20for=20=
drawing=20y=20axis=20label=20and=20tick=20labels=20*/=0A=20=20=20=20=20=20=
=20pl_fontname_r=20(multigrapher->plotter,=20=
multigrapher->y_axis.font_name);=0A=20=20=20=20=20=20=20pl_ffontsize_r=20=
(multigrapher->plotter,=20SS(multigrapher->y_axis.font_size));=0A-=20=20=20=
=20=20=20=0A-=20=20=20=20=20=20for=20(i=20=3D=20=
multigrapher->y_axis.min_tick_count;=20i=20<=3D=20=
multigrapher->y_axis.max_tick_count;=20i++)=20=0A+=0A+=20=20=20=20=20=20=
for=20(i=20=3D=20multigrapher->y_axis.min_tick_count;=20i=20<=3D=20=
multigrapher->y_axis.max_tick_count;=20i++)=0A=20=09/*=20range=20can=20=
be=20empty=20*/=0A=20=09{=0A=20=09=20=20yval=20=3D=20i=20*=20=
multigrapher->y_axis.tick_spacing;=0A-=09=20=20=0A+=0A=20=09=20=20/*=20=
discard=20tick=20locations=20outside=20plotting=20area=20*/=0A-=09=20=20=
if=20(yval=20<=20multigrapher->y_trans.input_min=20-=20FUZZ=20*=20yrange=20=
=0A+=09=20=20if=20(yval=20<=20multigrapher->y_trans.input_min=20-=20FUZZ=20=
*=20yrange=0A=20=09=20=20=20=20=20=20||=20yval=20>=20=
multigrapher->y_trans.input_max=20+=20FUZZ=20*=20yrange)=0A=20=09=20=20=20=
=20continue;=0A=20=0A@@=20-1493,7=20+1493,7=20@@=20draw_frame_of_graph=20=
(Multigrapher=20*multigrapher,=20bool=20draw_canvas)=0A=20=09=20=20if=20=
(!multigrapher->x_axis.switch_axis_end=0A=20=09=20=20=20=20=20=20&&=20=
!(multigrapher->grid_spec=20=3D=3D=20AXES_AT_ORIGIN=0A=20=09=09=20=20=20=
/*=20don't=20plot=20label=20if=20it=20could=20run=20into=20an=20axis=20=
*/=0A-=09=09=20=20=20&&=20NEAR_EQUALITY=20(yval,=20=
multigrapher->y_axis.other_axis_loc,=20=0A+=09=09=20=20=20&&=20=
NEAR_EQUALITY=20(yval,=20multigrapher->y_axis.other_axis_loc,=0A=20=09=09=
=09=09=20=20=20=20=20multigrapher->y_trans.input_range)=0A=20=09=09=20=20=
=20&&=20(multigrapher->x_axis.other_axis_loc=20!=3D=20=
multigrapher->x_trans.input_min)=0A=20=09=09=20=20=20&&=20=
(multigrapher->x_axis.other_axis_loc=20!=3D=20=
multigrapher->x_trans.input_max)))=0A@@=20-1501,13=20+1501,13=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20double=20=
new_width;=0A=20=0A-=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A+=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=09=20=20XN=20=
(multigrapher->x_axis.other_axis_loc)=0A-=09=09=09=20=20-=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=20=0A+=09=
=09=09=20=20-=20(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=20=
1.75)=0A=20=09=09=09=09*=20fabs(multigrapher->tick_size))=0A=20=09=09=09=20=
=20=20=20=20+=20multigrapher->half_line_width),=0A=20=09=09=09=20=20YV=20=
(yval));=0A-=09=20=20=20=20=20=20print_tick_label=20(labelbuf,=20=0A+=09=20=
=20=20=20=20=20print_tick_label=20(labelbuf,=0A=20=09=09=09=09=
&multigrapher->y_axis,=20&multigrapher->y_trans,=0A=20=09=09=09=09=
(multigrapher->y_axis.type=20=3D=3D=20A_LOG10)=20?=20pow=20(10.0,=20=
yval)=20:=20yval);=0A=20=09=20=20=20=20=20=20new_width=20=3D=20=
pl_flabelwidth_r=20(multigrapher->plotter,=20labelbuf);=0A@@=20-1520,20=20=
+1520,20=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=09=20=20=20=20if=20=
(multigrapher->x_axis.switch_axis_end=0A=20=09=09&&=20=
!(multigrapher->grid_spec=20=3D=3D=20AXES_AT_ORIGIN=0A=20=09=09=20=20=20=20=
=20/*=20don't=20plot=20label=20if=20it=20could=20run=20into=20an=20axis=20=
*/=0A-=09=09=20=20=20=20=20&&=20NEAR_EQUALITY=20(yval,=20=
multigrapher->y_axis.other_axis_loc,=20=0A+=09=09=20=20=20=20=20&&=20=
NEAR_EQUALITY=20(yval,=20multigrapher->y_axis.other_axis_loc,=0A=20=09=09=
=09=09=20=20=20=20=20=20=20multigrapher->y_trans.input_range)=0A=20=09=09=
=20=20=20=20=20&&=20(multigrapher->x_axis.other_axis_loc=20!=3D=20=
multigrapher->x_trans.input_min)=0A=20=09=09=20=20=20=20=20&&=20=
(multigrapher->x_axis.other_axis_loc=20!=3D=20=
multigrapher->x_trans.input_max)))=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=
=20=20=20double=20new_width;=0A=20=0A-=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A+=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=09=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc)=0A-=09=09=09=20=20+=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=20=0A+=09=
=09=09=20=20+=20(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=20=
1.75)=0A=20=09=09=09=09*=20fabs(multigrapher->tick_size))=0A=20=09=09=09=20=
=20=20=20=20+=20multigrapher->half_line_width),=0A=20=09=09=09=20=20YV=20=
(yval));=0A-=09=20=20=20=20=20=20print_tick_label=20(labelbuf,=20=0A+=09=20=
=20=20=20=20=20print_tick_label=20(labelbuf,=0A=20=09=09=09=09=
&multigrapher->y_axis,=20&multigrapher->y_trans,=0A=20=09=09=09=09=
(multigrapher->y_axis.type=20=3D=3D=20A_LOG10)=20?=20pow=20(10.0,=20=
yval)=20:=20yval);=0A=20=09=20=20=20=20=20=20new_width=20=3D=20=
pl_flabelwidth_r=20(multigrapher->plotter,=20labelbuf);=0A@@=20-1541,7=20=
+1541,7=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=09=20=20=20=20=20=20=
multigrapher->y_axis.max_label_width=20=3D=20=
DMAX(multigrapher->y_axis.max_label_width,=20new_width);=0A=20=09=20=20=20=
=20=20=20multigrapher->y_axis.labelled_ticks++;=0A=20=09=20=20=20=20}=0A=
-=09=20=20=0A+=0A=20=09=20=20/*=20Plot=20the=20tick=20marks=20on=20the=20=
y-axis,=20and=20horizontal=20grid=20lines.=20*/=0A=20=09=20=20switch=20=
(multigrapher->grid_spec)=0A=20=09=20=20=20=20{=0A@@=20-1554,24=20=
+1554,24=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=09=20=20=20=20case=20AXES_AND_BOX:=0A=20=09=20=20=
=20=20=20=20if=20(!multigrapher->x_axis.switch_axis_end)=0A=20=09=09{=0A=
-=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc),=0A=20=09=09=09=20=20=20=20=20=20=
YV=20(yval));=0A-=09=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A+=09=
=09=20=20pl_fcont_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20=20=
=20XN=20(multigrapher->x_axis.alt_other_axis_loc)=0A-=09=09=09=20=20=20=20=
=20=20-=20(SS=20(multigrapher->tick_size)=20=0A+=09=09=09=20=20=20=20=20=20=
-=20(SS=20(multigrapher->tick_size)=0A=20=09=09=09=09=20+=20=
(multigrapher->tick_size=20>=200.0=20?=20multigrapher->half_line_width=0A=
=20=09=09=09=09=20=20=20=20:=20-multigrapher->half_line_width)),=0A=20=09=
=09=09=20=20=20=20=20=20YV=20(yval));=0A=20=09=09}=0A=20=09=20=20=20=20=20=
=20else=0A=20=09=09{=0A-=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=
=0A+=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=
=20=20=20=20XN=20(multigrapher->x_axis.other_axis_loc),=0A=20=09=09=09=20=
=20=20=20=20=20YV=20(yval));=0A-=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.other_axis_loc)=0A-=09=09=09=20=20=20=20=20=20+=20=
(SS=20(multigrapher->tick_size)=20=0A+=09=09=09=20=20=20=20=20=20+=20(SS=20=
(multigrapher->tick_size)=0A=20=09=09=09=09=20+=20=
(multigrapher->tick_size=20>=200.0=20?=20multigrapher->half_line_width=0A=
=20=09=09=09=09=20=20=20=20:=20-multigrapher->half_line_width)),=0A=20=09=
=09=09=20=20=20=20=20=20YV=20(yval));=0A@@=20-1581,24=20+1581,24=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=20=20=20=20case=20AXES_AT_ORIGIN:=0A=20=09=20=20=20=
=20=20=20if=20(!multigrapher->x_axis.switch_axis_end)=0A=20=09=09{=0A-=09=
=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.other_axis_loc),=0A=20=09=09=09=20=20=20=20=20=20=
YV=20(yval));=0A-=09=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A+=09=
=09=20=20pl_fcont_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20=20=
=20XN=20(multigrapher->x_axis.other_axis_loc)=0A-=09=09=09=20=20=20=20=20=
=20+=20(SS=20(multigrapher->tick_size)=20=0A+=09=09=09=20=20=20=20=20=20=
+=20(SS=20(multigrapher->tick_size)=0A=20=09=09=09=09=20+=20=
(multigrapher->tick_size=20>=200.0=20?=20multigrapher->half_line_width=0A=
=20=09=09=09=09=20=20=20=20:=20-multigrapher->half_line_width)),=0A=20=09=
=09=09=20=20=20=20=20=20YV=20(yval));=0A=20=09=09}=0A=20=09=20=20=20=20=20=
=20else=0A=20=09=09{=0A-=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=
=0A+=09=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=
=20=20=20=20XN=20(multigrapher->x_axis.alt_other_axis_loc),=0A=20=09=09=09=
=20=20=20=20=20=20YV=20(yval));=0A-=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc)=0A-=09=09=09=20=20=20=20=20=20=
-=20(SS=20(multigrapher->tick_size)=20=0A+=09=09=09=20=20=20=20=20=20-=20=
(SS=20(multigrapher->tick_size)=0A=20=09=09=09=09=20+=20=
(multigrapher->tick_size=20>=200.0=20?=20multigrapher->half_line_width=0A=
=20=09=09=09=09=20=20=20=20:=20-multigrapher->half_line_width)),=0A=20=09=
=09=09=20=20=20=20=20=20YV=20(yval));=0A@@=20-1614,17=20+1614,17=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=20=20double=20subtick_size;=09/*=20libplot=20=
coordinates=20*/=0A=20=0A=20=09=20=20/*=20linearly=20spaced=20subticks=20=
on=20a=20log=20axis=20are=20as=20long=20as=20regular=20ticks=20*/=0A-=09=20=
=20subtick_size=20=3D=20(multigrapher->y_axis.type=20=3D=3D=20A_LOG10=20=0A=
+=09=20=20subtick_size=20=3D=20(multigrapher->y_axis.type=20=3D=3D=20=
A_LOG10=0A=20=09=09=09=20=20?=20SS(multigrapher->tick_size)=20:=20=
SS(multigrapher->subtick_size));=0A=20=0A=20=09=20=20/*=20Plot=20the=20=
linearly=20spaced=20subtick=20marks=20on=20the=20ordinate=20*/=0A-=09=20=20=
for=20(i=20=3D=20multigrapher->y_axis.min_lin_subtick_count;=20i=20<=3D=20=
multigrapher->y_axis.max_lin_subtick_count;=20i++)=20=0A+=09=20=20for=20=
(i=20=3D=20multigrapher->y_axis.min_lin_subtick_count;=20i=20<=3D=20=
multigrapher->y_axis.max_lin_subtick_count;=20i++)=0A=20=09=20=20=20=20=
/*=20range=20can=20be=20empty=20*/=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=
=20=20=20yval=20=3D=20i=20*=20multigrapher->y_axis.lin_subtick_spacing;=0A=
-=09=20=20=20=20=20=20=0A+=0A=20=09=20=20=20=20=20=20/*=20discard=20=
subtick=20locations=20outside=20plotting=20area=20*/=0A-=09=20=20=20=20=20=
=20if=20(yval=20<=20multigrapher->y_trans.input_min=20-=20FUZZ=20*=20=
yrange=20=0A+=09=20=20=20=20=20=20if=20(yval=20<=20=
multigrapher->y_trans.input_min=20-=20FUZZ=20*=20yrange=0A=20=09=09=20=20=
||=20yval=20>=20multigrapher->y_trans.input_max=20+=20FUZZ=20*=20yrange)=0A=
=20=09=09continue;=0A=20=0A@@=20-1635,10=20+1635,10=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=09case=20AXES_AND_BOX:=0A=20=09=09=20=20if=20=
(!multigrapher->x_axis.switch_axis_end)=0A=20=09=09=20=20=20=20{=0A-=09=09=
=20=20=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09=20=20=
=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=09=20=20=
XN=20(multigrapher->x_axis.alt_other_axis_loc),=0A=20=09=09=09=09=20=20=
YV=20(yval));=0A-=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc)=0A=20=09=09=09=09=20=20-=20=
(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20(subtick_size=20>=20=
0.0=20?=20multigrapher->half_line_width=0A@@=20-1647,10=20+1647,10=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=09=20=20=20=20}=0A=20=09=09=20=20else=0A=20=09=09=20=
=20=20=20{=0A-=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=20=20XN=20=
(multigrapher->x_axis.other_axis_loc),=0A=20=09=09=09=09=20=20YV=20=
(yval));=0A-=09=09=20=20=20=20=20=20pl_fcont_r=20(multigrapher->plotter,=20=
=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20(multigrapher->plotter,=0A=20=09=
=09=09=09=20=20XN=20(multigrapher->x_axis.other_axis_loc)=0A=20=09=09=09=09=
=20=20+=20(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20=
(subtick_size=20>=200.0=20?=20multigrapher->half_line_width=0A@@=20=
-1662,10=20+1662,10=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=09=09case=20AXES_AT_ORIGIN:=0A=
=20=09=09=20=20if=20(!multigrapher->x_axis.switch_axis_end)=0A=20=09=09=20=
=20=20=20{=0A-=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=20=20XN=20=
(multigrapher->x_axis.other_axis_loc),=0A=20=09=09=09=09=20=20YV=20=
(yval));=0A-=09=09=20=20=20=20=20=20pl_fcont_r=20(multigrapher->plotter,=20=
=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20(multigrapher->plotter,=0A=20=09=
=09=09=09=20=20XN=20(multigrapher->x_axis.other_axis_loc)=0A=20=09=09=09=09=
=20=20+=20(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20=
(subtick_size=20>=200.0=20?=20multigrapher->half_line_width=0A@@=20=
-1674,10=20+1674,10=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=09=09=20=20=20=20}=0A=20=09=09=
=20=20else=0A=20=09=09=20=20=20=20{=0A-=09=09=20=20=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=09=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc),=0A=20=09=09=09=09=20=20YV=20=
(yval));=0A-=09=09=20=20=20=20=20=20pl_fcont_r=20(multigrapher->plotter,=20=
=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20(multigrapher->plotter,=0A=20=09=
=09=09=09=20=20XN=20(multigrapher->x_axis.alt_other_axis_loc)=0A=20=09=09=
=09=09=20=20-=20(subtick_size=0A=20=09=09=09=09=20=20=20=20=20+=20=
(subtick_size=20>=200.0=20?=20multigrapher->half_line_width=0A@@=20=
-1690,16=20+1690,16=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=09=09}=0A=20=09=20=20=20=20}=0A=
=20=09}=0A-=09=20=20=0A+=0A=20=20=20=20=20=20=20/*=20plot=20a=20=
horizontal=20dotted=20line=20at=20y=20=3D=200=20*/=0A-=20=20=20=20=20=20=
if=20(multigrapher->grid_spec=20!=3D=20AXES_AT_ORIGIN=20=0A+=20=20=20=20=20=
=20if=20(multigrapher->grid_spec=20!=3D=20AXES_AT_ORIGIN=0A=20=09=20=20=
&&=20multigrapher->y_axis.type=20=3D=3D=20A_LINEAR=0A=20=09=20=20&&=20=
multigrapher->y_trans.input_min=20*=20multigrapher->y_trans.input_max=20=
<=200.0)=0A=20=09{=0A=20=09=20=20pl_linemod_r=20(multigrapher->plotter,=20=
"dotted");=0A-=09=20=20pl_fline_r=20(multigrapher->plotter,=20=0A+=09=20=20=
pl_fline_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20=
XP(XSQ(0.0)),=20YV(0.0),=20XP(XSQ(1.0)),=20YV(0.0));=0A-=09=20=20=
pl_linemod_r=20(multigrapher->plotter,=20"solid");=09=20=20=0A+=09=20=20=
pl_linemod_r=20(multigrapher->plotter,=20"solid");=0A=20=09}=0A=20=20=20=20=
=20}=0A=20=0A@@=20-1736,14=20+1736,14=20@@=20draw_frame_of_graph=20=
(Multigrapher=20*multigrapher,=20bool=20draw_canvas)=0A=20=20=20=20=20{=0A=
=20=20=20=20=20=20=20int=20i,=20imin,=20imax;=0A=20=20=20=20=20=20=20=
double=20xval,=20xrange=20=3D=20multigrapher->x_trans.input_max=20-=20=
multigrapher->x_trans.input_min;=0A-=20=20=20=20=20=20=0A+=0A=20=20=20=20=
=20=20=20/*=20compute=20an=20integer=20range=20large=20enough=20to=20=
include=20the=20entire=0A=20=09=20desired=20axis=20*/=0A-=20=20=20=20=20=20=
imin=20=3D=20(int)(floor=20(pow=20(10.0,=20=
multigrapher->x_trans.input_min=20-=20FUZZ=20*=20xrange)=20=0A+=20=20=20=20=
=20=20imin=20=3D=20(int)(floor=20(pow=20(10.0,=20=
multigrapher->x_trans.input_min=20-=20FUZZ=20*=20xrange)=0A=20=09=09=09=20=
=20/=20multigrapher->x_axis.subsubtick_spacing));=0A-=20=20=20=20=20=20=
imax=20=3D=20(int)(ceil=20(pow=20(10.0,=20=
multigrapher->x_trans.input_max=20+=20FUZZ=20*=20xrange)=20=0A+=20=20=20=20=
=20=20imax=20=3D=20(int)(ceil=20(pow=20(10.0,=20=
multigrapher->x_trans.input_max=20+=20FUZZ=20*=20xrange)=0A=20=09=09=09=20=
/=20multigrapher->x_axis.subsubtick_spacing));=0A-=20=20=20=20=20=20=0A+=0A=
=20=20=20=20=20=20=20/*=20draw=20user-specified=20subsubticks=20*/=0A=20=20=
=20=20=20=20=20for=20(i=20=3D=20imin;=20i=20<=3D=20imax;=20i++)=0A=20=09=
{=0A@@=20-1756,7=20+1756,7=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=20=20=20=20}=0A=20=0A=20=20=20=
/*=206.=20=20DRAW=20LOGARITHMIC=20SUBSUBTICKS=20AND=20THEIR=20LABELS=20=
ON=20ORDINATE=20*/=0A-=20=20=0A+=0A=20=20=20/*=20first,=20draw=20normal=20=
logarithmic=20subsubticks=20if=20any=20*/=0A=20=20=20if=20=
(multigrapher->grid_spec=20!=3D=20NO_AXES=20&&=20=
multigrapher->y_axis.have_normal_subsubticks=0A=20=20=20=20=20=20=20&&=20=
!multigrapher->y_axis.user_specified_subsubticks=20&&=20=
!multigrapher->y_axis.omit_ticks)=0A@@=20-1789,14=20+1789,14=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20int=20i,=20imin,=20=
imax;=0A=20=20=20=20=20=20=20double=20yval,=20yrange=20=3D=20=
multigrapher->y_trans.input_max=20-=20multigrapher->y_trans.input_min;=0A=
-=20=20=20=20=20=20=0A+=0A=20=20=20=20=20=20=20/*=20compute=20an=20=
integer=20range=20large=20enough=20to=20include=20the=20entire=0A=20=09=20=
desired=20axis=20*/=0A-=20=20=20=20=20=20imin=20=3D=20(int)(floor=20(pow=20=
(10.0,=20multigrapher->y_trans.input_min=20-=20FUZZ=20*=20yrange)=20=0A+=20=
=20=20=20=20=20imin=20=3D=20(int)(floor=20(pow=20(10.0,=20=
multigrapher->y_trans.input_min=20-=20FUZZ=20*=20yrange)=0A=20=09=09=09=20=
=20/=20multigrapher->y_axis.subsubtick_spacing));=0A-=20=20=20=20=20=20=
imax=20=3D=20(int)(ceil=20(pow=20(10.0,=20=
multigrapher->y_trans.input_max=20+=20FUZZ=20*=20yrange)=20=0A+=20=20=20=20=
=20=20imax=20=3D=20(int)(ceil=20(pow=20(10.0,=20=
multigrapher->y_trans.input_max=20+=20FUZZ=20*=20yrange)=0A=20=09=09=09=20=
/=20multigrapher->y_axis.subsubtick_spacing));=0A-=20=20=20=20=20=20=0A+=0A=
=20=20=20=20=20=20=20/*=20draw=20user-specified=20subsubticks=20*/=0A=20=20=
=20=20=20=20=20for=20(i=20=3D=20imin;=20i=20<=3D=20imax;=20i++)=0A=20=09=
{=0A@@=20-1818,7=20+1818,7=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=0A=20=20=20=20=20=20=20/*=20=
switch=20to=20our=20font=20for=20drawing=20x=20axis=20label=20and=20tick=20=
labels=20*/=0A=20=20=20=20=20=20=20pl_fontname_r=20=
(multigrapher->plotter,=20multigrapher->x_axis.font_name);=0A-=20=20=20=20=
=20=20x_axis_font_size=20=3D=20pl_ffontsize_r=20(multigrapher->plotter,=20=
=0A+=20=20=20=20=20=20x_axis_font_size=20=3D=20pl_ffontsize_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=09=20=
SS(multigrapher->x_axis.font_size));=0A=20=0A=20=20=20=20=20=20=20if=20=
(multigrapher->grid_spec=20!=3D=20AXES_AT_ORIGIN)=0A@@=20-1832,34=20=
+1832,34=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=09=20=20=20=20xloc=20=3D=200.5=20*=20=
(multigrapher->x_trans.input_max=20+=20multigrapher->x_trans.input_min);=0A=
=20=09=20=20else=0A=20=09=20=20=20=20/*=20center=20label=20in=20the=20=
larger=20of=20the=20two=20halves=20*/=0A-=09=20=20=20=20xloc=20=3D=20=0A=
+=09=20=20=20=20xloc=20=3D=0A=20=09=20=20=20=20=20=20=
multigrapher->x_trans.input_max-multigrapher->x_axis.other_axis_loc=20>=3D=
=20multigrapher->x_axis.other_axis_loc-multigrapher->x_trans.input_min=20=
?=0A=20=09=090.5=20*=20(multigrapher->x_trans.input_max=20+=20=
multigrapher->x_axis.other_axis_loc)=20:=0A=20=09=09=20=200.5=20*=20=
(multigrapher->x_axis.other_axis_loc=20+=20=
multigrapher->x_trans.input_min);=0A=20=09}=0A-=20=20=20=20=20=20=0A+=0A=20=
=20=20=20=20=20=20if=20(!multigrapher->y_axis.switch_axis_end)=20/*=20=
axis=20on=20bottom,=20label=20below=20it=20*/=0A=20=09{=0A-=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=20=20=20=20=20=20XV=20=
(xloc),=20=0A+=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A+=09=09=20=20=
=20=20=20=20XV=20(xloc),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.other_axis_loc)=0A-=09=09=20=20=20=20=20=20-=20(SS=20=
((multigrapher->tick_size=20>=3D=200.0=20?=200.875=20:=202.125)=20=0A+=09=
=09=20=20=20=20=20=20-=20(SS=20((multigrapher->tick_size=20>=3D=200.0=20=
?=200.875=20:=202.125)=0A=20=09=09=09=20=20=20=20=20*=20=
fabs(multigrapher->tick_size))=0A=20=09=09=09=20+=20(6=20*=20=
x_axis_font_size)/5=0A=20=09=09=09=20+=20=
multigrapher->half_line_width));=0A-=09=20=20pl_alabel_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_alabel_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20=20'c',=20't',=20=
multigrapher->x_axis.label);=0A=20=09}=0A=20=20=20=20=20=20=20else=09=09=09=
/*=20axis=20on=20top,=20label=20above=20it=20*/=0A=20=09{=0A-=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=20=20=20=20=20=20XV=20=
(xloc),=20=0A+=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A+=09=09=20=20=
=20=20=20=20XV=20(xloc),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.alt_other_axis_loc)=0A-=09=09=20=20=20=20=20=20+=20=
(SS=20((multigrapher->tick_size=20>=3D=200.0=20?=200.875=20:=202.125)=20=0A=
+=09=09=20=20=20=20=20=20+=20(SS=20((multigrapher->tick_size=20>=3D=20=
0.0=20?=200.875=20:=202.125)=0A=20=09=09=09=20=20=20=20=20*=20=
fabs(multigrapher->tick_size))=0A=20=09=09=09=20+=20(6=20*=20=
x_axis_font_size)/5=0A=20=09=09=09=20+=20=
multigrapher->half_line_width));=0A-=09=20=20pl_alabel_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_alabel_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20=20'c',=20'b',=20=
multigrapher->x_axis.label);=0A=20=09}=0A=20=20=20=20=20}=0A@@=20-1874,7=20=
+1874,7=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=0A=20=20=20=20=20=20=20/*=20switch=20to=20our=20=
font=20for=20drawing=20y=20axis=20label=20and=20tick=20labels=20*/=0A=20=20=
=20=20=20=20=20pl_fontname_r=20(multigrapher->plotter,=20=
multigrapher->y_axis.font_name);=0A-=20=20=20=20=20=20y_axis_font_size=20=
=3D=20pl_ffontsize_r=20(multigrapher->plotter,=20=0A+=20=20=20=20=20=20=
y_axis_font_size=20=3D=20pl_ffontsize_r=20(multigrapher->plotter,=0A=20=09=
=09=09=09=09=20SS(multigrapher->y_axis.font_size));=0A=20=0A=20=20=20=20=20=
=20=20if=20(multigrapher->grid_spec=20!=3D=20AXES_AT_ORIGIN)=0A@@=20=
-1887,12=20+1887,12=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=09=20=20=20=20yloc=20=3D=20=
0.5=20*=20(multigrapher->y_trans.input_min=20+=20=
multigrapher->y_trans.input_max);=0A=20=09=20=20else=0A=20=09=20=20=20=20=
/*=20center=20label=20in=20the=20larger=20of=20the=20two=20halves=20*/=0A=
-=09=20=20=20=20yloc=20=3D=20=0A+=09=20=20=20=20yloc=20=3D=0A=20=09=20=20=
=20=20=20=20=
multigrapher->y_trans.input_max-multigrapher->y_axis.other_axis_loc=20>=3D=
=20multigrapher->y_axis.other_axis_loc-multigrapher->y_trans.input_min=20=
?=0A=20=09=090.5=20*=20(multigrapher->y_trans.input_max=20+=20=
multigrapher->y_axis.other_axis_loc)=20:=0A=20=09=09=20=200.5=20*=20=
(multigrapher->y_axis.other_axis_loc=20+=20=
multigrapher->y_trans.input_min);=0A=20=09}=0A-=20=20=20=20=20=20=0A+=0A=20=
/*=20a=20relic=20of=20temps=20perdus=20*/=0A=20#define=20=
libplot_has_font_metrics=201=0A=20=0A@@=20-1901,57=20+1901,57=20@@=20=
draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20bool=20=
draw_canvas)=0A=20=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=
=20=20=20=20=20=20XN=20(multigrapher->x_axis.other_axis_loc)=0A=20=09=09=20=
=20=20=20=20=20-=20(libplot_has_font_metrics=20?=0A-=09=09=09=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=20=0A-=09=
=09=09=20=20=20=20=20*=20fabs(multigrapher->tick_size))=20=0A+=09=09=09=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=0A+=09=09=
=09=20=20=20=20=20*=20fabs(multigrapher->tick_size))=0A=20=09=09=09=20=20=
+=201.15=20*=20multigrapher->y_axis.max_label_width=0A=20=09=09=09=20=20=
+=200.5=20*=20y_axis_font_size=0A=20=09=09=09=20=20+=20=
multigrapher->half_line_width)=0A-=09=09=09=20:=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=20=0A+=09=
=09=09=20:=20(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=20=
1.75)=0A=20=09=09=09=20=20=20=20=20=20=20*=20=
fabs(multigrapher->tick_size))=20/*=20backup=20*/=0A=20=09=09=09=20=20=20=
=20+=201.0=20*=20y_axis_font_size=0A=20=09=09=09=20=20=20=20+=20=
multigrapher->half_line_width)),=0A=20=09=09=20=20=20=20=20=20YV(yloc));=0A=
-=09=20=20=0A+=0A=20=09=20=20if=20(libplot_has_font_metrics=0A=20=09=20=20=
=20=20=20=20&&=20!multigrapher->no_rotate_y_label)=20/*=20can=20rotate=20=
label=20*/=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20=
pl_textangle_r=20(multigrapher->plotter,=2090);=0A-=09=20=20=20=20=20=20=
pl_alabel_r=20(multigrapher->plotter,=20=0A+=09=20=20=20=20=20=20=
pl_alabel_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=20'c',=20'x',=20=
multigrapher->y_axis.label);=0A=20=09=20=20=20=20=20=20pl_textangle_r=20=
(multigrapher->plotter,=200);=0A=20=09=20=20=20=20}=0A=20=09=20=20else=0A=
=20=09=20=20=20=20/*=20non-rotated=20axis=20label,=20right=20justified=20=
*/=0A-=09=20=20=20=20pl_alabel_r=20(multigrapher->plotter,=20=0A+=09=20=20=
=20=20pl_alabel_r=20(multigrapher->plotter,=0A=20=09=09=09=20'r',=20'c',=20=
multigrapher->y_axis.label);=0A=20=09}=0A=20=20=20=20=20=20=20else=0A=20=09=
{=0A-=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc)=0A=20=09=09=20=20=20=20=20=20+=20=
(libplot_has_font_metrics=20?=0A-=09=09=09=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=20=0A-=09=
=09=09=20=20=20=20=20*=20fabs(multigrapher->tick_size))=20=0A-=09=09=09=20=
=20+=201.15=20*=20multigrapher->y_axis.max_label_width=20=0A+=09=09=09=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=0A+=09=09=
=09=20=20=20=20=20*=20fabs(multigrapher->tick_size))=0A+=09=09=09=20=20+=20=
1.15=20*=20multigrapher->y_axis.max_label_width=0A=20=09=09=09=20=20+=20=
0.5=20*=20y_axis_font_size=0A=20=09=09=09=20=20+=20=
multigrapher->half_line_width)=0A-=09=09=09=20:=20=
(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=201.75)=20=0A+=09=
=09=09=20:=20(SS((multigrapher->tick_size=20>=3D=200.0=20?=200.75=20:=20=
1.75)=0A=20=09=09=09=20=20=20=20=20=20=20*=20=
fabs(multigrapher->tick_size))=20/*=20backup=20*/=0A=20=09=09=09=20=20=20=
=20+=201.0=20*=20y_axis_font_size=0A-=09=09=09=20=20=20=20+=20=
multigrapher->half_line_width)),=20=0A+=09=09=09=20=20=20=20+=20=
multigrapher->half_line_width)),=0A=20=09=09=20=20=20=20=20=20YV(yloc));=0A=
-=09=20=20=0A+=0A=20=09=20=20if=20(libplot_has_font_metrics=0A=20=09=20=20=
=20=20=20=20&&=20!multigrapher->no_rotate_y_label)=20/*=20can=20rotate=20=
label=20*/=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20=
pl_textangle_r=20(multigrapher->plotter,=2090);=0A-=09=20=20=20=20=20=20=
pl_alabel_r=20(multigrapher->plotter,=20=0A+=09=20=20=20=20=20=20=
pl_alabel_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=20'c',=20't',=20=
multigrapher->y_axis.label);=0A=20=09=20=20=20=20=20=20pl_textangle_r=20=
(multigrapher->plotter,=200);=0A=20=09=20=20=20=20}=0A=20=09=20=20else=0A=
=20=09=20=20=20=20/*=20non-rotated=20axis=20label,=20left=20justified=20=
*/=0A-=09=20=20=20=20pl_alabel_r=20(multigrapher->plotter,=20=0A+=09=20=20=
=20=20pl_alabel_r=20(multigrapher->plotter,=0A=20=09=09=09=20'l',=20'c',=20=
multigrapher->y_axis.label);=0A=20=09}=0A=20=20=20=20=20}=0A@@=20-1965,7=20=
+1965,7=20@@=20draw_frame_of_graph=20(Multigrapher=20*multigrapher,=20=
bool=20draw_canvas)=0A=20=0A=20=20=20if=20(multigrapher->grid_spec=20!=3D=20=
NO_AXES)=0A=20=20=20=20=20{=0A-=20=20=20=20=20=20if=20=
(!tick_warning_printed=20&&=20=0A+=20=20=20=20=20=20if=20=
(!tick_warning_printed=20&&=0A=20=09=20=20=
((!multigrapher->x_axis.omit_ticks=20&&=20=
multigrapher->x_axis.labelled_ticks=20<=3D=202)=0A=20=09=20=20=20||=20=
(!multigrapher->y_axis.omit_ticks=20&&=20=
multigrapher->y_axis.labelled_ticks=20<=3D=202)))=0A=20=09{=0A@@=20=
-1976,7=20+1976,7=20@@=20draw_frame_of_graph=20(Multigrapher=20=
*multigrapher,=20bool=20draw_canvas)=0A=20=09}=0A=20=20=20=20=20}=0A=20}=0A=
-=20=20=0A+=0A=20=0A=20=0C=0A=20/*=20plot_abscissa_log_subsubtick()=20=
and=20plot_ordinate_log_subsubtick()=20are=0A@@=20-1992,25=20+1992,25=20=
@@=20plot_abscissa_log_subsubtick=20(Multigrapher=20*multigrapher,=20=
double=20xval)=0A=20=20=20char=20labelbuf[2048];=0A=20=20=20double=20=
tick_size=20=3D=20SS(multigrapher->tick_size);=20/*=20for=20positioning=20=
labels=20*/=0A=20=20=20double=20subsubtick_size=20=3D=20=
SS(multigrapher->subtick_size);=0A-=20=20=20=20=20=20=0A+=0A=20=20=20/*=20=
switch=20to=20our=20font=20for=20drawing=20x=20axis=20label=20and=20tick=20=
labels=20*/=0A=20=20=20pl_fontname_r=20(multigrapher->plotter,=20=
multigrapher->x_axis.font_name);=0A=20=20=20pl_ffontsize_r=20=
(multigrapher->plotter,=20SS(multigrapher->x_axis.font_size));=0A-=20=20=0A=
+=0A=20=20=20/*=20discard=20subsubtick=20locations=20outside=20plotting=20=
area=20*/=0A=20=20=20if=20(xval=20<=20multigrapher->x_trans.input_min=20=
-=20FUZZ=20*=20xrange=0A=20=20=20=20=20=20=20||=20xval=20>=20=
multigrapher->x_trans.input_max=20+=20FUZZ=20*=20xrange)=0A=20=20=20=20=20=
return;=0A-=20=20=0A+=0A=20=20=20/*=20label=20subsubtick=20if=20it=20=
seems=20appropriate=20*/=0A=20=20=20if=20=
(multigrapher->x_axis.user_specified_subsubticks)=0A=20=20=20=20=20{=0A-=20=
=20=20=20=20=20print_tick_label=20(labelbuf,=20=0A-=09=09=09=
&multigrapher->x_axis,=20&multigrapher->x_trans,=20=0A+=20=20=20=20=20=20=
print_tick_label=20(labelbuf,=0A+=09=09=09&multigrapher->x_axis,=20=
&multigrapher->x_trans,=0A=20=09=09=09pow=20(10.0,=20xval));=0A=20=20=20=20=
=20=20=20if=20(!multigrapher->y_axis.switch_axis_end)=0A=20=09{=0A-=09=20=
=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.other_axis_loc)=0A=20=09=09=
=20=20=20=20=20=20-=20((tick_size=20>=3D=200=20?=200.75=20:=201.75)=0A@@=20=
-2021,17=20+2021,17=20@@=20plot_abscissa_log_subsubtick=20(Multigrapher=20=
*multigrapher,=20double=20xval)=0A=20=09}=0A=20=20=20=20=20=20=20else=0A=20=
=09{=0A-=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV=20=
(xval),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.alt_other_axis_loc)=0A-=09=09=20=20=20=20=20=20+=20=
((tick_size=20>=3D=200=20?=200.75=20:=201.75)=20=0A+=09=09=20=20=20=20=20=
=20+=20((tick_size=20>=3D=200=20?=200.75=20:=201.75)=0A=20=09=09=09=20*=20=
fabs((double)tick_size)=0A=20=09=09=09=20+=20=
multigrapher->half_line_width));=0A=20=09=20=20pl_alabel_r=20=
(multigrapher->plotter,=20'c',=20'b',=20labelbuf);=0A=20=09=20=20=
multigrapher->x_axis.labelled_ticks++;=0A=20=09}=0A=20=20=20=20=20}=0A-=20=
=20=0A+=0A=20=20=20/*=20draw=20subsubtick=20*/=0A=20=20=20switch=20=
(multigrapher->grid_spec)=0A=20=20=20=20=20{=0A@@=20-2044,10=20+2044,10=20=
@@=20plot_abscissa_log_subsubtick=20(Multigrapher=20*multigrapher,=20=
double=20xval)=0A=20=20=20=20=20case=20AXES_AND_BOX:=0A=20=20=20=20=20=20=
=20if=20(!multigrapher->y_axis.switch_axis_end)=0A=20=09{=0A-=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=20=20=20=20=20=20XV=20=
(xval),=20=0A+=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A+=09=09=20=20=
=20=20=20=20XV=20(xval),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.alt_other_axis_loc));=0A-=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc)=0A=20=
=09=09=20=20=20=20=20=20-=20(subsubtick_size=0A@@=20-2057,10=20+2057,10=20=
@@=20plot_abscissa_log_subsubtick=20(Multigrapher=20*multigrapher,=20=
double=20xval)=0A=20=09}=0A=20=20=20=20=20=20=20else=0A=20=09{=0A-=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=20=20=20=20=20=20XV=20=
(xval),=20=0A+=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A+=09=09=20=20=
=20=20=20=20XV=20(xval),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.other_axis_loc));=0A-=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=
=09=20=20=20=20=20=20YN=20(multigrapher->y_axis.other_axis_loc)=0A=20=09=09=
=20=20=20=20=20=20+=20(subsubtick_size=0A@@=20-2073,27=20+2073,27=20@@=20=
plot_abscissa_log_subsubtick=20(Multigrapher=20*multigrapher,=20double=20=
xval)=0A=20=20=20=20=20case=20AXES_AT_ORIGIN:=0A=20=20=20=20=20=20=20if=20=
(!multigrapher->y_axis.switch_axis_end)=0A=20=09{=0A-=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A-=09=09=20=20=20=20=20=20XV=20(xval),=20=0A=
+=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A+=09=09=20=20=20=20=20=20=
XV=20(xval),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.other_axis_loc));=0A-=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A-=09=09=20=20=20=20=20=20XV=20(xval),=20=0A=
+=09=20=20pl_fcont_r=20(multigrapher->plotter,=0A+=09=09=20=20=20=20=20=20=
XV=20(xval),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.other_axis_loc)=0A=20=09=09=20=20=20=20=20=20+=20=
(subsubtick_size=0A-=09=09=09=20+=20(subsubtick_size=20>=200.0=20=0A+=09=09=
=09=20+=20(subsubtick_size=20>=200.0=0A=20=09=09=09=20=20=20=20?=20=
multigrapher->half_line_width=0A=20=09=09=09=20=20=20=20:=20=
-multigrapher->half_line_width)));=0A=20=09}=0A=20=20=20=20=20=20=20else=0A=
=20=09{=0A-=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A-=09=09=20=20=
=20=20=20=20XV=20(xval),=20=0A+=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=20=20=20=20=20=20XV=20(xval),=0A=20=09=09=
=20=20=20=20=20=20YN=20(multigrapher->y_axis.alt_other_axis_loc));=0A-=09=
=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A-=09=09=20=20=20=20=20=20=
XV=20(xval),=20=0A+=09=20=20pl_fcont_r=20(multigrapher->plotter,=0A+=09=09=
=20=20=20=20=20=20XV=20(xval),=0A=20=09=09=20=20=20=20=20=20YN=20=
(multigrapher->y_axis.alt_other_axis_loc)=0A=20=09=09=20=20=20=20=20=20-=20=
(subsubtick_size=0A-=09=09=09=20+=20(subsubtick_size=20>=200.0=20=0A+=09=09=
=09=20+=20(subsubtick_size=20>=200.0=0A=20=09=09=09=20=20=20=20?=20=
multigrapher->half_line_width=0A=20=09=09=09=20=20=20=20:=20=
-multigrapher->half_line_width)));=0A=20=09}=0A@@=20-2112,29=20+2112,29=20=
@@=20plot_ordinate_log_subsubtick=20(Multigrapher=20*multigrapher,=20=
double=20yval)=0A=20=20=20char=20labelbuf[2048];=0A=20=20=20double=20=
tick_size=20=3D=20SS(multigrapher->tick_size);=20/*=20for=20positioning=20=
labels=20*/=0A=20=20=20double=20subsubtick_size=20=3D=20=
SS(multigrapher->subtick_size);=0A-=20=20=20=20=0A+=0A=20=20=20/*=20=
switch=20to=20our=20font=20for=20drawing=20y=20axis=20label=20and=20tick=20=
labels=20*/=0A=20=20=20pl_fontname_r=20(multigrapher->plotter,=20=
multigrapher->y_axis.font_name);=0A=20=20=20pl_ffontsize_r=20=
(multigrapher->plotter,=20SS(multigrapher->y_axis.font_size));=0A-=20=20=0A=
+=0A=20=20=20/*=20discard=20subsubtick=20locations=20outside=20plotting=20=
area=20*/=0A=20=20=20if=20(yval=20<=20multigrapher->y_trans.input_min=20=
-=20FUZZ=20*=20yrange=0A=20=20=20=20=20=20=20||=20yval=20>=20=
multigrapher->y_trans.input_max=20+=20FUZZ=20*=20yrange)=0A=20=20=20=20=20=
return;=0A-=20=20=0A+=0A=20=20=20/*=20label=20subsubtick=20if=20it=20=
seems=20appropriate=20*/=0A-=20=20if=20=
(multigrapher->y_axis.user_specified_subsubticks)=09=09=20=0A+=20=20if=20=
(multigrapher->y_axis.user_specified_subsubticks)=0A=20=20=20=20=20{=0A=20=
=20=20=20=20=20=20double=20new_width;=0A-=20=20=20=20=20=20=0A-=20=20=20=20=
=20=20print_tick_label=20(labelbuf,=20=0A-=09=09=09=
&multigrapher->y_axis,=20&multigrapher->y_trans,=20=0A+=0A+=20=20=20=20=20=
=20print_tick_label=20(labelbuf,=0A+=09=09=09&multigrapher->y_axis,=20=
&multigrapher->y_trans,=0A=20=09=09=09pow=20(10.0,=20yval));=0A=20=20=20=20=
=20=20=20if=20(!multigrapher->x_axis.switch_axis_end)=0A=20=09{=0A-=09=20=
=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20=
XN(multigrapher->x_axis.other_axis_loc)=0A-=09=09=20=20=20=20=20=20-=20=
((tick_size=20>=3D=200=20?=200.75=20:=201.75)=20=0A+=09=09=20=20=20=20=20=
=20-=20((tick_size=20>=3D=200=20?=200.75=20:=201.75)=0A=20=09=09=09=20*=20=
fabs((double)tick_size)=0A=20=09=09=09=20+=20=
multigrapher->half_line_width),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A@@=20-2145,9=20+2145,9=20@@=20plot_ordinate_log_subsubtick=20=
(Multigrapher=20*multigrapher,=20double=20yval)=0A=20=09}=0A=20=20=20=20=20=
=20=20else=0A=20=09{=0A-=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A=
+=09=20=20pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=
=20XN(multigrapher->x_axis.alt_other_axis_loc)=0A-=09=09=20=20=20=20=20=20=
+=20((tick_size=20>=3D=200=20?=200.75=20:=201.75)=20=0A+=09=09=20=20=20=20=
=20=20+=20((tick_size=20>=3D=200=20?=200.75=20:=201.75)=0A=20=09=09=09=20=
*=20fabs((double)tick_size)=0A=20=09=09=09=20+=20=
multigrapher->half_line_width),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A@@=20-2157,7=20+2157,7=20@@=20plot_ordinate_log_subsubtick=20=
(Multigrapher=20*multigrapher,=20double=20yval)=0A=20=09=20=20=
multigrapher->y_axis.labelled_ticks++;=0A=20=09}=0A=20=20=20=20=20}=0A-=20=
=20=0A+=0A=20=20=20/*=20draw=20subsubtick=20*/=0A=20=20=20switch=20=
(multigrapher->grid_spec)=0A=20=20=20=20=20{=0A@@=20-2168,28=20+2168,28=20=
@@=20plot_ordinate_log_subsubtick=20(Multigrapher=20*multigrapher,=20=
double=20yval)=0A=20=20=20=20=20=20=20pl_linemod_r=20=
(multigrapher->plotter,=20"solid");=0A=20=20=20=20=20=20=20/*=20fall=20=
through=20*/=0A=20=20=20=20=20case=20AXES_AND_BOX:=0A-=20=20=20=20=20=20=
if=20(!multigrapher->x_axis.switch_axis_end)=09=09=20=20=20=20=20=20=0A+=20=
=20=20=20=20=20if=20(!multigrapher->x_axis.switch_axis_end)=0A=20=09{=0A=
-=09=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc),=0A=20=09=09=20=20=20=20=20=20=
YV=20(yval));=0A-=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A+=09=20=
=20pl_fcont_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc)=0A=20=09=09=20=20=20=20=20=20-=20=
(subsubtick_size=0A-=09=09=09=20+=20(subsubtick_size=20>=200.0=20=0A+=09=09=
=09=20+=20(subsubtick_size=20>=200.0=0A=20=09=09=09=20=20=20=20?=20=
multigrapher->half_line_width=0A=20=09=09=09=20=20=20=20:=20=
-multigrapher->half_line_width)),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A=20=09}=0A=20=20=20=20=20=20=20else=0A=20=09{=0A-=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.other_axis_loc),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A-=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A+=09=20=20=
pl_fcont_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.other_axis_loc)=0A=20=09=09=20=20=20=20=20=20+=20=
(subsubtick_size=0A-=09=09=09=20+=20(subsubtick_size=20>=200.0=20=0A+=09=09=
=09=20+=20(subsubtick_size=20>=200.0=0A=20=09=09=09=20=20=20=20?=20=
multigrapher->half_line_width=0A=20=09=09=09=20=20=20=20:=20=
-multigrapher->half_line_width)),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A@@=20-2199,26=20+2199,26=20@@=20plot_ordinate_log_subsubtick=20=
(Multigrapher=20*multigrapher,=20double=20yval)=0A=20=20=20=20=20case=20=
AXES_AT_ORIGIN:=0A=20=20=20=20=20=20=20if=20=
(!multigrapher->x_axis.switch_axis_end)=0A=20=09{=0A-=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.other_axis_loc),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A-=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A+=09=20=20=
pl_fcont_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.other_axis_loc)=0A=20=09=09=20=20=20=20=20=20+=20=
(subsubtick_size=0A-=09=09=09=20+=20(subsubtick_size=20>=200.0=20=0A+=09=09=
=09=20+=20(subsubtick_size=20>=200.0=0A=20=09=09=09=20=20=20=20?=20=
multigrapher->half_line_width=0A=20=09=09=09=20=20=20=20:=20=
-multigrapher->half_line_width)),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A=20=09}=0A=20=20=20=20=20=20=20else=0A=20=09{=0A-=09=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc),=0A=20=09=09=20=20=20=20=20=20=
YV=20(yval));=0A-=09=20=20pl_fcont_r=20(multigrapher->plotter,=20=0A+=09=20=
=20pl_fcont_r=20(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XN=20=
(multigrapher->x_axis.alt_other_axis_loc)=0A=20=09=09=20=20=20=20=20=20-=20=
(subsubtick_size=0A-=09=09=09=20+=20(multigrapher->tick_size=20>=200.0=20=
=0A+=09=09=09=20+=20(multigrapher->tick_size=20>=200.0=0A=20=09=09=09=20=20=
=20=20?=20multigrapher->half_line_width=0A=20=09=09=09=20=20=20=20:=20=
-multigrapher->half_line_width)),=0A=20=09=09=20=20=20=20=20=20YV=20=
(yval));=0A@@=20-2246,9=20+2246,9=20@@=20set_line_style=20(Multigrapher=20=
*multigrapher,=20int=20style,=20const=20char=20*line_color,=0A=20=09=20=20=
int=20i;=0A=20=0A=20=09=20=20i=20=3D=20(style=20-=201)=20%=20=
NO_OF_LINEMODES;=0A-=09=20=20pl_linemod_r=20(multigrapher->plotter,=20=
linemodes[i]);=20=20=20=20=20=20=0A+=09=20=20pl_linemod_r=20=
(multigrapher->plotter,=20linemodes[i]);=0A=20=09}=0A-=20=20=20=20=20=20=0A=
+=0A=20=20=20=20=20=20=20/*=20use=20same=20color=20as=20used=20for=20=
plot=20frame=20*/=0A=20=20=20=20=20=20=20pl_colorname_r=20=
(multigrapher->plotter,=20multigrapher->frame_color);=0A=20=20=20=20=20}=0A=
@@=20-2260,7=20+2260,7=20@@=20set_line_style=20(Multigrapher=20=
*multigrapher,=20int=20style,=20const=20char=20*line_color,=0A=20=09{=0A=20=
=09=20=20i=20=3D=20((style=20-=201)=20/=20NO_OF_LINEMODES)=20%=20=
NO_OF_LINEMODES;=0A=20=09=20=20j=20=3D=20(style=20-=201)=20%=20=
NO_OF_LINEMODES;=0A-=09=20=20pl_linemod_r=20(multigrapher->plotter,=20=
linemodes[i]);=20=20=20=20=20=20=20=20=20=20=20=20=0A+=09=20=20=
pl_linemod_r=20(multigrapher->plotter,=20linemodes[i]);=0A=20=09}=0A=20=0A=
=20=20=20=20=20=20=20else=20if=20(style=20=3D=3D=200)=09/*=20use=20first=20=
color,=20as=20if=20-m=201=20was=20spec'd=20*/=0A@@=20-2293,7=20+2293,7=20=
@@=20plot_point_array=20(Multigrapher=20*multigrapher,=20const=20Point=20=
*p,=20int=20length)=0A=20void=0A=20plot_legend=20(Multigrapher=20=
*multigrapher,=20Legend=20*legends,=20int=20length,=20double=20posy,=20=
double=20font_size)=0A=20{=0A-=20=20pl_savestate_r=20=
(multigrapher->plotter);=20=0A+=20=20pl_savestate_r=20=
(multigrapher->plotter);=0A=20=20=20pl_fontname_r=20=
(multigrapher->plotter,=20multigrapher->x_axis.font_name);=0A=20=20=20=
font_size=20=3D=20pl_ffontsize_r=20(multigrapher->plotter,=20=
SS(font_size));=0A=20=20=20double=20legend_width=20=3D=200.;=0A@@=20=
-2313,7=20+2313,7=20@@=20plot_legend=20(Multigrapher=20*multigrapher,=20=
Legend=20*legends,=20int=20length,=20double=20pos=0A=20=0A=20=20=20=
pl_savestate_r=20(multigrapher->plotter);=0A=20=20=20/*=20use=20=
user-specified=20background=20color=20(if=20any)=20instead=20of=20white=20=
*/=0A-=20=20if=20(pl_havecap_r=20(multigrapher->plotter,=20=
"SETTABLE_BACKGROUND")=20!=3D=200=20=0A+=20=20if=20(pl_havecap_r=20=
(multigrapher->plotter,=20"SETTABLE_BACKGROUND")=20!=3D=200=0A=20=20=20=20=
=20=20=20&&=20multigrapher->bg_color)=0A=20=20=20=20=20pl_colorname_r=20=
(multigrapher->plotter,=20multigrapher->bg_color);=0A=20=20=20else=0A@@=20=
-2326,7=20+2326,7=20@@=20plot_legend=20(Multigrapher=20*multigrapher,=20=
Legend=20*legends,=20int=20length,=20double=20pos=0A=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20x=20+=20legend_width=20+=20font_size*0.25,=0A=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20y=20+=20font_size*0.5);=0A=20=20=20=
pl_restorestate_r=20(multigrapher->plotter);=0A-=20=20=0A+=0A=20=20=20=
for=20(i=3D0;=20i!=3Dlength;=20++i)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=
=20Point=20*p=20=3D=20&(legends[i].point);=0A@@=20-2371,7=20+2371,7=20@@=20=
plot_legend=20(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20=
length,=20double=20pos=0A=20=20=20=20=20=20=20pl_colorname_r=20=
(multigrapher->plotter,=20"black");=0A=20=20=20=20=20=20=20pl_alabel_r=20=
(multigrapher->plotter,=20'l',=20'c',=20legends[i].label);=0A=20=20=20=20=
=20}=0A-=20=20pl_restorestate_r=20(multigrapher->plotter);=20=0A+=20=20=
pl_restorestate_r=20(multigrapher->plotter);=0A=20}=0A=20=0A=20/*=20=
plot_point()=20plots=20a=20single=20point,=20including=20the=20=
appropriate=20symbol=20and=0A@@=20-2398,14=20+2398,14=20@@=20plot_point=20=
(Multigrapher=20*multigrapher,=20const=20Point=20*point)=0A=20=20=20if=20=
(!(point->pendown)=20||=20multigrapher->first_point_of_polyline)=0A=20=20=
=20=20=20{=0A=20=20=20=20=20=20=20int=20intfill;=0A-=20=20=20=20=20=20=0A=
+=0A=20=20=20=20=20=20=20set_line_style=20(multigrapher,=20=
point->linemode,=20point->line_color,=0A=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20point->use_color);=0A=20=0A=20=20=20=20=
=20=20=20/*=20N.B.=20linewidth=20<=200.0=20means=20use=20libplot=20=
default=20*/=0A-=20=20=20=20=20=20pl_flinewidth_r=20=
(multigrapher->plotter,=20=0A+=20=20=20=20=20=20pl_flinewidth_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20=20=
point->line_width=20*=20(double)PLOT_SIZE);=0A-=20=20=20=20=20=20=0A+=0A=20=
=20=20=20=20=20=20if=20(point->fill_fraction=20<=200.0)=0A=20=09intfill=20=
=3D=200;=09=09/*=20transparent=20*/=0A=20=20=20=20=20=20=20else=09=09=09=
/*=20guaranteed=20to=20be=20<=3D=201.0=20*/=0A@@=20-2433,13=20+2433,13=20=
@@=20plot_point=20(Multigrapher=20*multigrapher,=20const=20Point=20=
*point)=0A=20=20=20multigrapher->oldpoint_y=20=3D=20point->y;=0A=20=0A=20=
=20=20/*=20apply=20Cohen-Sutherland=20clipper=20to=20new=20line=20=
segment=20*/=0A-=20=20clipval=20=3D=20clip_line=20(multigrapher,=20=0A+=20=
=20clipval=20=3D=20clip_line=20(multigrapher,=0A=20=09=09=20=20=20=20=20=20=
=20&local_x0,=20&local_y0,=20&local_x1,=20&local_y1);=0A=20=0A=20=20=20=
if=20(!(clipval=20&=20ACCEPTED))=09/*=20rejected=20in=20toto=20*/=0A=20=20=
=20=20=20{=0A-=20=20=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A=
-=09=09=20=20XV=20(point->x),=20YV=20(point->y));=20/*=20move=20with=20=
pen=20up=20*/=20=20=20=20=20=20=0A+=20=20=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A+=09=09=20=20XV=20(point->x),=20YV=20=
(point->y));=20/*=20move=20with=20pen=20up=20*/=0A=20=20=20=20=20=20=20=
multigrapher->first_point_of_polyline=20=3D=20false;=0A=20=20=20=20=20=20=
=20return;=0A=20=20=20=20=20}=0A@@=20-2457,10=20+2457,10=20@@=20=
plot_point=20(Multigrapher=20*multigrapher,=20const=20Point=20*point)=0A=20=
=09=20=20=20=20/*=20line=20segment=20within=20box,=20so=20move=20with=20=
pen=20down=20*/=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20if=20=
(!multigrapher->first_point_of_polyline)=0A-=09=09pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=09pl_fcont_r=20(multigrapher->plotter,=0A=
=20=09=09=09=20=20=20=20XV=20(point->x),=20YV=20(point->y));=0A=20=09=20=20=
=20=20=20=20else=0A-=09=09pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=20=20=20=20XV=20=
(point->x),=20YV=20(point->y));=0A=20=09=20=20=20=20}=0A=20=09=20=20=
break;=0A@@=20-2469,7=20+2469,7=20@@=20plot_point=20(Multigrapher=20=
*multigrapher,=20const=20Point=20*point)=0A=20=09=20=20if=20((clipval=20=
&=20CLIPPED_FIRST)=20&&=20(clipval=20&=20CLIPPED_SECOND))=0A=20=09=20=20=20=
=20/*=20both=20OOB,=20so=20move=20with=20pen=20up=20*/=0A=20=09=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=20XV=20(point->x),=20YV=20=
(point->y));=0A-=09=20=20else=09=09=09=0A+=09=20=20else=0A=20=09=20=20=20=
=20/*=20at=20most=20one=20point=20is=20OOB=20*/=0A=20=09=20=20=20=20{=0A=20=
=09=20=20=20=20=20=20if=20(clipval=20&=20CLIPPED_FIRST)=20/*current=20=
pt.=20OOB,=20new=20pt.=20not=20OOB*/=0A@@=20-2477,13=20+2477,13=20@@=20=
plot_point=20(Multigrapher=20*multigrapher,=20const=20Point=20*point)=0A=20=
=09=09=20=20if=20(!multigrapher->first_point_of_polyline)=0A=20=09=09=20=20=
=20=20{=0A=20=09=09=20=20=20=20=20=20/*=20move=20to=20clipped=20current=20=
point,=20draw=20line=20segment=20*/=0A-=09=09=20=20=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=09=20=20XV=20=
(local_x0),=20YV=20(local_y0));=0A-=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=20=20XV=20(point->x),=20YV=20=
(point->y));=0A=20=09=09=20=20=20=20}=0A=20=09=09=20=20else=0A-=09=09=20=20=
=20=20pl_fmove_r=20(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=0A=20=09=09=09=09XV=20(point->x),=20=
YV=20(point->y));=0A=20=09=09}=0A=20=09=20=20=20=20=20=20else=09=09/*=20=
current=20point=20not=20OOB,=20new=20point=20OOB=20*/=0A@@=20-2491,12=20=
+2491,12=20@@=20plot_point=20(Multigrapher=20*multigrapher,=20const=20=
Point=20*point)=0A=20=09=09=20=20if=20=
(!multigrapher->first_point_of_polyline)=0A=20=09=09=20=20=20=20{=0A=20=09=
=09=20=20=20=20=20=20/*=20draw=20line=20segment=20to=20clipped=20new=20=
point=20*/=0A-=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20=20=20=20=20pl_fcont_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09=20=20XV=20(local_x1),=20YV=20=
(local_y1));=0A=20=09=09=20=20=20=20=20=20/*=20N.B.=20lib's=20notion=20=
of=20position=20now=20differs=20from=20ours=20*/=0A=20=09=09=20=20=20=20=
}=0A=20=09=09=20=20else=0A-=09=09=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20=0A+=09=09=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=0A=20=09=09=09=09XV=20(point->x),=20YV=20=
(point->y));=0A=20=09=09}=0A=20=09=20=20=20=20}=0A@@=20-2505,21=20=
+2505,21=20@@=20plot_point=20(Multigrapher=20*multigrapher,=20const=20=
Point=20*point)=0A=20=09=20=20if=20((clipval=20&=20CLIPPED_FIRST)=20||=20=
multigrapher->first_point_of_polyline)=0A=20=09=20=20=20=20/*=20move=20=
to=20clipped=20current=20point=20if=20necc.=20*/=0A=20=09=20=20=20=20=
pl_fmove_r=20(multigrapher->plotter,=20XV=20(local_x0),=20YV=20=
(local_y0));=0A-=09=20=20=0A+=0A=20=09=20=20/*=20draw=20line=20segment=20=
to=20clipped=20new=20point=20*/=0A=20=09=20=20pl_fcont_r=20=
(multigrapher->plotter,=20XV=20(local_x1),=20YV=20(local_y1));=0A-=09=20=20=
=0A+=0A=20=09=20=20if=20(clipval=20&=20CLIPPED_SECOND)=0A=20=09=20=20=20=20=
/*=20new=20point=20OOB,=20so=20move=20to=20new=20point,=20breaking=20=
polyline=20*/=0A-=09=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=20=
XV=20(point->x),=20YV=20(point->y));=20=0A+=09=20=20=20=20pl_fmove_r=20=
(multigrapher->plotter,=20XV=20(point->x),=20YV=20(point->y));=0A=20=09=20=
=20break;=0A=20=09}=0A=20=20=20=20=20}=0A=20=20=20else=09=09=09=09/*=20=
linemode=3D0=20or=20pen=20up;=20so=20move=20with=20pen=20up=20*/=0A-=20=20=
=20=20pl_fmove_r=20(multigrapher->plotter,=20XV=20(point->x),=20YV=20=
(point->y));=20=0A+=20=20=20=20pl_fmove_r=20(multigrapher->plotter,=20XV=20=
(point->x),=20YV=20(point->y));=0A=20=0A=20=20=20=
multigrapher->first_point_of_polyline=20=3D=20false;=0A-=20=20=0A+=0A=20=20=
=20/*=20if=20target=20point=20is=20OOB,=20return=20without=20plotting=20=
symbol=20or=20errorbar=20*/=0A=20=20=20if=20(clipval=20&=20=
CLIPPED_SECOND)=0A=20=20=20=20=20return;=0A@@=20-2532,7=20+2532,7=20@@=20=
plot_point=20(Multigrapher=20*multigrapher,=20const=20Point=20*point)=0A=20=
=20=20=20=20=20=20pl_savestate_r=20(multigrapher->plotter);=0A=20=20=20=20=
=20=20=20plot_errorbar=20(multigrapher,=20point);=0A=20=20=20=20=20=20=20=
pl_fontname_r=20(multigrapher->plotter,=20point->symbol_font_name);=0A-=20=
=20=20=20=20=20pl_fmarker_r=20(multigrapher->plotter,=20XV(point->x),=20=
YV(point->y),=20=0A+=20=20=20=20=20=20pl_fmarker_r=20=
(multigrapher->plotter,=20XV(point->x),=20YV(point->y),=0A=20=09=09=20=20=
=20=20point->symbol,=20SS(point->symbol_size));=0A=20=20=20=20=20=20=20=
pl_restorestate_r=20(multigrapher->plotter);=0A=20=20=20=20=20}=0A@@=20=
-2544,7=20+2544,7=20@@=20plot_point=20(Multigrapher=20*multigrapher,=20=
const=20Point=20*point)=0A=20=09{=0A=20=09=20=20pl_savestate_r=20=
(multigrapher->plotter);=0A=20=09=20=20plot_errorbar=20(multigrapher,=20=
point);=20/*=20may=20or=20may=20not=20have=20one=20*/=0A-=09=20=20=
pl_fmarker_r=20(multigrapher->plotter,=20XV(point->x),=20YV(point->y),=20=
=0A+=09=20=20pl_fmarker_r=20(multigrapher->plotter,=20XV(point->x),=20=
YV(point->y),=0A=20=09=09=09point->symbol,=20SS(point->symbol_size));=0A=20=
=09=20=20pl_restorestate_r=20(multigrapher->plotter);=0A=20=09}=0A@@=20=
-2552,16=20+2552,16=20@@=20plot_point=20(Multigrapher=20*multigrapher,=20=
const=20Point=20*point)=0A=20=09/*=20not=20drawing=20a=20line,=20so=20=
just=20place=20the=20marker=20*/=0A=20=09{=0A=20=09=20=20plot_errorbar=20=
(multigrapher,=20point);=0A-=09=20=20pl_fmarker_r=20=
(multigrapher->plotter,=20XV(point->x),=20YV(point->y),=20=0A+=09=20=20=
pl_fmarker_r=20(multigrapher->plotter,=20XV(point->x),=20YV(point->y),=0A=
=20=09=09=09point->symbol,=20SS(point->symbol_size));=0A=20=09}=0A=20=20=20=
=20=20}=0A-=20=20=0A+=0A=20=20=20else=20if=20(point->symbol=20=3D=3D=200=20=
&&=20point->linemode=20=3D=3D=200)=0A=20=20=20=20=20/*=20backward=20=
compatibility:=20-m=200=20(even=20with=20-S=200)=20plots=20a=20dot=20*/=0A=
=20=20=20=20=20{=0A=20=20=20=20=20=20=20plot_errorbar=20(multigrapher,=20=
point);=0A-=20=20=20=20=20=20pl_fmarker_r=20(multigrapher->plotter,=20=0A=
+=20=20=20=20=20=20pl_fmarker_r=20(multigrapher->plotter,=0A=20=09=09=20=20=
=20=20XV(point->x),=20YV(point->y),=20M_DOT,=20SS(point->symbol_size));=0A=
=20=20=20=20=20}=0A=20=0A@@=20-2586,10=20+2586,10=20@@=20clip_line=20=
(Multigrapher=20*multigrapher,=20double=20*x0_p,=20double=20*y0_p,=20=
double=20*x1_p,=0A=20=20=20double=20x1=20=3D=20*x1_p;=0A=20=20=20double=20=
y1=20=3D=20*y1_p;=0A=20=20=20outcode=20outcode0=20=3D=20compute_outcode=20=
(multigrapher,=20x0,=20y0,=20true);=0A-=20=20outcode=20outcode1=20=3D=20=
compute_outcode=20(multigrapher,=20x1,=20y1,=20true);=20=20=0A+=20=20=
outcode=20outcode1=20=3D=20compute_outcode=20(multigrapher,=20x1,=20y1,=20=
true);=0A=20=20=20bool=20accepted;=0A=20=20=20int=20clipval=20=3D=200;=0A=
-=20=20=0A+=0A=20=20=20for=20(=20;=20;=20)=0A=20=20=20=20=20{=0A=20=20=20=
=20=20=20=20if=20(!(outcode0=20|=20outcode1))=20/*=20accept=20*/=0A@@=20=
-2607,8=20+2607,8=20@@=20clip_line=20(Multigrapher=20*multigrapher,=20=
double=20*x0_p,=20double=20*y0_p,=20double=20*x1_p,=0A=20=09=20=20/*=20=
at=20least=20one=20endpoint=20is=20outside;=20choose=20one=20that=20is=20=
*/=0A=20=09=20=20outcode=20outcode_out=20=3D=20(outcode0=20?=20outcode0=20=
:=20outcode1);=0A=20=09=20=20double=20x,=20y;=09=09/*=20intersection=20=
with=20clip=20edge=20*/=0A-=09=20=20=0A-=09=20=20if=20(outcode_out=20&=20=
RIGHT)=09=20=20=0A+=0A+=09=20=20if=20(outcode_out=20&=20RIGHT)=0A=20=09=20=
=20=20=20{=0A=20=09=20=20=20=20=20=20x=20=3D=20=
multigrapher->x_trans.input_max;=0A=20=09=20=20=20=20=20=20y=20=3D=20y0=20=
+=20(y1=20-=20y0)=20*=20(multigrapher->x_trans.input_max=20-=20x0)=20/=20=
(x1=20-=20x0);=0A@@=20-2628,7=20+2628,7=20@@=20clip_line=20(Multigrapher=20=
*multigrapher,=20double=20*x0_p,=20double=20*y0_p,=20double=20*x1_p,=0A=20=
=09=20=20=20=20=20=20x=20=3D=20x0=20+=20(x1=20-=20x0)=20*=20=
(multigrapher->y_trans.input_min=20-=20y0)=20/=20(y1=20-=20y0);=0A=20=09=20=
=20=20=20=20=20y=20=3D=20multigrapher->y_trans.input_min;=0A=20=09=20=20=20=
=20}=0A-=09=20=20=0A+=0A=20=09=20=20if=20(outcode_out=20=3D=3D=20=
outcode0)=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20x0=20=3D=20x;=0A=
@@=20-2637,7=20+2637,7=20@@=20clip_line=20(Multigrapher=20*multigrapher,=20=
double=20*x0_p,=20double=20*y0_p,=20double=20*x1_p,=0A=20=09=20=20=20=20=
}=0A=20=09=20=20else=0A=20=09=20=20=20=20{=0A-=09=20=20=20=20=20=20x1=20=
=3D=20x;=20=0A+=09=20=20=20=20=20=20x1=20=3D=20x;=0A=20=09=20=20=20=20=20=
=20y1=20=3D=20y;=0A=20=09=20=20=20=20=20=20outcode1=20=3D=20=
compute_outcode=20(multigrapher,=20x1,=20y1,=20true);=0A=20=09=20=20=20=20=
}=0A@@=20-2661,7=20+2661,7=20@@=20clip_line=20(Multigrapher=20=
*multigrapher,=20double=20*x0_p,=20double=20*y0_p,=20double=20*x1_p,=0A=20=
}=0A=20=0A=20/*=20Compute=20usual=20Cohen-Sutherland=20outcode,=20=
containing=20bitfields=20LEFT,=0A-=20=20=20RIGHT,=20BOTTOM,=20TOP.=20=20=
Nine=20possibilities:=20=0A+=20=20=20RIGHT,=20BOTTOM,=20TOP.=20=20Nine=20=
possibilities:=0A=20=20=20=20{LEFT,=20interior,=20RIGHT}=20x=20{BOTTOM,=20=
interior,=20TOP}.=0A=20=20=20=20The=20`tolerant'=20flag=20specifies=20=
how=20we=20handle=20points=20on=20the=20boundary.=20*/=0A=20static=20=
outcode=0A@@=20-2669,9=20+2669,9=20@@=20compute_outcode=20(Multigrapher=20=
*multigrapher,=20double=20x,=20double=20y,=20bool=20tolerant)=0A=20{=0A=20=
=20=20outcode=20code=20=3D=200;=0A=20=20=20double=20xfuzz=20=3D=20FUZZ=20=
*=20multigrapher->x_trans.input_range;=0A-=20=20double=20yfuzz=20=3D=20=
FUZZ=20*=20multigrapher->y_trans.input_range;=20=20=0A+=20=20double=20=
yfuzz=20=3D=20FUZZ=20*=20multigrapher->y_trans.input_range;=0A=20=20=20=
int=20sign=20=3D=20(tolerant=20=3D=3D=20true=20?=201=20:=20-1);=0A-=20=20=
=0A+=0A=20=20=20if=20(x=20>=20multigrapher->x_trans.input_max=20+=20sign=20=
*=20xfuzz)=0A=20=20=20=20=20code=20|=3D=20RIGHT;=0A=20=20=20else=20if=20=
(x=20<=20multigrapher->x_trans.input_min=20-=20sign=20*=20xfuzz)=0A@@=20=
-2680,7=20+2680,7=20@@=20compute_outcode=20(Multigrapher=20=
*multigrapher,=20double=20x,=20double=20y,=20bool=20tolerant)=0A=20=20=20=
=20=20code=20|=3D=20TOP;=0A=20=20=20else=20if=20(y=20<=20=
multigrapher->y_trans.input_min=20-=20sign=20*=20yfuzz)=0A=20=20=20=20=20=
code=20|=3D=20BOTTOM;=0A-=20=20=0A+=0A=20=20=20return=20code;=0A=20}=0A=20=
=0A@@=20-2689,15=20+2689,15=20@@=20transpose_portmanteau=20(int=20*val)=0A=
=20{=0A=20=20=20bool=20xtrue,=20ytrue;=0A=20=20=20int=20newval;=0A-=20=20=
=0A+=0A=20=20=20xtrue=20=3D=20((*val=20&=20X_AXIS)=20?=20true=20:=20=
false);=0A=20=20=20ytrue=20=3D=20((*val=20&=20Y_AXIS)=20?=20true=20:=20=
false);=0A-=20=20=0A+=0A=20=20=20newval=20=3D=20(xtrue=20?=20Y_AXIS=20:=20=
0)=20|=20(ytrue=20?=20X_AXIS=20:=200);=0A=20=20=20*val=20=3D=20newval;=0A=
=20}=0A=20=0A-static=20void=20=0A+static=20void=0A=20plot_errorbar=20=
(Multigrapher=20*multigrapher,=20const=20Point=20*p)=0A=20{=0A=20=20=20=
if=20(p->have_x_errorbar=20||=20p->have_y_errorbar)=0A@@=20-2705,26=20=
+2705,26=20@@=20plot_errorbar=20(Multigrapher=20*multigrapher,=20const=20=
Point=20*p)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20pl_savestate_r=20=
(multigrapher->plotter);=0A=20=20=20=20=20=20=20pl_linemod_r=20=
(multigrapher->plotter,=20"solid");=0A-=09=0A+=0A=20=20=20=20=20=20=20if=20=
(p->have_x_errorbar)=0A=20=09{=0A-=09=20=20pl_fline_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_fline_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV(p->xmin),=20=
YV(p->y)=20-=200.5=20*=20SS(p->symbol_size),=0A=20=09=09=20=20=20=20=20=20=
XV(p->xmin),=20YV(p->y)=20+=200.5=20*=20SS(p->symbol_size));=0A-=09=20=20=
pl_fline_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fline_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV(p->xmin),=20=
YV(p->y),=20XV(p->xmax),=20YV(p->y));=0A-=09=20=20pl_fline_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_fline_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV(p->xmax),=20=
YV(p->y)=20-=200.5=20*=20SS(p->symbol_size),=0A=20=09=09=20=20=20=20=20=20=
XV(p->xmax),=20YV(p->y)=20+=200.5=20*=20SS(p->symbol_size));=0A=20=09}=0A=
=20=20=20=20=20=20=20if=20(p->have_y_errorbar)=0A=20=09{=0A-=09=20=20=
pl_fline_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fline_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV(p->x)=20-=200.5=20=
*=20SS(p->symbol_size),=20YV(p->ymin),=0A=20=09=09=20=20=20=20=20=20=
XV(p->x)=20+=200.5=20*=20SS(p->symbol_size),=20YV(p->ymin));=0A-=09=20=20=
pl_fline_r=20(multigrapher->plotter,=20=0A+=09=20=20pl_fline_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV(p->x),=20=
YV(p->ymin),=20XV(p->x),=20YV(p->ymax));=0A-=09=20=20pl_fline_r=20=
(multigrapher->plotter,=20=0A+=09=20=20pl_fline_r=20=
(multigrapher->plotter,=0A=20=09=09=20=20=20=20=20=20XV(p->x)=20-=200.5=20=
*=20SS(p->symbol_size),=20YV(p->ymax),=0A=20=09=09=20=20=20=20=20=20=
XV(p->x)=20+=200.5=20*=20SS(p->symbol_size),=20YV(p->ymax));=0A=20=09}=0A=
@@=20-2746,3=20+2746,9=20@@=20end_polyline_and_flush=20(Multigrapher=20=
*multigrapher)=0A=20=20=20pl_flushpl_r=20(multigrapher->plotter);=0A=20=20=
=20multigrapher->first_point_of_polyline=20=3D=20true;=0A=20}=0A+=0A+/*=0A=
+=20=20Local=20Variables:=0A+=20=20c-file-style:=20"gnu"=0A+=20=20End:=0A=
+*/=0Adiff=20--git=20a/graph/reader.c=20b/graph/reader.c=0Aindex=20=
08f4699..35d1383=20100644=0A---=20a/graph/reader.c=0A+++=20=
b/graph/reader.c=0A@@=20-207,7=20+207,7=20@@=20delete_reader=20(Reader=20=
*reader)=0A=20=20=20=20type=20on=20a=20per-file=20basis.)=20=20*/=0A=20=0A=
=20/*=20ARGS:=20note=20that=20the=20final=20new_*=20args=20make=20up=20a=20=
mask=20*/=0A-void=20=0A+void=0A=20alter_reader_parameters=20(Reader=20=
*reader,=20FILE=20*input,=20data_type=20format_type,=20bool=20=
auto_abscissa,=20double=20delta_x,=20double=20abscissa,=20int=20symbol,=20=
double=20symbol_size,=20const=20char=20*symbol_font_name,=20const=20char=20=
*line_color,=20int=20linemode,=20double=20line_width,=20double=20=
fill_fraction,=20bool=20use_color,=20bool=20new_symbol,=20bool=20=
new_symbol_size,=20bool=20new_symbol_font_name,=20bool=20new_line_color,=20=
bool=20new_linemode,=20bool=20new_line_width,=20bool=20=
new_fill_fraction,=20bool=20new_use_color)=0A=20{=0A=20=20=20=
reader->need_break=20=3D=20true;=09/*=20force=20break=20in=20polyline=20=
*/=0A@@=20-259,7=20+259,7=20@@=20read_point=20(Reader=20*reader,=20Point=20=
*point)=0A=20=20=20point->use_color=20=3D=20reader->use_color;=0A=20=20=20=
point->have_x_errorbar=20=3D=20false;=20/*=20not=20supported=20yet=20*/=0A=
=20=20=20point->have_y_errorbar=20=3D=20(reader->format_type=20=3D=3D=20=
T_ASCII_ERRORBAR=20?=20true=20:=20false);=0A-=20=20=0A+=0A=20=20head:=0A=20=
=0A=20=20=20switch=20(reader->format_type)=0A@@=20-306,7=20+306,7=20@@=20=
read_point=20(Reader=20*reader,=20Point=20*point)=0A=20=09=20=20=20=20=20=
=20else=0A=20=09=09bad_point=20=3D=20true;=0A=20=09=20=20=20=20}=0A-=09=20=
=20=0A+=0A=20=09=20=20if=20(bad_point)=0A=20=09=20=20=20=20{=0A=20=09=20=20=
=20=20=20=20fprintf=20(stderr,=20"%s:=20the=20inappropriate=20point=20=
(%g,%g)=20is=20dropped,=20as=20this=20is=20a=20log=20plot\n",=0A@@=20=
-333,7=20+333,7=20@@=20read_point=20(Reader=20*reader,=20Point=20*point)=0A=
=20=09=20=20=20=20=20=20else=0A=20=09=09bad_point=20=3D=20true;=0A=20=09=20=
=20=20=20}=0A-=09=20=20=0A+=0A=20=09=20=20if=20(bad_point)=0A=20=09=20=20=
=20=20{=0A=20=09=20=20=20=20=20=20fprintf=20(stderr,=20"%s:=20the=20=
inappropriate=20point=20(%g,%g)=20is=20dropped,=20as=20this=20is=20a=20=
log=20plot\n",=0A@@=20-342,12=20+342,12=20@@=20read_point=20(Reader=20=
*reader,=20Point=20*point)=0A=20=09=20=20=20=20=20=20goto=20head;=09=09=
/*=20on=20to=20next=20point=20*/=0A=20=09=20=20=20=20}=0A=20=09}=0A-=20=20=
=20=20=20=20=0A+=0A=20=20=20=20=20=20=20if=20(reader->transpose_axes)=0A=20=
=09{=0A=20=09=20=20double=20tmp;=0A=20=09=20=20bool=20tmp_bool;=0A-=09=20=
=20=0A+=0A=20=09=20=20tmp=20=3D=20point->x;=0A=20=09=20=20point->x=20=3D=20=
point->y;=0A=20=09=20=20point->y=20=3D=20tmp;=0A@@=20-361,13=20+361,13=20=
@@=20read_point=20(Reader=20*reader,=20Point=20*point)=0A=20=09=20=20=
point->have_x_errorbar=20=3D=20point->have_y_errorbar;=0A=20=09=20=20=
point->have_y_errorbar=20=3D=20tmp_bool;=0A=20=09}=0A-=20=20=20=20=20=20=0A=
+=0A=20=20=20=20=20=20=20/*=20we=20have=20a=20point,=20but=20we=20may=20=
need=20to=20break=20the=20polyline=20before=20it=20*/=0A=20=20=20=20=20=20=
=20if=20(reader->need_break)=0A=20=09point->pendown=20=3D=20false;=0A=20=20=
=20=20=20=20=20else=0A=20=09point->pendown=20=3D=20true;=0A-=20=20=20=20=20=
=20=0A+=0A=20=20=20=20=20=20=20/*=20reset=20break-polyline=20flag=20*/=0A=
=20=20=20=20=20=20=20reader->need_break=20=3D=20false;=0A=20=20=20=20=20=
}=0A@@=20-398,8=20+398,8=20@@=20read_point_ascii=20(Reader=20*reader,=20=
Point=20*point)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20int=20=
new_symbol,=20new_linemode;=0A=20=20=20=20=20=20=20int=20items_read;=0A-=20=
=20=20=20=20=20=0A-=20=20=20=20=20=20items_read=20=3D=20fscanf=20(input,=20=
=0A+=0A+=20=20=20=20=20=20items_read=20=3D=20fscanf=20(input,=0A=20=09=09=
=09=20=20=20"#=20m=20=3D=20%d,=20S=20=3D=20%d",=20&new_linemode,=20=
&new_symbol);=0A=20=20=20=20=20=20=20if=20(items_read=20=3D=3D=202)=09/*=20=
insist=20on=20matching=20both=20*/=0A=20=09{=0A@@=20-410,8=20+410,8=20@@=20=
read_point_ascii=20(Reader=20*reader,=20Point=20*point)=0A=20=20=20=20=20=
=20=20else=09=09=09/*=20unknown=20comment=20line,=20ignore=20it=20*/=0A=20=
=09{=0A=20=09=20=20char=20c;=0A-=09=20=20=0A-=09=20=20do=20=0A+=0A+=09=20=
=20do=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20items_read=20=3D=20=
fread=20(&c,=20sizeof=20(c),=201,=20input);=0A=20=09=20=20=20=20=20=20if=20=
(items_read=20<=3D=200)=0A@@=20-439,7=20+439,7=20@@=20read_point_ascii=20=
(Reader=20*reader,=20Point=20*point)=0A=20=20=20items_read=20=3D=20=
fscanf=20(input,=20"%lf",=20&(point->y));=0A=20=20=20if=20(items_read=20=
=3D=3D=201)=0A=20=20=20=20=20return=20IN_PROGRESS;=09/*=20got=20a=20pair=20=
of=20floats=20*/=0A-=20=20else=20=0A+=20=20else=0A=20=20=20=20=20{=0A=20=20=
=20=20=20=20=20if=20(!reader->auto_abscissa)=0A=20=09fprintf=20(stderr,=20=
"%s:=20an=20input=20file=20terminated=20prematurely\n",=20progname);=0A=
@@=20-471,8=20+471,8=20@@=20read_point_ascii_errorbar=20(Reader=20=
*reader,=20Point=20*point)=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20int=20=
new_symbol,=20new_linemode;=0A=20=20=20=20=20=20=20int=20items_read;=0A-=20=
=20=20=20=20=20=0A-=20=20=20=20=20=20items_read=20=3D=20fscanf=20(input,=20=
=0A+=0A+=20=20=20=20=20=20items_read=20=3D=20fscanf=20(input,=0A=20=09=09=
=09=20=20=20"#=20m=20=3D=20%d,=20S=20=3D=20%d",=20&new_linemode,=20=
&new_symbol);=0A=20=20=20=20=20=20=20if=20(items_read=20=3D=3D=202)=09/*=20=
insist=20on=20matching=20both=20*/=0A=20=09{=0A@@=20-483,8=20+483,8=20@@=20=
read_point_ascii_errorbar=20(Reader=20*reader,=20Point=20*point)=0A=20=20=
=20=20=20=20=20else=09=09=09/*=20unknown=20comment=20line,=20ignore=20it=20=
*/=0A=20=09{=0A=20=09=20=20char=20c;=0A-=09=20=20=0A-=09=20=20do=20=0A+=0A=
+=09=20=20do=0A=20=09=20=20=20=20{=0A=20=09=20=20=20=20=20=20items_read=20=
=3D=20fread=20(&c,=20sizeof=20(c),=201,=20input);=0A=20=09=20=20=20=20=20=
=20if=20(items_read=20<=3D=200)=0A@@=20-540,7=20+540,7=20@@=20=
read_point_binary=20(Reader=20*reader,=20Point=20*point)=0A=20=20=20int=20=
items_read;=0A=20=20=20data_type=20format_type=20=3D=20=
reader->format_type;=0A=20=20=20FILE=20*input=20=3D=20reader->input;=0A-=20=
=20=0A+=0A=20=20=20/*=20read=20coordinate(s)=20*/=0A=20=20=20if=20=
(reader->auto_abscissa)=0A=20=20=20=20=20{=0A@@=20-553,14=20+553,14=20@@=20=
read_point_binary=20(Reader=20*reader,=20Point=20*point)=0A=20=09{=0A=20=09=
case=20T_DOUBLE:=0A=20=09default:=0A-=09=20=20items_read=20=3D=20=0A+=09=20=
=20items_read=20=3D=0A=20=09=20=20=20=20fread=20((void=20*)=20=
&(point->x),=20sizeof=20(double),=201,=20input);=0A=20=09=20=20break;=0A=20=
=09case=20T_SINGLE:=0A=20=09=20=20{=0A=20=09=20=20=20=20float=20fx;=0A-=09=
=20=20=20=20=0A-=09=20=20=20=20items_read=20=3D=20=0A+=0A+=09=20=20=20=20=
items_read=20=3D=0A=20=09=20=20=20=20=20=20fread=20((void=20*)=20&fx,=20=
sizeof=20(fx),=201,=20input);=0A=20=09=20=20=20=20point->x=20=3D=20fx;=0A=
=20=09=20=20}=0A@@=20-568,8=20+568,8=20@@=20read_point_binary=20(Reader=20=
*reader,=20Point=20*point)=0A=20=09case=20T_INTEGER:=0A=20=09=20=20{=0A=20=
=09=20=20=20=20int=20ix;=0A-=09=20=20=20=20=0A-=09=20=20=20=20items_read=20=
=3D=20=0A+=0A+=09=20=20=20=20items_read=20=3D=0A=20=09=20=20=20=20=20=20=
fread=20((void=20*)=20&ix,=20sizeof=20(ix),=201,=20input);=0A=20=09=20=20=
=20=20point->x=20=3D=20ix;=0A=20=09=20=20}=0A@@=20-588,14=20+588,14=20@@=20=
read_point_binary=20(Reader=20*reader,=20Point=20*point)=0A=20=20=20=20=20=
{=0A=20=20=20=20=20case=20T_DOUBLE:=0A=20=20=20=20=20default:=0A-=20=20=20=
=20=20=20items_read=20=3D=20=0A+=20=20=20=20=20=20items_read=20=3D=0A=20=09=
fread=20((void=20*)=20&(point->y),=20sizeof=20(double),=201,=20input);=0A=
=20=20=20=20=20=20=20break;=0A=20=20=20=20=20case=20T_SINGLE:=0A=20=20=20=
=20=20=20=20{=0A=20=09float=20fy;=0A-=09=0A-=09items_read=20=3D=20=0A+=0A=
+=09items_read=20=3D=0A=20=09=20=20fread=20((void=20*)=20&fy,=20sizeof=20=
(fy),=201,=20input);=0A=20=09point->y=20=3D=20fy;=0A=20=20=20=20=20=20=20=
}=0A@@=20-603,8=20+603,8=20@@=20read_point_binary=20(Reader=20*reader,=20=
Point=20*point)=0A=20=20=20=20=20case=20T_INTEGER:=0A=20=20=20=20=20=20=20=
{=0A=20=09int=20iy;=0A-=09=0A-=09items_read=20=3D=20=0A+=0A+=09=
items_read=20=3D=0A=20=09=20=20fread=20((void=20*)=20&iy,=20sizeof=20=
(iy),=201,=20input);=0A=20=09point->y=20=3D=20iy;=0A=20=20=20=20=20=20=20=
}=0A@@=20-639,9=20+639,9=20@@=20read_point_gnuplot=20(Reader=20*reader,=20=
Point=20*point)=0A=20=20=20bool=20two_newlines;=0A=20=20=20double=20x,=20=
y;=0A=20=20=20FILE=20*input=20=3D=20reader->input;=0A-=20=20=0A+=0A=20=20=
head:=0A-=20=20=0A+=0A=20=20=20/*=20skip=20whitespace,=20up=20to=20but=20=
not=20including=202nd=20newline=20*/=0A=20=20=20two_newlines=20=3D=20=
skip_some_whitespace=20(input);=0A=20=20=20if=20(two_newlines)=0A@@=20=
-660,7=20+660,7=20@@=20read_point_gnuplot=20(Reader=20*reader,=20Point=20=
*point)=0A=20=20=20=20=20{=0A=20=20=20=20=20case=20'C':=09=09=09/*=20=
old-style=20`Curve'=20line,=20discard=20it=20*/=0A=20=20=20=20=20case=20=
'#':=09=09=09/*=20modern-style=20comment=20line,=20discard=20it=20*/=0A-=20=
=20=20=20=20=20do=20=0A+=20=20=20=20=20=20do=0A=20=09{=0A=20=09=20=20=
items_read=20=3D=20fread=20(&c,=20sizeof=20(c),=201,=20input);=0A=20=09=20=
=20if=20(items_read=20<=3D=200)=0A@@=20-673,8=20+673,8=20@@=20=
read_point_gnuplot=20(Reader=20*reader,=20Point=20*point)=0A=20=20=20=20=20=
case=20'i':=09=09=20=20=20=20/*=20old-style=20directive-first=20line=20=
(in-range)=20*/=0A=20=20=20=20=20case=20'o':=09=09=20=20=20=20/*=20=
old-style=20directive-first=20line=20(out-of-range)=20*/=0A=20=20=20=20=20=
=20=20/*=20read=20coordinates=20*/=0A-=20=20=20=20=20=20items_read=20=3D=20=
fscanf=20(input,=20=0A-=09=09=09=20=20=20"%c=20x=3D%lf=20y=3D%lf",=20=0A=
+=20=20=20=20=20=20items_read=20=3D=20fscanf=20(input,=0A+=09=09=09=20=20=
=20"%c=20x=3D%lf=20y=3D%lf",=0A=20=09=09=09=20=20=20&directive,=20&x,=20=
&y);=0A=20=20=20=20=20=20=20if=20(items_read=20=3D=3D=203)=09/*=20must=20=
match=20all=20*/=0A=20=09{=0A@@=20-684,42=20+684,42=20@@=20=
read_point_gnuplot=20(Reader=20*reader,=20Point=20*point)=0A=20=09}=0A=20=
=20=20=20=20=20=20else=0A=20=09{=0A-=09=20=20fprintf=20(stderr,=20=0A-=09=
=09=20=20=20"%s:=20an=20input=20file=20in=20gnuplot=20format=20could=20=
not=20be=20parsed\n",=20=0A+=09=20=20fprintf=20(stderr,=0A+=09=09=20=20=20=
"%s:=20an=20input=20file=20in=20gnuplot=20format=20could=20not=20be=20=
parsed\n",=0A=20=09=09=20=20=20progname);=0A=20=09=20=20return=20=
ENDED_BY_EOF;=20/*=20effectively=20*/=0A=20=09}=0A=20=0A=20=20=20=20=20=
case=20'u':=09=09=09/*=20old-style=20directive-first=20line=20*/=0A=20=20=
=20=20=20=20=20/*=20`undefined',=20next=20point=20begins=20new=20=
polyline=20(same=20line=20mode)=20*/=0A-=20=20=20=20=20=20do=20=0A+=20=20=
=20=20=20=20do=0A=20=09{=0A=20=09=20=20items_read=20=3D=20fread=20(&c,=20=
sizeof=20(c),=201,=20input);=0A=20=09=20=20if=20(items_read=20<=3D=200)=0A=
=20=09=20=20=20=20{=0A-=09=20=20=20=20=20=20fprintf=20(stderr,=20=0A-=09=09=
=20=20=20=20=20=20=20"%s:=20an=20input=20file=20in=20gnuplot=20format=20=
could=20not=20be=20parsed\n",=20=0A+=09=20=20=20=20=20=20fprintf=20=
(stderr,=0A+=09=09=20=20=20=20=20=20=20"%s:=20an=20input=20file=20in=20=
gnuplot=20format=20could=20not=20be=20parsed\n",=0A=20=09=09=20=20=20=20=20=
=20=20progname);=0A=20=09=20=20=20=20return=20ENDED_BY_EOF;=20/*=20=
effectively=20*/=0A=20=09=20=20=20=20}=0A=20=09}=0A=20=20=20=20=20=20=20=
while=20(c=20!=3D=20'\n');=0A=20=20=20=20=20=20=20/*=20break=20the=20=
polyline=20here=20in=20a=20soft=20way=20(i.e.=20don't=20bump=20line=20=
mode)=20*/=0A-=20=20=20=20=20=20reader->need_break=20=3D=20true;=09=0A+=20=
=20=20=20=20=20reader->need_break=20=3D=20true;=0A=20=20=20=20=20=20=20=
goto=20head;=0A=20=0A=20=20=20=20=20default:=09=09=09/*=20parse=20as=20a=20=
new-style=20directive-last=20line=20*/=0A-=20=20=20=20=20=20items_read=20=
=3D=20fscanf=20(input,=20=0A-=09=09=09=20=20=20"%lf=20%lf=20%c",=20=0A+=20=
=20=20=20=20=20items_read=20=3D=20fscanf=20(input,=0A+=09=09=09=20=20=20=
"%lf=20%lf=20%c",=0A=20=09=09=09=20=20=20&x,=20&y,=20&directive);=0A-=20=20=
=20=20=20=20if=20(items_read=20=3D=3D=203=20=0A+=20=20=20=20=20=20if=20=
(items_read=20=3D=3D=203=0A=20=09=20=20&&=20(directive=20=3D=3D=20'i'=20=
||=20directive=20=3D=3D=20'o'=20||=20directive=20=3D=3D=20'u'))=0A=20=09=
{=0A=20=09=20=20if=20(directive=20=3D=3D=20'u')=0A=20=09=20=20=20=20{=0A=20=
=09=20=20=20=20=20=20/*=20drop=20point;=20break=20the=20polyline=20here=20=
in=20a=20soft=20way=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20(i.e.=20don't=20bump=20line=20mode)=20*/=0A-=09=20=20=20=20=20=20=
reader->need_break=20=3D=20true;=09=0A+=09=20=20=20=20=20=20=
reader->need_break=20=3D=20true;=0A=20=09=20=20=20=20=20=20goto=20head;=0A=
=20=09=20=20=20=20}=0A=20=09=20=20else=0A@@=20-731,8=20+731,8=20@@=20=
read_point_gnuplot=20(Reader=20*reader,=20Point=20*point)=0A=20=09}=0A=20=
=20=20=20=20=20=20else=0A=20=09{=0A-=09=20=20fprintf=20(stderr,=20=0A-=09=
=09=20=20=20"%s:=20an=20input=20file=20in=20gnuplot=20format=20could=20=
not=20be=20parsed\n",=20=0A+=09=20=20fprintf=20(stderr,=0A+=09=09=20=20=20=
"%s:=20an=20input=20file=20in=20gnuplot=20format=20could=20not=20be=20=
parsed\n",=0A=20=09=09=20=20=20progname);=0A=20=09=20=20return=20=
ENDED_BY_EOF;=20/*=20effectively=20*/=0A=20=09}=0A@@=20-760,7=20+760,7=20=
@@=20read_dataset=20(Reader=20*reader,=20Point=20**p_addr,=20int=20=
*length,=20int=20*no_of_points)=0A=20=20=20=20=20=20=20if=20=
(*no_of_points=20>=3D=20*length)=0A=20=09{=0A=20=09=20=20int=20=
old_length,=20new_length;=0A-=09=20=20=0A+=0A=20=09=20=20old_length=20=3D=20=
*length;=0A=20=09=20=20new_length=20=3D=20=
NEW_POINT_ARRAY_LENGTH(old_length);=0A=20=09=20=20p=20=3D=20(Point=20=
*)xrealloc=20(p,=20new_length=20*=20sizeof=20(Point));=0A@@=20-846,20=20=
+846,20=20@@=20skip_some_whitespace=20(FILE=20*stream)=0A=20{=0A=20=20=20=
int=20lookahead;=0A=20=20=20int=20nlcount=20=3D=200;=0A-=20=20=0A-=20=20=
do=20=0A+=0A+=20=20do=0A=20=20=20=20=20{=0A=20=20=20=20=20=20=20=
lookahead=20=3D=20getc=20(stream);=0A=20=20=20=20=20=20=20if=20=
(lookahead=20=3D=3D=20(int)'\n')=0A=20=09=20=20nlcount++;=0A=20=20=20=20=20=
}=0A-=20=20while=20(lookahead=20!=3D=20EOF=20=0A+=20=20while=20=
(lookahead=20!=3D=20EOF=0A=20=09=20&&=20isspace((unsigned=20=
char)lookahead)=0A=20=09=20&&=20nlcount=20<=202);=0A=20=0A=20=20=20if=20=
(lookahead=20=3D=3D=20EOF)=0A=20=20=20=20=20return=20false;=0A-=20=20=0A=
+=0A=20=20=20ungetc=20(lookahead,=20stream);=0A=20=20=20return=20=
(nlcount=20=3D=3D=202=20?=20true=20:=20false);=0A=20}=0A@@=20-872,10=20=
+872,10=20@@=20static=20void=0A=20skip_all_whitespace=20(FILE=20*stream)=0A=
=20{=0A=20=20=20int=20lookahead;=0A-=20=20=0A-=20=20do=20=0A+=0A+=20=20=
do=0A=20=20=20=20=20lookahead=20=3D=20getc=20(stream);=0A-=20=20while=20=
(lookahead=20!=3D=20EOF=20=0A+=20=20while=20(lookahead=20!=3D=20EOF=0A=20=
=09=20&&=20isspace((unsigned=20char)lookahead));=0A=20=0A=20=20=20if=20=
(lookahead=20=3D=3D=20EOF)=0A@@=20-908,7=20+908,7=20@@=20=
read_and_plot_dataset=20(Reader=20*reader,=20Multigrapher=20=
*multigrapher)=0A=20=20=20=20=20=20=20else=0A=20=09plot_point=20=
(multigrapher,=20&point);=0A=20=20=20=20=20}=0A-=20=20=0A+=0A=20=20=20=
return=20status;=0A=20}=0A=20=0A@@=20-948,3=20+948,9=20@@=20=
read_and_plot_file=20(Reader=20*reader,=20Multigrapher=20*multigrapher)=0A=
=20=20=20=20=20}=0A=20=20=20while=20(status=20!=3D=20ENDED_BY_EOF);=0A=20=
}=0A+=0A+/*=0A+=20=20Local=20Variables:=0A+=20=20c-file-style:=20"gnu"=0A=
+=20=20End:=0A+*/=0A--=20=0A1.8.2.3=0A=0A=

--Apple-Mail-48-130869734
Content-Disposition: attachment;
	filename=0004-Do-not-drop-legend-in-filter-mode.patch
Content-Type: application/octet-stream;
	name="0004-Do-not-drop-legend-in-filter-mode.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20e6d8a5e5c40f3050d024f6b45d4180c920a52ae6=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Daniel=20Llorens=20<dll@jast.ch>=0ADate:=20=
Tue,=2025=20Jun=202013=2016:10:54=20+0200=0ASubject:=20[PATCH=204/6]=20=
Do=20not=20drop=20legend=20in=20filter=20mode=0A=0A*=20graph/graph.c=20=
(main):=20no=20need=20to=20predicate=20plot_legend=20call=20on=20=
positive=0A=20=20no_of_legends.=0A=20=20Pass=20legend=20vector=20to=20=
read_and_plot_file=20so=20it=20can=20be=20modified=20there,=20in=0A=20=20=
case=20there's=20more=20than=20one=20dataset=20/=20legend.=0A=20=20Do=20=
plot_legend=20after=20end=20of=20options=20either=20when=20filter=20is=20=
true=20or=20not,=0A=20=20instead=20of=20just=20when=20filter=20isn't=20=
true.=0A=0A*=20graph/plotter.c=20(plot_legend):=20deal=20with=20=
length=3D0.=20Remove=20debug=20output.=0A=0A*=20graph/reader.c=20=
(read_and_plot_dataset):=20return=20last=20Point=20used=20and=20number=0A=
=20=20of=20points=20read.=0A=20=20(read_and_plot_file):=20receive=20and=20=
update=20legend=20vector.=0A---=0A=20graph/extern.h=20=20=20|=20=205=20=
++++-=0A=20graph/graph.c=20=20=20=20|=2026=20++++++++++----------------=0A=
=20graph/linemode.c=20|=20=201=20+=0A=20graph/misc.c=20=20=20=20=20|=20=20=
1=20+=0A=20graph/plotter.c=20=20|=20=205=20++++-=0A=20graph/reader.c=20=20=
=20|=2030=20+++++++++++++++++++-----------=0A=206=20files=20changed,=20=
39=20insertions(+),=2029=20deletions(-)=0A=0Adiff=20--git=20=
a/graph/extern.h=20b/graph/extern.h=0Aindex=20b48bd9f..172ceaa=20100644=0A=
---=20a/graph/extern.h=0A+++=20b/graph/extern.h=0A@@=20-102,6=20+102,8=20=
@@=20typedef=20struct=0A=20}=20Legend;=0A=20=0A=20extern=20void=20=
plot_legend=20(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20=
length,=20double=20posy,=20double=20font_size);=0A+extern=20void=20=
add_legend=20(Legend=20**legends,=20int=20*length,=20const=20Point=20=
*point,=20char=20const=20*label);=0A+=0A=20=0A=20extern=20void=20=
end_polyline_and_flush=20(Multigrapher=20*multigrapher);=0A=20=0A@@=20=
-115,7=20+117,7=20@@=20extern=20void=20delete_reader=20(Reader=20=
*reader);=0A=20=0A=20extern=20void=20read_file=20(Reader=20*reader,=20=
Point=20**p,=20int=20*length,=20int=20*no_of_points);=0A=20=0A-extern=20=
void=20read_and_plot_file=20(Reader=20*reader,=20Multigrapher=20=
*multigrapher);=0A+extern=20void=20read_and_plot_file=20(Reader=20=
*reader,=20Multigrapher=20*multigrapher,=20int=20*no_of_points,=20bool=20=
*new_legend_label,=20Legend=20**legends,=20int=20*no_of_legends,=20char=20=
const=20*legend_label);=0A=20=0A=20extern=20void=20=
alter_reader_parameters=20(Reader=20*reader,=20FILE=20*input,=20=
data_type=20input_type,=20bool=20auto_abscissa,=20double=20delta_x,=20=
double=20abscissa,=20int=20symbol,=20double=20symbol_size,=20const=20=
char=20*symbol_font_name,=20const=20char=20*line_color,=20int=20=
linemode,=20double=20line_width,=20double=20fill_fraction,=20bool=20=
use_color,=20bool=20new_symbol,=20bool=20new_symbol_size,=20bool=20=
new_symbol_font_name,=20bool=20new_line_color,=20bool=20new_linemode,=20=
bool=20new_line_width,=20bool=20new_fill_fraction,=20bool=20=
new_use_color);=0A=20=0A@@=20-128,5=20+130,6=20@@=20extern=20void=20=
array_bounds=20(const=20Point=20*p,=20int=20length,=20bool=20=
transpose_axes,=20int=20c=0A=20/*=0A=20=20=20Local=20Variables:=0A=20=20=20=
c-file-style:=20"gnu"=0A+=20=20tab-width:=208=0A=20=20=20End:=0A=20*/=0A=
diff=20--git=20a/graph/graph.c=20b/graph/graph.c=0Aindex=20=
bb6f50a..9b66f5a=20100644=0A---=20a/graph/graph.c=0A+++=20=
b/graph/graph.c=0A@@=20-1112,8=20+1112,7=20@@=20main=20(int=20argc,=20=
char=20*argv[])=0A=20=0A=20=09=09=20=20/*=20plot=20the=20laboriously=20=
read-in=20array=20*/=0A=20=09=09=20=20plot_point_array=20(multigrapher,=20=
p,=20no_of_points);=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20if=20(no_of_legends>0)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20plot_legend=20(multigrapher,=20legends,=20no_of_legends,=20=
place_legend,=20legend_font_size);=20//Y=0A+=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20plot_legend=20(multigrapher,=20legends,=20=
no_of_legends,=20place_legend,=20legend_font_size);=0A=20=0A=20=09=09=20=20=
/*=20free=20points=20array=20*/=0A=20=09=09=20=20free=20(p);=0A@@=20=
-1376,12=20+1375,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=0A=20=
=09=20=20=20=20=20=20/*=20call=20read_and_plot_file()=20on=20the=20file;=20=
each=20dataset=20in=20the=0A=20=09=09=20file=20yields=20a=20polyline=20=
*/=0A-=09=20=20=20=20=20=20read_and_plot_file=20(reader,=20=
multigrapher);=0A-//=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20=
(new_legend_label=20&&=20no_of_points>old_no_of_points)=20//Y=0A-//=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20{=0A-//=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20add_legend(&legends,=20=
&no_of_legends,=20&p[no_of_points-1],=20legend_label);=0A-//=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20}=0A-=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20new_legend_label=20=3D=20false;=0A+=09=20=20=20=20=20=20=
read_and_plot_file=20(reader,=20multigrapher,=20&no_of_points,=20=
&new_legend_label,=20&legends,=20&no_of_legends,=20legend_label);=0A=20=0A=
=20=09=20=20=20=20}=20/*=20end=20of=20filter=20case=20*/=0A=20=0A@@=20=
-1441,13=20+1435,11=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09=
=09}=0A=20=0A=20=09=20=20=20=20=20=20/*=20add=20points=20to=20points=20=
array=20by=20calling=20read_file()=20on=20file=20*/=0A-=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20int=20old_no_of_points=20=3D=20no_of_points;=0A+=20=
=20=20=20=20=20=20=20=20=20int=20old_no_of_points=20=3D=20no_of_points;=0A=
=20=09=20=20=20=20=20=20read_file=20(reader,=20&p,=20&points_length,=20=
&no_of_points);=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20if=20=
(new_legend_label=20&&=20no_of_points>old_no_of_points)=20//Y=0A-=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20{=0A-=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20add_legend(&legends,=20&no_of_legends,=20=
&p[no_of_points-1],=20legend_label);=0A-=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20}=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
new_legend_label=20=3D=20false;=0A+=20=20=20=20=20=20=20=20=20=20if=20=
(new_legend_label=20&&=20no_of_points>old_no_of_points)=0A+=20=20=20=20=20=
=20=20=20=20=20=20=20add_legend=20(&legends,=20&no_of_legends,=20=
&p[no_of_points-1],=20legend_label);=0A+=20=20=20=20=20=20=20=20=20=20=
new_legend_label=20=3D=20false;=0A=20=0A=20=09=20=20=20=20}=20/*=20end=20=
of=20not-filter=20case=20*/=0A=20=0A@@=20-1586,8=20+1578,6=20@@=20main=20=
(int=20argc,=20char=20*argv[])=0A=20=0A=20=09=20=20/*=20plot=20the=20=
laboriously=20read-in=20array=20*/=0A=20=09=20=20plot_point_array=20=
(multigrapher,=20p,=20no_of_points);=0A-=20=20=20=20=20=20=20=20=20=20if=20=
(no_of_legends>0)=0A-=20=20=20=20=20=20=20=20=20=20=20=20plot_legend=20=
(multigrapher,=20legends,=20no_of_legends,=20place_legend,=20=
legend_font_size);=20//Y=0A=20=0A=20=09=20=20/*=20free=20points=20array=20=
*/=0A=20=09=20=20free=20(p);=0A@@=20-1595,6=20+1585,9=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=0A=20=09}=20/*=20end=20of=20not-filter=20=
case=20*/=0A=20=0A+=20=20=20=20=20=20/*=20plot=20accumulated=20legend=20=
*/=0A+=20=20=20=20=20=20plot_legend=20(multigrapher,=20legends,=20=
no_of_legends,=20place_legend,=20legend_font_size);=0A+=0A=20=20=20=20=20=
=20=20/*=20draw=20graph=20frame=20on=20top=20of=20graph,=20if=20user=20=
requested=20it=20*/=0A=20=20=20=20=20=20=20if=20(frame_on_top)=0A=20=09{=0A=
@@=20-1703,5=20+1696,6=20@@=20parse_pen_string=20(const=20char=20*pen_s)=0A=
=20/*=0A=20=20=20Local=20Variables:=0A=20=20=20c-file-style:=20"gnu"=0A+=20=
=20tab-width:=208=0A=20=20=20End:=0A=20*/=0Adiff=20--git=20=
a/graph/linemode.c=20b/graph/linemode.c=0Aindex=206d59ee5..dac90ff=20=
100644=0A---=20a/graph/linemode.c=0A+++=20b/graph/linemode.c=0A@@=20=
-44,5=20+44,6=20@@=20const=20char=20*colorstyle[NO_OF_LINEMODES]=20=3D=0A=
=20/*=0A=20=20=20Local=20Variables:=0A=20=20=20c-file-style:=20"gnu"=0A+=20=
=20tab-width:=208=0A=20=20=20End:=0A=20*/=0Adiff=20--git=20=
a/graph/misc.c=20b/graph/misc.c=0Aindex=20d7e1663..5f98a83=20100644=0A=
---=20a/graph/misc.c=0A+++=20b/graph/misc.c=0A@@=20-371,5=20+371,6=20@@=20=
compute_outcode=20(double=20x,=20double=20y,=20double=20x_min_clip,=20=
double=20x_max_clip,=20doubl=0A=20/*=0A=20=20=20Local=20Variables:=0A=20=20=
=20c-file-style:=20"gnu"=0A+=20=20tab-width:=208=0A=20=20=20End:=0A=20*/=0A=
diff=20--git=20a/graph/plotter.c=20b/graph/plotter.c=0Aindex=20=
f847ed4..4183513=20100644=0A---=20a/graph/plotter.c=0A+++=20=
b/graph/plotter.c=0A@@=20-2293,6=20+2293,9=20@@=20plot_point_array=20=
(Multigrapher=20*multigrapher,=20const=20Point=20*p,=20int=20length)=0A=20=
void=0A=20plot_legend=20(Multigrapher=20*multigrapher,=20Legend=20=
*legends,=20int=20length,=20double=20posy,=20double=20font_size)=0A=20{=0A=
+=20=20if=20(length=3D=3D0)=0A+=20=20=20=20return;=0A+=0A=20=20=20=
pl_savestate_r=20(multigrapher->plotter);=0A=20=20=20pl_fontname_r=20=
(multigrapher->plotter,=20multigrapher->x_axis.font_name);=0A=20=20=20=
font_size=20=3D=20pl_ffontsize_r=20(multigrapher->plotter,=20=
SS(font_size));=0A@@=20-2335,7=20+2338,6=20@@=20plot_legend=20=
(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20length,=20=
double=20pos=0A=20=0A=20=20=20=20=20=20=20if=20(p->linemode=20>=200)=0A=20=
=20=20=20=20=20=20=20=20{=0A-=20=20=20=20=20=20=20=20=20=20=
fprintf(stderr,=20"linemode=20%d=20is=20%d\n",=20i,=20p->linemode);=0A=20=
=20=20=20=20=20=20=20=20=20=20p->y=20=3D=20YVI(y)=20+=20ystep*yunscale;=0A=
=20=20=20=20=20=20=20=20=20=20=20p->pendown=20=3D=20false;=0A=20=20=20=20=
=20=20=20=20=20=20=20p->symbol=20=3D=200;=0A@@=20-2750,5=20+2752,6=20@@=20=
end_polyline_and_flush=20(Multigrapher=20*multigrapher)=0A=20/*=0A=20=20=20=
Local=20Variables:=0A=20=20=20c-file-style:=20"gnu"=0A+=20=20tab-width:=20=
8=0A=20=20=20End:=0A=20*/=0Adiff=20--git=20a/graph/reader.c=20=
b/graph/reader.c=0Aindex=2035d1383..0f769cf=20100644=0A---=20=
a/graph/reader.c=0A+++=20b/graph/reader.c=0A@@=20-146,7=20+146,7=20@@=20=
typedef=20enum=20{=20IN_PROGRESS,=20ENDED_BY_EOF,=20=
ENDED_BY_DATASET_TERMINATOR,=20ENDED_BY_=0A=20=0A=20/*=20forward=20=
references=20*/=0A=20static=20bool=20skip_some_whitespace=20(FILE=20=
*stream);=0A-static=20dataset_status_t=20read_and_plot_dataset=20(Reader=20=
*reader,=20Multigrapher=20*multigrapher);=0A+static=20dataset_status_t=20=
read_and_plot_dataset=20(Reader=20*reader,=20Multigrapher=20=
*multigrapher,=20int=20*no_of_points,=20Point=20*=20point);=0A=20static=20=
dataset_status_t=20read_dataset=20(Reader=20*reader,=20Point=20**p,=20=
int=20*length,=20int=20*no_of_points);=0A=20static=20dataset_status_t=20=
read_point=20(Reader=20*reader,=20Point=20*point);=0A=20static=20=
dataset_status_t=20read_point_ascii=20(Reader=20*reader,=20Point=20=
*point);=0A@@=20-893,20=20+893,18=20@@=20skip_all_whitespace=20(FILE=20=
*stream)=0A=20=20=20=20points=20are=20not=20stored).=20=20*/=0A=20=0A=20=
static=20dataset_status_t=0A-read_and_plot_dataset=20(Reader=20*reader,=20=
Multigrapher=20*multigrapher)=0A+read_and_plot_dataset=20(Reader=20=
*reader,=20Multigrapher=20*multigrapher,=20int=20*no_of_points,=20Point=20=
*=20point)=0A=20{=0A=20=20=20dataset_status_t=20status;=0A=20=0A-=20=20=
for=20(=20;=20;=20)=0A+=20=20for=20(;=20;=20++(*no_of_points))=0A=20=20=20=
=20=20{=0A-=20=20=20=20=20=20Point=20point;=0A-=0A-=20=20=20=20=20=20=
status=20=3D=20read_point=20(reader,=20&point);=0A+=20=20=20=20=20=20=
status=20=3D=20read_point=20(reader,=20point);=0A=20=20=20=20=20=20=20if=20=
(status=20!=3D=20IN_PROGRESS)=0A-=09/*=20we=20didn't=20get=20a=20point,=20=
i.e.=20dataset=20ended=20*/=0A-=09break;=0A+=20=20=20=20=20=20=20=20/*=20=
we=20didn't=20get=20a=20point,=20i.e.=20dataset=20ended=20*/=0A+=20=20=20=
=20=20=20=20=20break;=0A=20=20=20=20=20=20=20else=0A-=09plot_point=20=
(multigrapher,=20&point);=0A+=20=20=20=20=20=20=20=20plot_point=20=
(multigrapher,=20point);=0A=20=20=20=20=20}=0A=20=0A=20=20=20return=20=
status;=0A@@=20-917,13=20+915,22=20@@=20read_and_plot_dataset=20(Reader=20=
*reader,=20Multigrapher=20*multigrapher)=0A=20=20=20=20plotting=20is=20=
accomplished=20in=20real=20time=20(the=20points=20are=20not=20stored).=20=
=20*/=0A=20=0A=20void=0A-read_and_plot_file=20(Reader=20*reader,=20=
Multigrapher=20*multigrapher)=0A+read_and_plot_file=20(Reader=20*reader,=20=
Multigrapher=20*multigrapher,=20int=20*no_of_points,=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20bool=20*new_legend_label,=20=
Legend=20**legends,=20int=20*no_of_legends,=20char=20const=20=
*legend_label)=0A=20{=0A=20=20=20dataset_status_t=20status;=0A=20=0A=20=20=
=20do=0A=20=20=20=20=20{=0A-=20=20=20=20=20=20status=20=3D=20=
read_and_plot_dataset=20(reader,=20multigrapher);=0A+=20=20=20=20=20=20=
Point=20point;=0A+=20=20=20=20=20=20int=20old_no_of_points=20=3D=20=
*no_of_points;=0A+=0A+=20=20=20=20=20=20status=20=3D=20=
read_and_plot_dataset=20(reader,=20multigrapher,=20no_of_points,=20=
&point);=0A+=0A+=20=20=20=20=20=20if=20(*new_legend_label=20&&=20=
*no_of_points>old_no_of_points)=0A+=20=20=20=20=20=20=20=20add_legend=20=
(legends,=20no_of_legends,=20&point,=20legend_label);=0A+=20=20=20=20=20=20=
*new_legend_label=20=3D=20false;=0A+=0A=20=0A=20=20=20=20=20=20=20/*=20=
After=20each=20dataset,=20reset=20reader:=20force=20break=20in=20=
polyline,=20bump=0A=20=09=20linemode=20(if=20auto-bump=20is=20in=20=
effect),=20and=20reset=20abscissa=20(if=0A@@=20-952,5=20+959,6=20@@=20=
read_and_plot_file=20(Reader=20*reader,=20Multigrapher=20*multigrapher)=0A=
=20/*=0A=20=20=20Local=20Variables:=0A=20=20=20c-file-style:=20"gnu"=0A+=20=
=20tab-width:=208=0A=20=20=20End:=0A=20*/=0A--=20=0A1.8.2.3=0A=0A=

--Apple-Mail-48-130869734
Content-Disposition: attachment;
	filename=0005-Allow-x-and-y-float-arguments-to-place-legend.patch
Content-Type: application/octet-stream;
	name="0005-Allow-x-and-y-float-arguments-to-place-legend.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20174ab95ef790cca84377299b9bb89b23a8034a43=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Daniel=20Llorens=20<dll@jast.ch>=0ADate:=20=
Tue,=2025=20Jun=202013=2018:17:19=20+0200=0ASubject:=20[PATCH=205/6]=20=
Allow=20x=20and=20y=20float=20arguments=20to=20--place-legend=0A=0A*=20=
graph/graph.c=20(main):=20parse=20--place-legend=20for=20both=20=
place_legend_x=20and=0A=20=20place_legend_y.=20Pass=20these=20to=20=
plot_legend.=0A=0A*=20graph/plotter.c=20(plot_legend):=20take=20both=20x=20=
and=20y=20placement=20args.=20Interpolate=0A=20=20the=20position=20=
according=20to=20these.=0A=0A*=20graph/extern.h=20(plot_legend):=20fix=20=
prototype.=0A---=0A=20graph/extern.h=20=20|=20=202=20+-=0A=20=
graph/graph.c=20=20=20|=2046=20=
+++++++++++++++++++++++++++++-----------------=0A=20graph/plotter.c=20|=20=
12=20+++++++-----=0A=203=20files=20changed,=2037=20insertions(+),=2023=20=
deletions(-)=0A=0Adiff=20--git=20a/graph/extern.h=20b/graph/extern.h=0A=
index=20172ceaa..21e6233=20100644=0A---=20a/graph/extern.h=0A+++=20=
b/graph/extern.h=0A@@=20-101,7=20+101,7=20@@=20typedef=20struct=0A=20=20=20=
char=20const=20*=20label;=0A=20}=20Legend;=0A=20=0A-extern=20void=20=
plot_legend=20(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20=
length,=20double=20posy,=20double=20font_size);=0A+extern=20void=20=
plot_legend=20(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20=
length,=20double=20x,=20double=20y,=20double=20font_size);=0A=20extern=20=
void=20add_legend=20(Legend=20**legends,=20int=20*length,=20const=20=
Point=20*point,=20char=20const=20*label);=0A=20=0A=20=0Adiff=20--git=20=
a/graph/graph.c=20b/graph/graph.c=0Aindex=209b66f5a..e61f22d=20100644=0A=
---=20a/graph/graph.c=0A+++=20b/graph/graph.c=0A@@=20-173,7=20+173,8=20=
@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=20=20/*=20points=20used=20=
for=20legend=20*/=0A=20=20=20Legend=20*legends=20=3D=20(Legend=20=
*)xmalloc=20(0);=0A=20=20=20int=20no_of_legends=20=3D=200;=0A-=20=20=
double=20place_legend=20=3D=201.;=0A+=20=20double=20place_legend_x=20=3D=20=
1.;=0A+=20=20double=20place_legend_y=20=3D=201.;=0A=20=0A=20=20=20/*=20=
Variables=20related=20to=20both=20the=20point=20reader=20and=20the=20=
point=20plotter=20*/=0A=20=0A@@=20-372,19=20+373,6=20@@=20main=20(int=20=
argc,=20char=20*argv[])=0A=20=20=20=20=20=20=20=20=20=20=20=
new_legend_label=20=3D=20true;=0A=20=20=20=20=20=20=20=20=09=20=20=
legend_label=20=3D=20xstrdup=20(optarg);=0A=20=20=20=20=20=20=20=20=20=20=
=20break;=0A-=20=20=20=20=20=20=20=20case=20'O'=20<<=208:=0A-=09=20=20if=20=
((sscanf=20(optarg,=20"%lf",=20&local_place_legend)=20<=3D=200)=0A-=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20||=20local_place_legend<0=0A-=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20||=20local_place_legend>1)=0A-=09=20=20=20=
=20{=0A-=09=20=20=20=20=20=20fprintf=20(stderr,=0A-=09=09=20=20=20=20=20=20=
=20"%s:=20error:=20legend=20placement=20should=20be=20number=20in=20[0=20=
1],=20but=20it=20was=20`%s'\n",=0A-=09=09=20=20=20=20=20=20=20progname,=20=
optarg);=0A-=09=20=20=20=20=20=20errcnt++;=0A-=09=20=20=20=20}=0A-=09=20=20=
else=0A-=20=20=20=20=20=20=20=20=20=20=20=20place_legend=20=3D=20=
local_place_legend;=0A-=09=20=20break;=0A=20=09case=20'H':=09=09/*=20=
Toggle=20frame-on-top,=20ARG=20NONE=20*/=0A=20=09=20=20frame_on_top=20=3D=20=
(frame_on_top=20=3D=3D=20true=20?=20false=20:=20true);=0A=20=09=20=20=
break;=0A@@=20-814,9=20+802,33=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=09=20=20frame_color=20=3D=20xstrdup=20(optarg);=0A=20=09=20=
=20break;=0A=20=0A-=0A=20=09=20=20/*------=20options=20with=20zero=20or=20=
more=20arguments=20---------*/=0A=20=0A+=20=20=20=20=20=20=20=20case=20=
'O'=20<<=208:=0A+=20=20=20=20=20=20=20=20=20=20optind--;=20/*=20??=20*/=0A=
+=09=20=20if=20(optind=20>=3D=20argc)=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20break;=0A+=20=20=20=20=20=20=20=20=20=20if=20(sscanf=20(argv[optind],=20=
"%lf",=20&local_place_legend)=20<=3D=200)=0A+=20=20=20=20=20=20=20=20=20=20=
=20=20break;=0A+=20=20=20=20=20=20=20=20=20=20place_legend_x=20=3D=20=
local_place_legend;=0A+=09=20=20if=20(place_legend_x<0.=20||=20=
place_legend_x>1.)=0A+=09=20=20=20=20{=0A+=09=20=20=20=20=20=20fprintf=20=
(stderr,=20"%s:=20error:=20place_legend=20x=20out=20of=20[0=201]:=20=
%s\n",=20progname,=20argv[optind]);=0A+=09=20=20=20=20=20=20return=20=
EXIT_FAILURE;=0A+=09=20=20=20=20}=0A+=09=20=20optind++;=09/*=20tell=20=
getopt=20we=20recognized=20place_legend_x=20*/=0A+=09=20=20if=20(optind=20=
>=3D=20argc)=0A+=20=20=20=20=20=20=20=20=20=20=20=20break;=0A+=20=20=20=20=
=20=20=20=20=20=20if=20(sscanf=20(argv[optind],=20"%lf",=20=
&local_place_legend)=20<=3D=200)=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
break;=0A+=20=20=20=20=20=20=20=20=20=20place_legend_y=20=3D=20=
local_place_legend;=0A+=09=20=20if=20(place_legend_y<0.=20||=20=
place_legend_y>1.)=0A+=09=20=20=20=20{=0A+=09=20=20=20=20=20=20fprintf=20=
(stderr,=20"%s:=20error:=20place_legend=20y=20out=20of=20[0=201]:=20=
%s\n",=20progname,=20argv[optind]);=0A+=09=20=20=20=20=20=20return=20=
EXIT_FAILURE;=0A+=09=20=20=20=20}=0A+=09=20=20optind++;=09/*=20tell=20=
getopt=20we=20recognized=20place_legend_y=20*/=0A+=09=20=20break;=0A=20=09=
case=20'a':=09=09/*=20Auto-abscissa,=20ARG=20OPTIONAL=20[0,1,2]=20*/=0A=20=
=09=20=20auto_abscissa=20=3D=20true;=0A=20=09=20=20if=20(optind=20>=3D=20=
argc)=0A@@=20-1112,7=20+1124,7=20@@=20main=20(int=20argc,=20char=20=
*argv[])=0A=20=0A=20=09=09=20=20/*=20plot=20the=20laboriously=20read-in=20=
array=20*/=0A=20=09=09=20=20plot_point_array=20(multigrapher,=20p,=20=
no_of_points);=0A-=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
plot_legend=20(multigrapher,=20legends,=20no_of_legends,=20place_legend,=20=
legend_font_size);=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20plot_legend=20(multigrapher,=20legends,=20no_of_legends,=20=
place_legend_x,=20place_legend_y,=20legend_font_size);=0A=20=0A=20=09=09=20=
=20/*=20free=20points=20array=20*/=0A=20=09=09=20=20free=20(p);=0A@@=20=
-1586,7=20+1598,7=20@@=20main=20(int=20argc,=20char=20*argv[])=0A=20=09}=20=
/*=20end=20of=20not-filter=20case=20*/=0A=20=0A=20=20=20=20=20=20=20/*=20=
plot=20accumulated=20legend=20*/=0A-=20=20=20=20=20=20plot_legend=20=
(multigrapher,=20legends,=20no_of_legends,=20place_legend,=20=
legend_font_size);=0A+=20=20=20=20=20=20plot_legend=20(multigrapher,=20=
legends,=20no_of_legends,=20place_legend_x,=20place_legend_y,=20=
legend_font_size);=0A=20=0A=20=20=20=20=20=20=20/*=20draw=20graph=20=
frame=20on=20top=20of=20graph,=20if=20user=20requested=20it=20*/=0A=20=20=
=20=20=20=20=20if=20(frame_on_top)=0Adiff=20--git=20a/graph/plotter.c=20=
b/graph/plotter.c=0Aindex=204183513..7a3ed62=20100644=0A---=20=
a/graph/plotter.c=0A+++=20b/graph/plotter.c=0A@@=20-2291,7=20+2291,7=20=
@@=20plot_point_array=20(Multigrapher=20*multigrapher,=20const=20Point=20=
*p,=20int=20length)=0A=20}=0A=20=0A=20void=0A-plot_legend=20=
(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20length,=20=
double=20posy,=20double=20font_size)=0A+plot_legend=20(Multigrapher=20=
*multigrapher,=20Legend=20*legends,=20int=20length,=20double=20x,=20=
double=20y,=20double=20font_size)=0A=20{=0A=20=20=20if=20(length=3D=3D0)=0A=
=20=20=20=20=20return;=0A@@=20-2306,10=20+2306,12=20@@=20plot_legend=20=
(Multigrapher=20*multigrapher,=20Legend=20*legends,=20int=20length,=20=
double=20pos=0A=20=20=20=20=20=20=20legend_width=20=3D=20=
fmax(legend_width,=20pl_flabelwidth_r(multigrapher->plotter,=20=
legends[i].label));=0A=20=20=20=20=20=20=20fprintf(stderr,=20"legend=20=
%d=20label=20%s\n",=20i,=20legends[i].label);=0A=20=20=20=20=20}=0A-=20=20=
double=20x=20=3D=20XP(XSQ(1.0))=20-=20legend_width=20-=20font_size*0.5;=0A=
-=20=20double=20y=20=3D=20posy=3D=3D1.=20?=20YP(YSQ(1.0))=20-=20=
font_size*1.0=0A-=20=20=20=20=20=20=20=20=20=20=20:=20posy=3D=3D0.=20?=20=
YP(YSQ(0.0))=20+=20font_size*length=0A-=20=20=20=20=20=20=20=20=20=20=20=
:=20YP(YSQ(1.0))=20-=20font_size*1.0;=20//=20@bug=20only=201=20or=200=0A=
+=20=20double=20posx1=20=3D=20XP(XSQ(1.0))=20-=20legend_width=20-=20=
font_size*0.5;=0A+=20=20double=20posx0=20=3D=20XP(XSQ(0.0))=20+=20=
font_size*4.0;=0A+=20=20x=20=3D=20x=20*=20posx1=20+=20(1-x)=20*=20posx0;=0A=
+=20=20double=20posy1=20=3D=20YP(YSQ(1.0))=20-=20font_size*1.0;=0A+=20=20=
double=20posy0=20=3D=20YP(YSQ(0.0))=20+=20font_size*length;=0A+=20=20y=20=
=3D=20y=20*=20posy1=20+=20(1-y)=20*=20posy0;=0A=20=20=20double=20=
xunscale=20=3D=201/(XV=20(1.)=20-=20XV=20(0.));=0A=20=20=20double=20=
yunscale=20=3D=201/(YV=20(1.)=20-=20YV=20(0.));=0A=20=20=20double=20dimx=20=
=3D=20font_size=20*=20xunscale;=0A--=20=0A1.8.2.3=0A=0A=

--Apple-Mail-48-130869734
Content-Disposition: attachment;
	filename=0006-When-giving-line-color-linemode-is-used-as-line-styl.patch
Content-Type: application/octet-stream;
	name="0006-When-giving-line-color-linemode-is-used-as-line-styl.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20d791436bd4ffebb4ed2ea7a444b584e9928fad27=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Daniel=20Llorens=20<dll@jast.ch>=0ADate:=20=
Mon,=2029=20Jul=202013=2016:10:23=20+0200=0ASubject:=20[PATCH=206/6]=20=
When=20giving=20line=20color=20linemode=20is=20used=20as=20line=20style=0A=
=0A*=20graph/plotter.c=20(set_line_style):=20use=20style=20directly=20in=20=
pl_linemod_r=0A=20=20when=20line_color=20isn't=20empty.=0A=20=20Fix=20=
top=20comment.=0A---=0A=20graph/plotter.c=20|=2013=20+++++++++----=0A=20=
1=20file=20changed,=209=20insertions(+),=204=20deletions(-)=0A=0Adiff=20=
--git=20a/graph/plotter.c=20b/graph/plotter.c=0Aindex=207a3ed62..5f2e56d=20=
100644=0A---=20a/graph/plotter.c=0A+++=20b/graph/plotter.c=0A@@=20-38,7=20=
+38,7=20@@=0A=20=20=20=20=20=20=20a=20symbol=20type=20(a=20small=20=
integer,=20interpreted=20as=20a=20marker=20type)=0A=20=20=20=20=20=20=20=
a=20symbol=20size=20(a=20fraction=20of=20the=20size=20of=20the=20=
plotting=20box)=0A=20=20=20=20=20=20=20a=20symbol=20font=20name=20=
(relevant=20only=20for=20symbol=20types=20>=3D=2032)=0A-=20=20=20=20=20=20=
a=20linemode=20(a=20small=20integer)=0A+=20=20=20=20=20=20a=20linemode=20=
(a=20small=20integer;=20line=20style=20unless=20line_color=20is=20empty)=0A=
=20=20=20=20=20=20=20a=20line_color=20(a=20string,=20overrides=20=
linemode=20color=20unless=20empty)=0A=20=20=20=20=20=20=20a=20linewidth=20=
(a=20fraction=20of=20the=20size=20of=20the=20display=20device)=0A=20=20=20=
=20=20=20=20a=20polyline=20fill-fraction=20(in=20the=20interval=20[0,1],=20=
<0=20means=20no=20fill)=0A@@=20-2258,9=20+2258,14=20@@=20set_line_style=20=
(Multigrapher=20*multigrapher,=20int=20style,=20const=20char=20=
*line_color,=0A=20=0A=20=20=20=20=20=20=20if=20(style=20>=200)=09=09/*=20=
solid=20lines,=20various=20colors=20*/=0A=20=09{=0A-=09=20=20i=20=3D=20=
((style=20-=201)=20/=20NO_OF_LINEMODES)=20%=20NO_OF_LINEMODES;=0A-=09=20=20=
j=20=3D=20(style=20-=201)=20%=20NO_OF_LINEMODES;=0A-=09=20=20=
pl_linemod_r=20(multigrapher->plotter,=20linemodes[i]);=0A+=20=20=20=20=20=
=20=20=20=20=20if=20(line_color=20&&=20line_color[0])=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20i=20=3D=20(style=20-=201)=20%=20NO_OF_LINEMODES;=0A+=20=
=20=20=20=20=20=20=20=20=20else=0A+=20=20=20=20=20=20=20=20=20=20=20=20{=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20i=20=3D=20((style=20-=201)=20=
/=20NO_OF_LINEMODES)=20%=20NO_OF_LINEMODES;=0A+=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20j=20=3D=20(style=20-=201)=20%=20NO_OF_LINEMODES;=0A+=20=20=
=20=20=20=20=20=20=20=20=20=20}=0A+=20=20=20=20=20=20=20=20=20=20=
pl_linemod_r=20(multigrapher->plotter,=20linemodes[i]);=0A=20=09}=0A=20=0A=
=20=20=20=20=20=20=20else=20if=20(style=20=3D=3D=200)=09/*=20use=20first=20=
color,=20as=20if=20-m=201=20was=20spec'd=20*/=0A--=20=0A1.8.2.3=0A=0A=

--Apple-Mail-48-130869734--


From MAILER-DAEMON Tue Sep 24 11:02:59 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VOU8h-00025F-MI
	for mharc-bug-plotutils@gnu.org; Tue, 24 Sep 2013 11:02:59 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46723)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VOU8a-0001xh-Jj
	for bug-plotutils@gnu.org; Tue, 24 Sep 2013 11:02:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VOU8T-0007xL-V6
	for bug-plotutils@gnu.org; Tue, 24 Sep 2013 11:02:52 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:57292)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1VOU8T-0007x5-PE
	for bug-plotutils@gnu.org; Tue, 24 Sep 2013 11:02:45 -0400
Received: from localhost (localhost [127.0.0.1])
	by hera.aquilenet.fr (Postfix) with ESMTP id 2C43B15E1;
	Tue, 24 Sep 2013 16:57:43 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
	by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Zuvm0t+pIC6F; Tue, 24 Sep 2013 16:57:43 +0200 (CEST)
Received: from pluto (unknown [193.50.110.127])
	by hera.aquilenet.fr (Postfix) with ESMTPSA id E950012F9;
	Tue, 24 Sep 2013 16:57:42 +0200 (CEST)
From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Daniel Llorens <daniel.llorens@bluewin.ch>
References: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 3 =?utf-8?Q?Vend=C3=A9miaire?= an 222 de la
	=?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Tue, 24 Sep 2013 16:57:42 +0200
In-Reply-To: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch> (Daniel
	Llorens's message of "Tue, 24 Sep 2013 12:11:51 +0200")
Message-ID: <87a9j28dy1.fsf@gnu.org>
User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-Received-From: 141.255.128.1
Cc: bug-plotutils@gnu.org
Subject: Re: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Sep 2013 15:02:58 -0000

Hi Daniel,

Daniel Llorens <daniel.llorens@bluewin.ch> skribis:

> The patches are on top of plotutils 2.6.
>
> This is a hack for my own use, which is through a wrapper for the most pa=
rt. I'm not aware of having broken anything, but that can always happen. I'=
m posting the patches just in case someone finds them useful.

This sounds very useful to me.

Plotutils has been dormant for some time, but I hope the patches can get
merged.  Perhaps you could offer to co-maintain it, even?

Thanks,
Ludo=E2=80=99.


From MAILER-DAEMON Wed Sep 25 05:39:20 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VOlZ2-00012K-0b
	for mharc-bug-plotutils@gnu.org; Wed, 25 Sep 2013 05:39:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59585)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VOlYs-000122-Mu
	for bug-plotutils@gnu.org; Wed, 25 Sep 2013 05:39:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VOlYk-00057p-Kk
	for bug-plotutils@gnu.org; Wed, 25 Sep 2013 05:39:10 -0400
Received: from zhbdzmsp-smta15.bluewin.ch ([195.186.99.132]:41529)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>)
	id 1VOlYb-00056h-Eu; Wed, 25 Sep 2013 05:38:53 -0400
Received: from [195.186.227.131] ([195.186.227.131:45200]
	helo=zhhdzmsp-smta14.bluewin.ch)
	by zhbdzmsp-smta15.bluewin.ch (envelope-from
	<daniel.llorens@bluewin.ch>)
	(ecelerity 2.2.3.47 r(39824M)) with ESMTP
	id 42/3A-01335-A2FA2425; Wed, 25 Sep 2013 09:38:51 +0000
Received: from [172.16.96.17] (62.2.203.131) by zhhdzmsp-smta14.bluewin.ch
	(8.5.142) (authenticated as dll@bluewin.ch)
	id 52330D9E0131C040; Wed, 25 Sep 2013 09:38:50 +0000
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset=iso-8859-1
From: Daniel Llorens <daniel.llorens@bluewin.ch>
In-Reply-To: <87a9j28dy1.fsf@gnu.org>
Date: Wed, 25 Sep 2013 11:38:42 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <A41160A4-6F79-4534-94E5-79D4CC08796A@bluewin.ch>
References: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>
	<87a9j28dy1.fsf@gnu.org>
To: =?iso-8859-1?Q?Ludovic_Court=E8s?= <ludo@gnu.org>
X-Mailer: Apple Mail (2.1085)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.186.99.132
Cc: bug-plotutils@gnu.org
Subject: Re: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Sep 2013 09:39:18 -0000


On Sep 24, 2013, at 16:57, Ludovic Court=E8s wrote:

> This sounds very useful to me.
>=20
> Plotutils has been dormant for some time, but I hope the patches can =
get
> merged.  Perhaps you could offer to co-maintain it, even?

I have no experience in being a maintainer, I barely know the codebase =
and I can't devote a lot of time to this.

If those things are no obstacle... hmm, why not. Are you the current =
maintainer?




From MAILER-DAEMON Wed Sep 25 09:20:02 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VOp0c-0001d2-S2
	for mharc-bug-plotutils@gnu.org; Wed, 25 Sep 2013 09:20:02 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:58250)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VOp0U-0001NV-Jr
	for bug-plotutils@gnu.org; Wed, 25 Sep 2013 09:20:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VOp0O-0007lS-OJ
	for bug-plotutils@gnu.org; Wed, 25 Sep 2013 09:19:54 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:59862)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1VOp0O-0007lO-Hn
	for bug-plotutils@gnu.org; Wed, 25 Sep 2013 09:19:48 -0400
Received: from localhost (localhost [127.0.0.1])
	by hera.aquilenet.fr (Postfix) with ESMTP id 69BFB1638;
	Wed, 25 Sep 2013 15:14:47 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
	by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id oByjOBMzH2TQ; Wed, 25 Sep 2013 15:14:47 +0200 (CEST)
Received: from pluto (reverse-83.fdn.fr [80.67.176.83])
	by hera.aquilenet.fr (Postfix) with ESMTPSA id 1D922B99;
	Wed, 25 Sep 2013 15:14:47 +0200 (CEST)
From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Daniel Llorens <daniel.llorens@bluewin.ch>
References: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>
	<87a9j28dy1.fsf@gnu.org>
	<A41160A4-6F79-4534-94E5-79D4CC08796A@bluewin.ch>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 4 =?utf-8?Q?Vend=C3=A9miaire?= an 222 de la
	=?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Wed, 25 Sep 2013 15:14:46 +0200
In-Reply-To: <A41160A4-6F79-4534-94E5-79D4CC08796A@bluewin.ch> (Daniel
	Llorens's message of "Wed, 25 Sep 2013 11:38:42 +0200")
Message-ID: <87ob7hkpq1.fsf@gnu.org>
User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-Received-From: 141.255.128.1
Cc: bug-plotutils@gnu.org
Subject: Re: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Sep 2013 13:20:01 -0000

Daniel Llorens <daniel.llorens@bluewin.ch> skribis:

> On Sep 24, 2013, at 16:57, Ludovic Court=C3=A8s wrote:
>
>> This sounds very useful to me.
>>=20
>> Plotutils has been dormant for some time, but I hope the patches can get
>> merged.  Perhaps you could offer to co-maintain it, even?
>
> I have no experience in being a maintainer, I barely know the codebase an=
d I can't devote a lot of time to this.
>
> If those things are no obstacle... hmm, why not. Are you the current main=
tainer?

Not at all.

I=E2=80=99m just a user who=E2=80=99s suffered enough with Gnuplot, and who=
=E2=80=99d be happy
to see Plotutils brought back to life.  :-)

Thanks,
Ludo=E2=80=99.


From MAILER-DAEMON Thu Sep 26 06:32:12 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VP8rk-0004rQ-QV
	for mharc-bug-plotutils@gnu.org; Thu, 26 Sep 2013 06:32:12 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34835)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VP8rb-0004qj-Bn
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 06:32:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VP8rT-0008Vs-B9
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 06:32:03 -0400
Received: from zhhdzmsp-smta18.bluewin.ch ([195.186.227.133]:44376)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>)
	id 1VP8rT-0008VY-56; Thu, 26 Sep 2013 06:31:55 -0400
Received: from [195.186.99.131] ([195.186.99.131:38695]
	helo=zhbdzmsp-smta13.bluewin.ch)
	by zhhdzmsp-smta18.bluewin.ch (envelope-from
	<daniel.llorens@bluewin.ch>)
	(ecelerity 2.2.3.47 r(39824M)) with ESMTP
	id FA/A0-01355-91D04425; Thu, 26 Sep 2013 10:31:53 +0000
Received: from [172.16.96.17] (62.2.203.131) by zhbdzmsp-smta13.bluewin.ch
	(8.5.142) (authenticated as dll@bluewin.ch)
	id 51DDDBBD07BE607A; Thu, 26 Sep 2013 10:31:53 +0000
Mime-Version: 1.0 (Apple Message framework v1085)
Content-Type: text/plain; charset=windows-1252
From: Daniel Llorens <daniel.llorens@bluewin.ch>
In-Reply-To: <87ob7hkpq1.fsf@gnu.org>
Date: Thu, 26 Sep 2013 12:31:48 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <8EBC7DA9-539A-4304-8862-E3FE67488AF8@bluewin.ch>
References: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>
	<87a9j28dy1.fsf@gnu.org>
	<A41160A4-6F79-4534-94E5-79D4CC08796A@bluewin.ch>
	<87ob7hkpq1.fsf@gnu.org>
To: =?iso-8859-1?Q?Ludovic_Court=E8s?= <ludo@gnu.org>
X-Mailer: Apple Mail (2.1085)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.186.227.133
Cc: bug-plotutils@gnu.org
Subject: Re: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Sep 2013 10:32:11 -0000


On Sep 25, 2013, at 15:14, Ludovic Court=E8s wrote:

> Not at all.
>=20
> I=92m just a user who=92s suffered enough with Gnuplot, and who=92d be =
happy
> to see Plotutils brought back to life.  :-)

That would be nice.

I've just used graph, never Plotutils from another program.

Some things I've missed in graph are

=97 Unicode support
=97 Transparency & pdf (I do eps -> pdf in the shell using a wrapper)
=97 Reading nans and infs in data files
=97 Multiline titles and labels
=97 Use as library (having graph functions in Plotutils)

Of these Unicode, transparency and use as library would affect =
Plotutils.=20

Is there even a repository of Plotutils?

Regards,

	Daniel



From MAILER-DAEMON Thu Sep 26 08:03:01 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VPAHd-0001Cs-PA
	for mharc-bug-plotutils@gnu.org; Thu, 26 Sep 2013 08:03:01 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52146)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VPAHW-0001Cj-UH
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 08:03:00 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VPAHR-0002e4-GL
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 08:02:54 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:34078)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1VPAHR-0002dw-9m
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 08:02:49 -0400
Received: from localhost (localhost [127.0.0.1])
	by hera.aquilenet.fr (Postfix) with ESMTP id 67F2B1246;
	Thu, 26 Sep 2013 13:57:46 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
	by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id CEY0D+gNs7pg; Thu, 26 Sep 2013 13:57:46 +0200 (CEST)
Received: from pluto (unknown [193.50.110.127])
	by hera.aquilenet.fr (Postfix) with ESMTPSA id 38933BD3;
	Thu, 26 Sep 2013 13:57:46 +0200 (CEST)
From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Daniel Llorens <daniel.llorens@bluewin.ch>
References: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>
	<87a9j28dy1.fsf@gnu.org>
	<A41160A4-6F79-4534-94E5-79D4CC08796A@bluewin.ch>
	<87ob7hkpq1.fsf@gnu.org>
	<8EBC7DA9-539A-4304-8862-E3FE67488AF8@bluewin.ch>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 5 =?utf-8?Q?Vend=C3=A9miaire?= an 222 de la
	=?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Thu, 26 Sep 2013 13:57:45 +0200
In-Reply-To: <8EBC7DA9-539A-4304-8862-E3FE67488AF8@bluewin.ch> (Daniel
	Llorens's message of "Thu, 26 Sep 2013 12:31:48 +0200")
Message-ID: <871u4bssli.fsf@gnu.org>
User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-Received-From: 141.255.128.1
Cc: bug-plotutils@gnu.org
Subject: Re: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Sep 2013 12:03:00 -0000

Daniel Llorens <daniel.llorens@bluewin.ch> skribis:

> Some things I've missed in graph are
>
> =E2=80=94 Unicode support
> =E2=80=94 Transparency & pdf (I do eps -> pdf in the shell using a wrappe=
r)
> =E2=80=94 Reading nans and infs in data files
> =E2=80=94 Multiline titles and labels
> =E2=80=94 Use as library (having graph functions in Plotutils)

In addition, Mike Gran has an initial patch set that adds Guile bindings
to the Plotutils libraries:

  https://github.com/spk121/guile-plotutils

It notably offers a =E2=80=98graph=E2=80=99 interface:

  https://github.com/spk121/guile-plotutils/blob/master/guile/graph.scm

Another thing that would be great to merge.

> Of these Unicode, transparency and use as library would affect Plotutils.=
=20
>
> Is there even a repository of Plotutils?

Good question.  There=E2=80=99s no Savannah project of that name.

Thanks,
Ludo=E2=80=99.


From MAILER-DAEMON Thu Sep 26 10:43:19 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VPCml-0003Gp-RI
	for mharc-bug-plotutils@gnu.org; Thu, 26 Sep 2013 10:43:19 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57977)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <spk121@yahoo.com>) id 1VPCme-0003E2-7C
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 10:43:17 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <spk121@yahoo.com>) id 1VPCmX-0000Eq-KV
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 10:43:12 -0400
Received: from nm30-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.126]:32320)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <spk121@yahoo.com>) id 1VPCmX-0000Ec-Bb
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 10:43:05 -0400
Received: from [98.139.212.150] by nm30.bullet.mail.bf1.yahoo.com with NNFMP;
	26 Sep 2013 14:43:04 -0000
Received: from [98.139.212.226] by tm7.bullet.mail.bf1.yahoo.com with NNFMP;
	26 Sep 2013 14:43:04 -0000
Received: from [127.0.0.1] by omp1035.mail.bf1.yahoo.com with NNFMP;
	26 Sep 2013 14:43:04 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 316356.82550.bm@omp1035.mail.bf1.yahoo.com
Received: (qmail 62935 invoked by uid 60001); 26 Sep 2013 14:43:04 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1380206583; bh=PKDuNd+dpY2iq8YxGMLETkGJXiLQuUdbLVs9A8UxeRU=;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=6U+SpyDxfT8qZQnhj9Vzjxcac556UlPAfs/Zv/LZZrH6/bDCioE8q3441pf1rVAR49BSxiwTJM9EAzjexVUH/Zr41mHv16imeoPtynHnyzPrhCUB+f2kGGRRryLd30K3oyD0pdP8TfWWnEZAQ/20RxtOawefujasmfKyGMzSabA=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=SMt5ImtWbt/fKmG4midtaawBxkLmxZKCVMuvYPoyf7VF4KB6A4kvvlkqJkSJcKaEJqA/qO2POnPx1uJx67DKrsT2xEPnOTIGnYIU46IUIqtMRGM5FTCpg8biDJ1KrJpeAbcaaPPjPFIjimONjAN6FWBcnyWSAfhY235QuI+lkhE=;
X-YMail-OSG: eTFzgsoVM1lqeEO1yO7vcPc0MQ9vnDAK_zhBPO6tVUPLDdi
	hseUeL.dufYA5Xkpchwzy
Received: from [99.176.3.11] by web120404.mail.ne1.yahoo.com via HTTP;
	Thu, 26 Sep 2013 07:43:03 PDT
X-Rocket-MIMEInfo: 002.001,
	PiBGcm9tOiBMdWRvdmljIO.7v0NvdXJ0w6hzIDxsdWRvQGdudS5vcmc.Cgo.IFRvOiBEYW5pZWwgTGxvcmVucyA8ZGFuaWVsLmxsb3JlbnNAYmx1ZXdpbi5jaD4KPiBDYzogYnVnLXBsb3R1dGlsc0BnbnUub3JnCj4gU2VudDogVGh1cnNkYXksIFNlcHRlbWJlciAyNiwgMjAxMyA0OjU3IEFNCj4gU3ViamVjdDogUmU6IFtCdWctcGxvdHV0aWxzXSBbcGF0Y2hdIGxlZ2VuZCBmZWF0dXJlIGZvciBncmFwaAo.IAo.IERhbmllbCBMbG9yZW5zIDxkYW5pZWwubGxvcmVuc0BibHVld2luLmNoPiBza3JpYmlzOgo.IAoBMAEBAQE-
X-Mailer: YahooMailWebService/0.8.160.587
References: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>	<87a9j28dy1.fsf@gnu.org>	<A41160A4-6F79-4534-94E5-79D4CC08796A@bluewin.ch>	<87ob7hkpq1.fsf@gnu.org>	<8EBC7DA9-539A-4304-8862-E3FE67488AF8@bluewin.ch>
	<871u4bssli.fsf@gnu.org>
Message-ID: <1380206583.61744.YahooMailNeo@web120404.mail.ne1.yahoo.com>
Date: Thu, 26 Sep 2013 07:43:03 -0700 (PDT)
From: Mike Gran <spk121@yahoo.com>
To: =?utf-8?B?THVkb3ZpYyDvu79Db3VydMOocw==?= <ludo@gnu.org>,
	Daniel Llorens <daniel.llorens@bluewin.ch>
In-Reply-To: <871u4bssli.fsf@gnu.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x
X-Received-From: 98.139.213.126
Cc: "bug-plotutils@gnu.org" <bug-plotutils@gnu.org>
Subject: Re: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: Mike Gran <spk121@yahoo.com>
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Sep 2013 14:43:18 -0000

> From: Ludovic =EF=BB=BFCourt=C3=A8s <ludo@gnu.org>=0A=0A> To: Daniel Llor=
ens <daniel.llorens@bluewin.ch>=0A> Cc: bug-plotutils@gnu.org=0A> Sent: Thu=
rsday, September 26, 2013 4:57 AM=0A> Subject: Re: [Bug-plotutils] [patch] =
legend feature for graph=0A> =0A> Daniel Llorens <daniel.llorens@bluewin.ch=
> skribis:=0A> =0A>>  Some things I've missed in graph are=0A>> =0A>>  =E2=
=80=94 Unicode support=0A>>  =E2=80=94 Transparency & pdf (I do eps -> pdf =
in the shell using a wrapper)=0A>>  =E2=80=94 Reading nans and infs in data=
 files=0A>>  =E2=80=94 Multiline titles and labels=0A>>  =E2=80=94 Use as l=
ibrary (having graph functions in Plotutils)=0A> =0A> In addition, Mike Gra=
n has an initial patch set that adds Guile bindings=0A> to the Plotutils li=
braries:=0A> =0A> =C2=A0 https://github.com/spk121/guile-plotutils=0A> =0A>=
 It notably offers a =E2=80=98graph=E2=80=99 interface:=0A> =0A> =C2=A0 htt=
ps://github.com/spk121/guile-plotutils/blob/master/guile/graph.scm=0A> =0A>=
 Another thing that would be great to merge.=0A=0APhew.=C2=A0 That code is =
an embarrassing hack.=C2=A0 But it does work. It was=0Ain reference to that=
 code that this list last saw a message from the=0Aproject maintainer, back=
 in 2010.=0A=0AThere is no official repo, though several repos have sprung =
up on github=0Ato collect bugfixes.=C2=A0 Tim Martin's is pretty good.=0A=
=0Ahttps://github.com/timmartin/Plotutils/commits/master=0A=0A-Mike Gran


From MAILER-DAEMON Thu Sep 26 11:41:47 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VPDhK-0004na-Uo
	for mharc-bug-plotutils@gnu.org; Thu, 26 Sep 2013 11:41:46 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42020)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VPDhD-0004mo-VZ
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 11:41:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VPDh8-0001CH-Ob
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 11:41:39 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:34496)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1VPDh8-0001Bv-Hu
	for bug-plotutils@gnu.org; Thu, 26 Sep 2013 11:41:34 -0400
Received: from localhost (localhost [127.0.0.1])
	by hera.aquilenet.fr (Postfix) with ESMTP id C42C6CE0;
	Thu, 26 Sep 2013 17:36:31 +0200 (CEST)
Received: from hera.aquilenet.fr ([127.0.0.1])
	by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id whWW73H-zbX3; Thu, 26 Sep 2013 17:36:31 +0200 (CEST)
Received: from pluto (unknown [193.50.110.127])
	by hera.aquilenet.fr (Postfix) with ESMTPSA id 76F9DAE1;
	Thu, 26 Sep 2013 17:36:31 +0200 (CEST)
From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=)
To: Mike Gran <spk121@yahoo.com>
References: <2E3CC24A-5302-45BA-8B80-9D414F94E7FB@bluewin.ch>
	<87a9j28dy1.fsf@gnu.org>
	<A41160A4-6F79-4534-94E5-79D4CC08796A@bluewin.ch>
	<87ob7hkpq1.fsf@gnu.org>
	<8EBC7DA9-539A-4304-8862-E3FE67488AF8@bluewin.ch>
	<871u4bssli.fsf@gnu.org>
	<1380206583.61744.YahooMailNeo@web120404.mail.ne1.yahoo.com>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 5 =?utf-8?Q?Vend=C3=A9miaire?= an 222 de la
	=?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0xEA52ECF4
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA  D15D 77DD 95E2 EA52 ECF4
X-OS: x86_64-unknown-linux-gnu
Date: Thu, 26 Sep 2013 17:36:30 +0200
In-Reply-To: <1380206583.61744.YahooMailNeo@web120404.mail.ne1.yahoo.com>
	(Mike Gran's message of "Thu, 26 Sep 2013 07:43:03 -0700 (PDT)")
Message-ID: <878uyjr3wh.fsf@gnu.org>
User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy]
X-Received-From: 141.255.128.1
Cc: "bug-plotutils@gnu.org" <bug-plotutils@gnu.org>,
	Daniel Llorens <daniel.llorens@bluewin.ch>
Subject: Re: [Bug-plotutils] [patch] legend feature for graph
X-BeenThere: bug-plotutils@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Bug reports for the GNU plotting utilities,
	including the libplot graphics export library."
	<bug-plotutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-plotutils>
List-Post: <mailto:bug-plotutils@gnu.org>
List-Help: <mailto:bug-plotutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-plotutils>,
	<mailto:bug-plotutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Sep 2013 15:41:45 -0000

Mike Gran <spk121@yahoo.com> skribis:

>> From: Ludovic =EF=BB=BFCourt=C3=A8s <ludo@gnu.org>
>
>> To: Daniel Llorens <daniel.llorens@bluewin.ch>
>> Cc: bug-plotutils@gnu.org
>> Sent: Thursday, September 26, 2013 4:57 AM
>> Subject: Re: [Bug-plotutils] [patch] legend feature for graph
>>=20
>> Daniel Llorens <daniel.llorens@bluewin.ch> skribis:
>>=20
>>>  Some things I've missed in graph are
>>>=20
>>>  =E2=80=94 Unicode support
>>>  =E2=80=94 Transparency & pdf (I do eps -> pdf in the shell using a wra=
pper)
>>>  =E2=80=94 Reading nans and infs in data files
>>>  =E2=80=94 Multiline titles and labels
>>>  =E2=80=94 Use as library (having graph functions in Plotutils)
>>=20
>> In addition, Mike Gran has an initial patch set that adds Guile bindings
>> to the Plotutils libraries:
>>=20
>> =C2=A0 https://github.com/spk121/guile-plotutils
>>=20
>> It notably offers a =E2=80=98graph=E2=80=99 interface:
>>=20
>> =C2=A0 https://github.com/spk121/guile-plotutils/blob/master/guile/graph=
.scm
>>=20
>> Another thing that would be great to merge.
>
> Phew.=C2=A0 That code is an embarrassing hack.=C2=A0 But it does work. It=
 was
> in reference to that code that this list last saw a message from the
> project maintainer, back in 2010.
>
> There is no official repo, though several repos have sprung up on github
> to collect bugfixes.=C2=A0 Tim Martin's is pretty good.
>
> https://github.com/timmartin/Plotutils/commits/master

Ah, OK.  Would be great if an official Git repo could be maintained on
Savannah.

Ludo=E2=80=99.


