From MAILER-DAEMON Wed Oct 02 07:04:20 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VRKE8-0003zo-6L
	for mharc-bug-plotutils@gnu.org; Wed, 02 Oct 2013 07:04:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35349)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VRKDy-0003yL-Lj
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 07:04:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VRKDq-0001Qd-Jj
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 07:04:10 -0400
Received: from zhhdzmsp-smta16.bluewin.ch ([195.186.227.132]:38099)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>)
	id 1VRKDh-0001Os-D5; Wed, 02 Oct 2013 07:03:53 -0400
Received: from [195.186.99.131] ([195.186.99.131:54501]
	helo=zhbdzmsp-smta13.bluewin.ch)
	by zhhdzmsp-smta16.bluewin.ch (envelope-from
	<daniel.llorens@bluewin.ch>)
	(ecelerity 2.2.3.47 r(39824M)) with ESMTP
	id 43/C0-26389-69DFB425; Wed, 02 Oct 2013 11:03:50 +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 51DDDBBD083404A2; Wed, 2 Oct 2013 11:03: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: <878uyjr3wh.fsf@gnu.org>
Date: Wed, 2 Oct 2013 13:03:41 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <976D839F-F877-4B86-9419-185393B6249B@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>
	<871u4bssli.fsf@gnu.org>
	<1380206583.61744.YahooMailNeo@web120404.mail.ne1.yahoo.com>
	<878uyjr3wh.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.132
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
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, 02 Oct 2013 11:04:19 -0000


On Sep 26, 2013, at 17:36, Ludovic Court=E8s wrote:

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

This requires that a new project be registered, right? Should I try to =
do that?





From MAILER-DAEMON Wed Oct 02 08:54:58 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VRLxC-0003Ks-6k
	for mharc-bug-plotutils@gnu.org; Wed, 02 Oct 2013 08:54:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59490)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VRLx4-0003K5-6R
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 08:54:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <ludo@gnu.org>) id 1VRLww-0003nX-NB
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 08:54:50 -0400
Received: from hera.aquilenet.fr ([141.255.128.1]:50789)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@gnu.org>)
	id 1VRLww-0003nC-Gv
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 08:54:42 -0400
Received: from localhost (localhost [127.0.0.1])
	by hera.aquilenet.fr (Postfix) with ESMTP id DA4DC1650;
	Wed,  2 Oct 2013 14:49:39 +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 Hw9OUvrDGx0Q; Wed,  2 Oct 2013 14:49:39 +0200 (CEST)
Received: from pluto (reverse-83.fdn.fr [80.67.176.83])
	by hera.aquilenet.fr (Postfix) with ESMTPSA id 8014215D0;
	Wed,  2 Oct 2013 14:49:39 +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>
	<871u4bssli.fsf@gnu.org>
	<1380206583.61744.YahooMailNeo@web120404.mail.ne1.yahoo.com>
	<878uyjr3wh.fsf@gnu.org>
	<976D839F-F877-4B86-9419-185393B6249B@bluewin.ch>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 11 =?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, 02 Oct 2013 14:49:38 +0200
In-Reply-To: <976D839F-F877-4B86-9419-185393B6249B@bluewin.ch> (Daniel
	Llorens's message of "Wed, 2 Oct 2013 13:03:41 +0200")
Message-ID: <87wqlv4z31.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>
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, 02 Oct 2013 12:54:56 -0000

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

> On Sep 26, 2013, at 17:36, Ludovic Court=C3=A8s wrote:
>
>> Ah, OK.  Would be great if an official Git repo could be maintained on
>> Savannah.
>
> This requires that a new project be registered, right? Should I try to do=
 that?

Yes, that would be great.

FWIW I emailed the maintainer and got no reply so far.  Regardless,
it=E2=80=99ll be useful to have the Savannah project set up.

Thanks,
Ludo=E2=80=99.


From MAILER-DAEMON Wed Oct 02 10:51:30 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VRNly-00073x-HX
	for mharc-bug-plotutils@gnu.org; Wed, 02 Oct 2013 10:51:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56074)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VRNlq-00072Q-Jp
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 10:51:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>) id 1VRNlj-000852-A1
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 10:51:22 -0400
Received: from zhbdzmsp-smta15.bluewin.ch ([195.186.99.132]:39070)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <daniel.llorens@bluewin.ch>)
	id 1VRNlj-00084Y-3f; Wed, 02 Oct 2013 10:51:15 -0400
