|
From: <HBB...@t-...> - 2007-10-03 11:01:43
|
tma...@ya... wrote: > I changed 'set term cgm mono font 'times' 16'. Looks like the change to the new syntax for font/size specification meant to be common to all terminals: set term cgm mono font 'times,16' has broken parsing of the old-style "<font>" <size> syntax in the CGM driver. I suspect the 'break;' statement in the default case. [CCed to the developers' mailing list...] |
|
From: <HBB...@t-...> - 2007-10-03 17:45:36
|
Ethan A Merritt wrote: > On Wednesday 03 October 2007 04:01, Hans-Bernhard Bröker wrote: >> tma...@ya... wrote: > Both the new and the old syntax work here. > Tested in 4.2 and in CVS. > > In what version have you seen a failure? CVS current as of today: gnuplot> set term cgm Terminal type set to 'cgm' Options are 'landscape color rotate dashed width 432 linewidth 1 "Helvetica Bold" 12' gnuplot> set term cgm font "times" 18 Terminal type set to 'cgm' Options are 'landscape color rotate dashed width 432 linewidth 1 "times" 12' gnuplot> Note how the '18' fails to be picked up. |
|
From: Ethan M. <merritt@u.washington.edu> - 2007-10-03 18:36:06
|
On Wednesday 03 October 2007 10:44, Hans-Bernhard Br=F6ker wrote: > CVS current as of today: >=20 > gnuplot> set term cgm > Terminal type set to 'cgm' > Options are 'landscape color rotate dashed width 432 linewidth 1=20 > "Helvetica Bold" 12' > gnuplot> set term cgm font "times" 18 > Terminal type set to 'cgm' > Options are 'landscape color rotate dashed width 432 linewidth 1=20 > "times" 12' > gnuplot> >=20 > Note how the '18' fails to be picked up. Works here in 4.2.2, so this must be a CVS-only problem. I'll look at it... Hmmph. The problem is not new/old syntax per se. There was an incomplete switch from quote_str() to try_to_get_string(), leaving an extra c_token++ at the end of the font name parsing clause. E.g. set term cgm font "Times" 19 fails set term cgm font "Times" junk 19 succeeds I've now fixed this in CVS. =2D-=20 Ethan A Merritt |
|
From: Ethan A M. <merritt@u.washington.edu> - 2007-10-03 15:13:17
|
On Wednesday 03 October 2007 04:01, Hans-Bernhard Br=F6ker wrote: > tma...@ya... wrote: >=20 > > I changed 'set term cgm mono font 'times' 16'. >=20 > Looks like the change to the new syntax for font/size specification=20 > meant to be common to all terminals: >=20 > set term cgm mono font 'times,16' >=20 > has broken parsing of the old-style >=20 > "<font>" <size> >=20 > syntax in the CGM driver. I suspect the 'break;' statement in the=20 > default case. Both the new and the old syntax work here. Tested in 4.2 and in CVS. In what version have you seen a failure? =2D-=20 Ethan A Merritt |
|
From: Tatsuro M. <tma...@ya...> - 2007-10-03 23:28:33
|
--- Ethan A Merritt <merritt@u.washington.edu> wrote:
I've now fixed this in CVS.
***
Thanks! I have confirmed the fix.
On the other hands,
gnuplot> help set term cgm
Syntax:
set terminal cgm {<mode>} {<color>} {<rotation>} {solid | dashed}
{width <plot_width>} {linewidth <line_width>}
{"<font>"} {<fontsize>}
If the new Syntax is recommended, is the following right ?
set terminal cgm {<mode>} {<color>} {<rotation>} {solid | dashed}
{width <plot_width>} {linewidth <line_width>}
{"<font>, <fontsize>"}
Regards
Tatsuro
--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
|
|
From: Ethan M. <merritt@u.washington.edu> - 2007-10-04 20:48:21
|
On Wednesday 03 October 2007 16:28, Tatsuro MATSUOKA wrote:
> --- Ethan A Merritt <merritt@u.washington.edu> wrote:
> I've now fixed this in CVS.
>
> ***
> Thanks! I have confirmed the fix.
>
>
> If the new Syntax is recommended, is the following right ?
>
> set terminal cgm {<mode>} {<color>} {<rotation>} {solid | dashed}
> {width <plot_width>} {linewidth <line_width>}
> {"<font>, <fontsize>"}
Not exactly. There should be a keyword "font" in front of the string:
set terminal cgm {<mode>} {<color>} {<rotation>} {solid | dashed}
{width <plot_width>} {linewidth <line_width>}
{font "<font>, <fontsize>"}
--
Ethan A Merritt
|
|
From: Tatsuro M. <tma...@ya...> - 2007-10-03 19:55:04
|
--- Ethan A Merritt <merritt@u.washington.edu> wrote: > Both the new and the old syntax work here. > Tested in 4.2 and in CVS. Thanks for your reply. I apologized that I forgot to aet my name for the Mailer. My name is Tatsuro MATSUOKA. I found it in the CVS version prepared on the cygwin. I tried new syntax on CVS. It worked well. The CVS gnuplot source was download at yesterday and build it under the cygwin. I also tested by the cvs wgnuplot which was distributed by Prof. Kakuto. http://www.ring.gr.jp/pub/text/TeX/ptex-win32/utils/gnuplot-43pl0w32.zip The result was the same. New syntax worked well but old syntax did not work. CGM file is translated by the Microsoft office 2003 cgm file filter. For the ver. 4.2.2 of wgnuplot and gnuplot cygwin, the new and old syntaxes worked well. Anyway new syntax works for both 4.2.2 and cvs, I will use the new syntax. OH TH, When the syntax was changed ? G N U P L O T Version 4.3 patchlevel 0 last modified June 2007 System: CYGWIN_NT-5.1 1.5.24(0.156/4/2) gnuplot> help set term cgm Syntax: set terminal cgm {<mode>} {<color>} {<rotation>} {solid | dashed} {width <plot_width>} {linewidth <line_width>} {"<font>"} {<fontsize>} {<color0> <color1> <color2> ...} Help seems to remain in old syntax style..... Regards, *************************************************************** Dr. Tatsuro MATSUOKA Associate Professor Department of Molecular Design and Engineering Graduate School of Engineering Nagoya University Furo-cho, Chikusa-ku, Nagoya, 464-8603, Japan E-mail mat...@nu... tma...@ya...(gnuplot ML specific) Tel. +81(Japan)-52-789-3274 FAX +81(Japan)-52-789-3273 **************************************************************** -------------------------------------- Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar http://pr.mail.yahoo.co.jp/toolbar/ |