From MAILER-DAEMON Mon Dec 15 07:01:01 2014
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1Y0UKj-0000w6-7L
	for mharc-bug-plotutils@gnu.org; Mon, 15 Dec 2014 07:01:01 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51014)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1Y0UKa-0000v0-55
	for bug-plotutils@gnu.org; Mon, 15 Dec 2014 07:00:58 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1Y0UKT-0006L2-4I
	for bug-plotutils@gnu.org; Mon, 15 Dec 2014 07:00:52 -0500
Received: from zhhdzmsp-smta16.bluewin.ch ([195.186.227.132]:53567)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>)
	id 1Y0UKK-0006FX-VU; Mon, 15 Dec 2014 07:00:37 -0500
Received: from [195.186.99.130] ([195.186.99.130:54248]
	helo=zhbdzmsp-smta11.bluewin.ch)
	by zhhdzmsp-smta16.bluewin.ch (envelope-from
	<daniel.llorens@bluewin.ch>)
	(ecelerity 3.5.7.40067 r(Platform:3.5.7.0)) with ESMTP
	id 40/0D-23924-16DCE845; Mon, 15 Dec 2014 12:00:33 +0000
Received: from 4box.hq.corp.viasat.com (62.2.203.131) by
	zhbdzmsp-smta11.bluewin.ch (8.5.142) (authenticated as
	dll@bluewin.ch) id 51E5C44E23C05798; Mon, 15 Dec 2014 12:00:33 +0000
From: Daniel Llorens <daniel.llorens@bluewin.ch>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Mon, 15 Dec 2014 13:00:23 +0100
Message-Id: <5B21B41B-B5BC-49DC-A8F3-3E2F2749228E@bluewin.ch>
To: rsm@math.arizona.edu
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-Received-From: 195.186.227.132
Cc: bug-plotutils@gnu.org, =?iso-8859-1?Q?Ludovic_Court=E8s?= <ludo@gnu.org>,
	Karl Berry <karl@freefriends.org>
Subject: Re: [Bug-plotutils] legend feature for graph, etc.
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: Mon, 15 Dec 2014 12:00:59 -0000


Hello Rob,

I didn't see this mail since I am not subscribed to the list. I should =
have followed up, I'm sorry. I'm reading it now because I've added the =
nan/inf feature to graph and that made me check the list again.

> I share your interest in getting things moving again, with
> plotutils.  My own interest is primarily in libplot/libplotter,
> and in low-level drawing primitives.  I always intended `graph'
> to be a sample application based on libplot, and hoped that other
> people would write additional ones.

Right, my main interest is as a graph user.

However, I think that having a public repository would be very useful. =
It would be possible to have all the various patchsets available in a =
single place, what the current state of development is, etc. And GNU =
provides this service, with Savannah.

> Would you be interested in turning graph into a library?

I think so, such a library would be useful to me. But I really can't =
promise that I have the ability to do the work in the little time I =
could devote to it :-/

> > Multiline titles and labels.
>=20
> This would be rather easy to add to graph (it would be
> less ambitious than turning it into a library).

I've been doing this with a hack involving subscripts and superscripts. =
Only works reasonably for two lines, but then I didn't need more. The =
hack is '\mk\spFirst line\ep\rt\sb\Second line\eb' in case it is useful =
to somebody.

> > Reading NaNs and Infs in data files.
>=20
> This feature would be very easy to add to graph.

Right. I've done this in =
https://gitorious.org/legend-patch-for-gnu-graph (last two patches, =
66a47e2 and dc6eff8). The changes are two:

* I require C99, where scanf is able to read inf and nan on its own. =
This also enables exp format to be read (before, only fixed point format =
was accepted).

* I fix the clip_line routines in plotter.c and misc.c to clip correctly =
the infinities, and I skip points with nan values in reader.c.

> These would really be enhancements to libplot, on which graph
> is based.  (Adding Unicode support to libplot would be a lot of work,
> if it were implemented consistently across all output formats.)
> Could you tell me more about your need for Unicode, and
> especially about the issue of transparency and pdf's?

The need for unicode is to add math symbols or greek in the labels, the =
titles, etc. I think nowadays it's an expected feature for anything that =
handles text, but I absolutely understand that it can be a lot of work. =
The escape sequences do work for what I need, but it's not ideal to have =
to refer to special escape sequences that in practice I need for this =
one program and nothing else.

I'd like to have transparency for figures with very many lines, or for =
filled regions, to be able to see the overlaps.

Regards

	Daniel