Received: from [195.186.227.131] ([195.186.227.131:44539]
	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 11/9E-23978-0E23C425; Wed, 02 Oct 2013 14:51:12 +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 52330D9E01C1AFC2; Wed, 2 Oct 2013 14:51:12 +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: <87wqlv4z31.fsf@gnu.org>
Date: Wed, 2 Oct 2013 16:51:08 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <3F4D2308-D7B8-44ED-BE2A-98A3004559C9@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>
	<871u4bssli.fsf@gnu.org>
	<1380206583.61744.YahooMailNeo@web120404.mail.ne1.yahoo.com>
	<878uyjr3wh.fsf@gnu.org>
	<976D839F-F877-4B86-9419-185393B6249B@bluewin.ch>
	<87wqlv4z31.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" <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, 02 Oct 2013 14:51:29 -0000


On Oct 2, 2013, at 14:49, Ludovic Court=E8s wrote:

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

>> This requires that a new project be registered, right? Should I try =
to do that?
>=20
> Yes, that would be great.
>=20
> FWIW I emailed the maintainer and got no reply so far.  Regardless,
> it=92ll be useful to have the Savannah project set up.

I have applied at Savannah for a registration, now waiting for a reply.

Regards

	Daniel=


From MAILER-DAEMON Wed Oct 02 11:01:00 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VRNvA-0008DM-Ie
	for mharc-bug-plotutils@gnu.org; Wed, 02 Oct 2013 11:01:00 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57959)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <hg197@gmx.de>) id 1VRNv2-0008Cx-IV
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 11:00:59 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <hg197@gmx.de>) id 1VRNut-0002mF-JL
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 11:00:52 -0400
Received: from mout.gmx.net ([212.227.15.15]:64600)
	by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <hg197@gmx.de>)
	id 1VRNut-0002lx-9Q
	for bug-plotutils@gnu.org; Wed, 02 Oct 2013 11:00:43 -0400
Received: from [134.245.69.138] by msvc009 with HTTP; Wed Oct 02 17:00:41
	CEST 2013
MIME-Version: 1.0
Message-ID: <trinity-42cf4e0c-4833-4558-b27c-1d6ec50a804c-1380726041242@msvc009>
From: hg197@gmx.de
To: bug-plotutils@gnu.org
Content-Type: text/plain; charset=UTF-8
Importance: normal
Date: Wed, 2 Oct 2013 17:00:41 +0200 (CEST)
X-Priority: 3
X-Provags-ID: V03:K0:aaPh5rvuRA3zA5A/cOukiQCwGDsGGttwV81LlxYOotZ
	gIgJDxQLeLaMzQ1oiTSYQKDiPlyH2BPyPABMHVgNrVfWKslVYV
	QnuXk9kl/BLdcuQppa3UJ1lQJowF9gHJD2lwSxN3mmAu4vFntb
	z6d4yZGK7EUmfANg+Q9pYsHsI9cHsIo06W/nnOjT3LtRg5eGdd
	BUB7KA30UmoZjhI8aUAU6naYLx7UGAYqbppXkql+v1+OCrgwkC
	/SWZv/4ndBejWbJknfYuhMuQm/I0VRNO4IxJlHPAlKXo9qdCPm N2sVj0=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-Received-From: 212.227.15.15
Subject: [Bug-plotutils] Problem with libplotter : fmarker, circle, 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: Wed, 02 Oct 2013 15:01:00 -0000

Hi,

I do not know whether this is a bug or misunderstanding of the API. But I am trying to draw some data points with not pixle points but symbols.

I am using the following code lines : 
                         std::ofstream File("Histogram.png",std::ios::binary) ;
			Plotter::parampl("BITMAPSIZE",(char*)"1024x768") ;
			Plotter::parampl("BG_COLOR",(char*)"white") ;
			PNGPlotter plotter(std::cin,File,std::cerr) ;
					
			if(plotter.openpl() < 0)
			{
				std::cerr << "Error: no open png\n" ;
				File.close() ;
				return ;
			}
			
			plotter.erase() ;
                        plotter.fspace(_xmin,_ymin,_xmax,_ymax) ;
			
			plotter.flinewidth( 0.01*(_xmax-_xmin) ) ;
			
			plotter.pencolorname("black") ;

			// xachse
			plotter.fline(0,0,0.9*_xmax,0) ;
			// yachse
			plotter.fline(0,0,0,0.9*_ymax) ;

			plotter.endpath() ;

			plotter.pencolorname("red") ;
                        plotter.fmarker(hist_mean-hist_sigma,_ymax/2,2,2) ;
			
			plotter.fmarker(hist_mean+hist_sigma,_ymax*0.8,2,2) ;
			
			if(plotter.closepl() < 0)
			{
				std::cerr << "Error when closing png\n" ;
				File.close() ;
				return ;
			}
			File.close() ;


What I get are big stripes but not stars or any other symbols that  should occur. There are two tiny feature within this stripes at the data position, but sinde the stripes go horiziontally over the entire png image, they cannot be seen in a sense of being a representative of data. 

What is wrong with my code, or is there any hidden problem regarding PNGPlotter ?

Greetings,

Mathias


From MAILER-DAEMON Wed Oct 09 18:31:27 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VU2Hv-00024U-2j
	for mharc-bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:31:27 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46870)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2Hl-00023x-69
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:31:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2Hd-0003I9-Rz
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:31:17 -0400
Received: from smtp224.math.arizona.edu ([128.196.224.202]:58214)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2Hd-0002x0-MQ
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:31:09 -0400
Received: from Debian-exim by smtp224.math.arizona.edu with local-bsmtp (Exim
	4.80) (envelope-from <rsm@math.arizona.edu>) id 1VU2En-00039g-RV
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 15:28:15 -0700
Received: from squirrelmail.math.arizona.edu ([128.196.224.241])
	by smtp224.math.arizona.edu with esmtps
	(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2En-00039b-Nd
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 15:28:13 -0700
Received: from 128.196.224.79 (SquirrelMail authenticated user rsm)
	by squirrelmail.math.arizona.edu with HTTP;
	Wed, 9 Oct 2013 15:30:48 -0700 (MST)
Message-ID: <47158.128.196.224.79.1381357848.squirrel@squirrelmail.math.arizona.edu>
In-Reply-To: <mailman.225.1380729667.13882.bug-plotutils@gnu.org>
References: <mailman.225.1380729667.13882.bug-plotutils@gnu.org>
Date: Wed, 9 Oct 2013 15:30:48 -0700 (MST)
From: rsm@math.arizona.edu
To: bug-plotutils@gnu.org
User-Agent: SquirrelMail/1.4.9a
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Outgoing-Spam-Score: -1.0 (-)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 128.196.224.202
Subject: Re: [Bug-plotutils] Problem with libplotter : fmarker, circle, 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: Wed, 09 Oct 2013 22:31:25 -0000

Mathias, in reponse to your drawing problem, let me comment.
(I'm the plotutils maintainer, and I wrote all the
libplot/libplotter code.)

You had trouble getting correct output from a PNGPlotter, in
a C++ program.  I've compiled and executed a similar program
without trouble.  Here's my code, based on your code snippet;
it uses a PSPlotter instead of a PNGPlotter, but I hope that
doesn't matter.

#include <plotter.h>

int
main ()
{
  PlotterParams params;

  double _xmin = -10.0;
  double _ymin = -10.0;
  double _xmax = 50.0;
  double _ymax = 50.0;
  double hist_mean = 20.0;
  double hist_sigma = 4.0;

  Plotter::parampl ("BITMAPSIZE", (char*)"1024x768");
  Plotter::parampl ("BG_COLOR", (char*)"white");

  PSPlotter plotter (std::cin, std::cout, std::cerr);

  if (plotter.openpl () < 0)
    {
      std::cerr << "Error: no open ps\n";
      return 1;
    }

  plotter.erase ();
  plotter.fspace (_xmin, _ymin, _xmax, _ymax);

  plotter.flinewidth ( 0.01* (_xmax-_xmin) );

  plotter.pencolorname ("black");

  plotter.fline (0, 0, 0.9*_xmax, 0);
  plotter.fline (0, 0, 0, 0.9*_ymax);

  plotter.endpath ();

  plotter.pencolorname ("red");

  plotter.fmarker (hist_mean - hist_sigma, _ymax/2, 2, 2);
  plotter.fmarker (hist_mean + hist_sigma, _ymax*0.8, 2, 2);

  if (plotter.closepl () < 0)
    {
      std::cerr << "Error when closing plotter\n";
      return 1;
    }

  return 0;
}

The output (which can be piped to ghostview, to be displayed)
consists of two black line segments and two red marker symbols,
which are plus signs.

If you substitute GIFPlotter for PSPlotter, you'll get GIF
output instead of PS output, etc.  The machine I'm on doesn't
have PNG support, so I haven't tried a PNGPlotter yet.

When you compile and run this program, do you get the output
you should?  What if you use a PNGPlotter?

--Rob Maier
P.S.  You should really draw the two line segments by doing

  plotter.fline (0.9*_xmax, 0, 0, 0);
  plotter.fline (0, 0, 0, 0.9*_ymax);

instead.  That way, the line segments will join together.




From MAILER-DAEMON Wed Oct 09 18:49:42 2013
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1VU2Za-0004OZ-Qs
	for mharc-bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:49:42 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:49803)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2ZR-0004NZ-Ji
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:49:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2ZK-0008Oc-9B
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:49:33 -0400
Received: from smtp224.math.arizona.edu ([128.196.224.202]:58349)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2ZK-0008Na-3j
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 18:49:26 -0400
Received: from Debian-exim by smtp224.math.arizona.edu with local-bsmtp (Exim
	4.80) (envelope-from <rsm@math.arizona.edu>) id 1VU2Wf-0003Wj-P9
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 15:46:43 -0700
Received: from squirrelmail.math.arizona.edu ([128.196.224.241])
	by smtp224.math.arizona.edu with esmtps
	(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80)
	(envelope-from <rsm@math.arizona.edu>) id 1VU2Wf-0003We-L0
	for bug-plotutils@gnu.org; Wed, 09 Oct 2013 15:46:41 -0700
Received: from 128.196.224.79 (SquirrelMail authenticated user rsm)
	by squirrelmail.math.arizona.edu with HTTP;
	Wed, 9 Oct 2013 15:49:23 -0700 (MST)
Message-ID: <47165.128.196.224.79.1381358963.squirrel@squirrelmail.math.arizona.edu>
In-Reply-To: <mailman.225.1380729667.13882.bug-plotutils@gnu.org>
References: <mailman.225.1380729667.13882.bug-plotutils@gnu.org>
Date: Wed, 9 Oct 2013 15:49:23 -0700 (MST)
From: rsm@math.arizona.edu
To: bug-plotutils@gnu.org
User-Agent: SquirrelMail/1.4.9a
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Outgoing-Spam-Score: -1.0 (-)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 128.196.224.202
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: Wed, 09 Oct 2013 22:49:41 -0000

Daniel and Ludovic, greetings.  I'm the plotutils maintainer,
and have been out of touch with e-mail for a couple of weeks.
I'm finally getting caught up.

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.

Here are some comments on Daniel's suggestions in regard to
graph.

>Use as library (having graph functions in Plotutils).

This is a very good idea.  Ideally, there ought to be a
libgraph, which is built on top of libplot.  In turn,
libgraph could be linked into other applications, besides
graph.  Libgraph could gradually be extended to support
additional types of graph, such as polar graphs, 3-D graphs, etc.

Would you be interested in turning graph into a library?

> Multiline titles and labels.

This would be rather easy to add to graph (it would be
less ambitious than turning it into a library).

> Reading NaNs and Infs in data files.

This feature would be very easy to add to graph.

> Unicode support
> Transparency & pdf (I do eps -> pdf in the shell using a wrapper)

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?

Regards,
Rob






