Bug#909649: gnuplot: out of range data in tikz terminal when scaling y with two decimals
Agustin Martin
agmartin at debian.org
Wed Sep 26 11:20:16 BST 2018
Package: gnuplot
Version: 5.2.4+dfsg1-1
Severity: normal
Hi,
Yesterday I noticed a strange behavior in the tikz terminal when I use more
than one non null decimal in y scale as in
set term tikz monochrome originreset scale 1.05,0.65
set term tikz monochrome originreset scale 1.05,0.61
This results in y values going crazy and making LateX fail because of data
out of range; e.g. for 0.61,
\draw[gp path] (0.000,214748.272)--(0.180,214748.272);
\draw[gp path] (11.376,214748.272)--(11.196,214748.272);
This does not happen if only one decimal is used or if the second one is 0.
set term tikz monochrome originreset scale 1.05,0.60
set term tikz monochrome originreset scale 1.05,0.6
\draw[gp path] (0.000,0.433)--(0.180,0.433);
\draw[gp path] (11.376,0.433)--(11.196,0.433);
I am attaching the sources used and the generated tikz in the three most
relevant cases for a minimal example. Results for 0.6 are similar to those
with 0.60.
This also happens with testing 5.2.2+dfsg1-2, but not with stable
5.0.5+dfsg1-6+deb9u1.
Regards,
--
Agustin
-------------- next part --------------
reset
set nokey
set samples 31
set term tikz monochrome originreset scale 1.05,0.60
set output "test-60.tikz"
plot [0:90] sin(x)
set output
-------------- next part --------------
reset
set nokey
set samples 31
set term tikz monochrome originreset scale 1.05,0.61
set output "test-61.tikz"
plot [0:90] sin(x)
set output
-------------- next part --------------
reset
set nokey
set samples 31
set term tikz monochrome originreset scale 1.05,0.65
set output "test-65.tikz"
plot [0:90] sin(x)
set output
-------------- next part --------------
\begin{tikzpicture}[gnuplot]
%% generated with GNUPLOT 5.2p4 (Lua 5.3; terminal rev. 99 , script rev. 105)
%% mié 26 sep 2018 12:01:27 CEST
\gpmonochromelines
\path (-1.196,-0.616) rectangle (11.929,4.634);
\gpcolor{color=gp lt color border}
\gpsetlinetype{gp lt border}
\gpsetdashtype{gp dt solid}
\gpsetlinewidth{1.00}
\draw[gp path] (0.000,0.000)--(0.180,0.000);
\draw[gp path] (11.376,0.000)--(11.196,0.000);
\node[gp node right] at (-0.184,0.000) {$-1$};
\draw[gp path] (0.000,0.433)--(0.180,0.433);
\draw[gp path] (11.376,0.433)--(11.196,0.433);
\node[gp node right] at (-0.184,0.433) {$-0.8$};
\draw[gp path] (0.000,0.865)--(0.180,0.865);
\draw[gp path] (11.376,0.865)--(11.196,0.865);
\node[gp node right] at (-0.184,0.865) {$-0.6$};
\draw[gp path] (0.000,1.297)--(0.180,1.297);
\draw[gp path] (11.376,1.297)--(11.196,1.297);
\node[gp node right] at (-0.184,1.297) {$-0.4$};
\draw[gp path] (0.000,1.730)--(0.180,1.730);
\draw[gp path] (11.376,1.730)--(11.196,1.730);
\node[gp node right] at (-0.184,1.730) {$-0.2$};
\draw[gp path] (0.000,2.163)--(0.180,2.163);
\draw[gp path] (11.376,2.163)--(11.196,2.163);
\node[gp node right] at (-0.184,2.163) {$0$};
\draw[gp path] (0.000,2.595)--(0.180,2.595);
\draw[gp path] (11.376,2.595)--(11.196,2.595);
\node[gp node right] at (-0.184,2.595) {$0.2$};
\draw[gp path] (0.000,3.028)--(0.180,3.028);
\draw[gp path] (11.376,3.028)--(11.196,3.028);
\node[gp node right] at (-0.184,3.028) {$0.4$};
\draw[gp path] (0.000,3.460)--(0.180,3.460);
\draw[gp path] (11.376,3.460)--(11.196,3.460);
\node[gp node right] at (-0.184,3.460) {$0.6$};
\draw[gp path] (0.000,3.893)--(0.180,3.893);
\draw[gp path] (11.376,3.893)--(11.196,3.893);
\node[gp node right] at (-0.184,3.893) {$0.8$};
\draw[gp path] (0.000,4.325)--(0.180,4.325);
\draw[gp path] (11.376,4.325)--(11.196,4.325);
\node[gp node right] at (-0.184,4.325) {$1$};
\draw[gp path] (0.000,0.000)--(0.000,0.180);
\draw[gp path] (0.000,4.325)--(0.000,4.145);
\node[gp node center] at (0.000,-0.308) {$0$};
\draw[gp path] (1.264,0.000)--(1.264,0.180);
\draw[gp path] (1.264,4.325)--(1.264,4.145);
\node[gp node center] at (1.264,-0.308) {$10$};
\draw[gp path] (2.528,0.000)--(2.528,0.180);
\draw[gp path] (2.528,4.325)--(2.528,4.145);
\node[gp node center] at (2.528,-0.308) {$20$};
\draw[gp path] (3.792,0.000)--(3.792,0.180);
\draw[gp path] (3.792,4.325)--(3.792,4.145);
\node[gp node center] at (3.792,-0.308) {$30$};
\draw[gp path] (5.056,0.000)--(5.056,0.180);
\draw[gp path] (5.056,4.325)--(5.056,4.145);
\node[gp node center] at (5.056,-0.308) {$40$};
\draw[gp path] (6.320,0.000)--(6.320,0.180);
\draw[gp path] (6.320,4.325)--(6.320,4.145);
\node[gp node center] at (6.320,-0.308) {$50$};
\draw[gp path] (7.584,0.000)--(7.584,0.180);
\draw[gp path] (7.584,4.325)--(7.584,4.145);
\node[gp node center] at (7.584,-0.308) {$60$};
\draw[gp path] (8.848,0.000)--(8.848,0.180);
\draw[gp path] (8.848,4.325)--(8.848,4.145);
\node[gp node center] at (8.848,-0.308) {$70$};
\draw[gp path] (10.112,0.000)--(10.112,0.180);
\draw[gp path] (10.112,4.325)--(10.112,4.145);
\node[gp node center] at (10.112,-0.308) {$80$};
\draw[gp path] (11.376,0.000)--(11.376,0.180);
\draw[gp path] (11.376,4.325)--(11.376,4.145);
\node[gp node center] at (11.376,-0.308) {$90$};
\draw[gp path] (0.000,4.325)--(0.000,0.000)--(11.376,0.000)--(11.376,4.325)--cycle;
\draw[gp path] (0.000,2.163)--(0.379,2.468)--(0.758,1.558)--(1.138,3.054)--(1.517,1.002)%
--(1.896,3.569)--(2.275,0.538)--(2.654,3.972)--(3.034,0.204)--(3.413,4.231)--(3.792,0.026)%
--(4.171,4.325)--(4.550,0.018)--(4.930,4.247)--(5.309,0.181)--(5.688,4.003)--(6.067,0.501)%
--(6.446,3.612)--(6.826,0.954)--(7.205,3.106)--(7.584,1.503)--(7.963,2.524)--(8.342,2.105)%
--(8.722,1.914)--(9.101,2.711)--(9.480,1.324)--(9.859,3.274)--(10.238,0.800)--(10.618,3.748)%
--(10.997,0.385)--(11.376,4.096);
\draw[gp path] (0.000,4.325)--(0.000,0.000)--(11.376,0.000)--(11.376,4.325)--cycle;
%% coordinates of the plot area
\gpdefrectangularnode{gp plot 1}{\pgfpoint{0.000cm}{0.000cm}}{\pgfpoint{11.376cm}{4.325cm}}
\end{tikzpicture}
%% gnuplot variables
-------------- next part --------------
\begin{tikzpicture}[gnuplot]
%% generated with GNUPLOT 5.2p4 (Lua 5.3; terminal rev. 99 , script rev. 105)
%% mié 26 sep 2018 12:01:02 CEST
\gpmonochromelines
\path (-1.196,-0.616) rectangle (11.929,4.721);
\gpcolor{color=gp lt color border}
\gpsetlinetype{gp lt border}
\gpsetdashtype{gp dt solid}
\gpsetlinewidth{1.00}
\draw[gp path] (0.000,0.000)--(0.180,0.000);
\draw[gp path] (11.376,0.000)--(11.196,0.000);
\node[gp node right] at (-0.184,0.000) {$-1$};
\draw[gp path] (0.000,214748.272)--(0.180,214748.272);
\draw[gp path] (11.376,214748.272)--(11.196,214748.272);
\node[gp node right] at (-0.184,214748.272) {$-0.8$};
\draw[gp path] (0.000,429496.545)--(0.180,429496.545);
\draw[gp path] (11.376,429496.545)--(11.196,429496.545);
\node[gp node right] at (-0.184,429496.545) {$-0.6$};
\draw[gp path] (0.000,644244.817)--(0.180,644244.817);
\draw[gp path] (11.376,644244.817)--(11.196,644244.817);
\node[gp node right] at (-0.184,644244.817) {$-0.4$};
\draw[gp path] (0.000,858993.090)--(0.180,858993.090);
\draw[gp path] (11.376,858993.090)--(11.196,858993.090);
\node[gp node right] at (-0.184,858993.090) {$-0.2$};
\draw[gp path] (0.000,1073741.362)--(0.180,1073741.362);
\draw[gp path] (11.376,1073741.362)--(11.196,1073741.362);
\node[gp node right] at (-0.184,1073741.362) {$0$};
\draw[gp path] (0.000,1288489.634)--(0.180,1288489.634);
\draw[gp path] (11.376,1288489.634)--(11.196,1288489.634);
\node[gp node right] at (-0.184,1288489.634) {$0.2$};
\draw[gp path] (0.000,1503237.907)--(0.180,1503237.907);
\draw[gp path] (11.376,1503237.907)--(11.196,1503237.907);
\node[gp node right] at (-0.184,1503237.907) {$0.4$};
\draw[gp path] (0.000,1717986.179)--(0.180,1717986.179);
\draw[gp path] (11.376,1717986.179)--(11.196,1717986.179);
\node[gp node right] at (-0.184,1717986.179) {$0.6$};
\draw[gp path] (0.000,1932734.452)--(0.180,1932734.452);
\draw[gp path] (11.376,1932734.452)--(11.196,1932734.452);
\node[gp node right] at (-0.184,1932734.452) {$0.8$};
\draw[gp path] (0.000,2147482.724)--(0.180,2147482.724);
\draw[gp path] (11.376,2147482.724)--(11.196,2147482.724);
\node[gp node right] at (-0.184,2147482.724) {$1$};
\draw[gp path] (0.000,0.000)--(0.000,0.180);
\draw[gp path] (0.000,2147482.724)--(0.000,2147482.544);
\node[gp node center] at (0.000,-0.308) {$0$};
\draw[gp path] (1.264,0.000)--(1.264,0.180);
\draw[gp path] (1.264,2147482.724)--(1.264,2147482.544);
\node[gp node center] at (1.264,-0.308) {$10$};
\draw[gp path] (2.528,0.000)--(2.528,0.180);
\draw[gp path] (2.528,2147482.724)--(2.528,2147482.544);
\node[gp node center] at (2.528,-0.308) {$20$};
\draw[gp path] (3.792,0.000)--(3.792,0.180);
\draw[gp path] (3.792,2147482.724)--(3.792,2147482.544);
\node[gp node center] at (3.792,-0.308) {$30$};
\draw[gp path] (5.056,0.000)--(5.056,0.180);
\draw[gp path] (5.056,2147482.724)--(5.056,2147482.544);
\node[gp node center] at (5.056,-0.308) {$40$};
\draw[gp path] (6.320,0.000)--(6.320,0.180);
\draw[gp path] (6.320,2147482.724)--(6.320,2147482.544);
\node[gp node center] at (6.320,-0.308) {$50$};
\draw[gp path] (7.584,0.000)--(7.584,0.180);
\draw[gp path] (7.584,2147482.724)--(7.584,2147482.544);
\node[gp node center] at (7.584,-0.308) {$60$};
\draw[gp path] (8.848,0.000)--(8.848,0.180);
\draw[gp path] (8.848,2147482.724)--(8.848,2147482.544);
\node[gp node center] at (8.848,-0.308) {$70$};
\draw[gp path] (10.112,0.000)--(10.112,0.180);
\draw[gp path] (10.112,2147482.724)--(10.112,2147482.544);
\node[gp node center] at (10.112,-0.308) {$80$};
\draw[gp path] (11.376,0.000)--(11.376,0.180);
\draw[gp path] (11.376,2147482.724)--(11.376,2147482.544);
\node[gp node center] at (11.376,-0.308) {$90$};
\draw[gp path] (0.000,2147482.724)--(0.000,0.000)--(11.376,0.000)--(11.376,2147482.724)--cycle;
\draw[gp path] (0.000,1073741.362)--(0.379,1225267.752)--(0.758,773721.384)--(1.138,1516250.026)--(1.517,497600.826)%
--(1.896,1771982.313)--(2.275,267375.293)--(2.654,1972093.127)--(3.034,101384.418)--(3.413,2100641.754)--(3.792,12850.940)%
--(4.171,2147388.085)--(4.550,8827.385)--(4.930,2108608.333)--(5.309,89634.267)--(5.688,1987391.671)--(6.067,248834.556)%
--(6.446,1793394.150)--(6.826,473746.448)--(7.205,1542069.500)--(7.584,746453.591)--(7.963,1253438.100)--(8.342,1045232.290)%
--(8.722,950492.160)--(9.101,1346282.005)--(9.480,657364.181)--(9.859,1625621.289)--(10.238,397404.569)--(10.618,1860998.135)%
--(10.997,191321.559)--(11.376,2033662.557);
\draw[gp path] (0.000,2147482.724)--(0.000,0.000)--(11.376,0.000)--(11.376,2147482.724)--cycle;
%% coordinates of the plot area
\gpdefrectangularnode{gp plot 1}{\pgfpoint{0.000cm}{0.000cm}}{\pgfpoint{11.376cm}{2147482.724cm}}
\end{tikzpicture}
%% gnuplot variables
-------------- next part --------------
\begin{tikzpicture}[gnuplot]
%% generated with GNUPLOT 5.2p4 (Lua 5.3; terminal rev. 99 , script rev. 105)
%% mié 26 sep 2018 11:59:29 CEST
\gpmonochromelines
\path (-1.196,-0.616) rectangle (11.929,5.072);
\gpcolor{color=gp lt color border}
\gpsetlinetype{gp lt border}
\gpsetdashtype{gp dt solid}
\gpsetlinewidth{1.00}
\draw[gp path] (0.000,0.000)--(0.180,0.000);
\draw[gp path] (11.376,0.000)--(11.196,0.000);
\node[gp node right] at (-0.184,0.000) {$-1$};
\draw[gp path] (0.000,214748.272)--(0.180,214748.272);
\draw[gp path] (11.376,214748.272)--(11.196,214748.272);
\node[gp node right] at (-0.184,214748.272) {$-0.8$};
\draw[gp path] (0.000,429496.545)--(0.180,429496.545);
\draw[gp path] (11.376,429496.545)--(11.196,429496.545);
\node[gp node right] at (-0.184,429496.545) {$-0.6$};
\draw[gp path] (0.000,644244.817)--(0.180,644244.817);
\draw[gp path] (11.376,644244.817)--(11.196,644244.817);
\node[gp node right] at (-0.184,644244.817) {$-0.4$};
\draw[gp path] (0.000,858993.090)--(0.180,858993.090);
\draw[gp path] (11.376,858993.090)--(11.196,858993.090);
\node[gp node right] at (-0.184,858993.090) {$-0.2$};
\draw[gp path] (0.000,1073741.362)--(0.180,1073741.362);
\draw[gp path] (11.376,1073741.362)--(11.196,1073741.362);
\node[gp node right] at (-0.184,1073741.362) {$0$};
\draw[gp path] (0.000,1288489.634)--(0.180,1288489.634);
\draw[gp path] (11.376,1288489.634)--(11.196,1288489.634);
\node[gp node right] at (-0.184,1288489.634) {$0.2$};
\draw[gp path] (0.000,1503237.907)--(0.180,1503237.907);
\draw[gp path] (11.376,1503237.907)--(11.196,1503237.907);
\node[gp node right] at (-0.184,1503237.907) {$0.4$};
\draw[gp path] (0.000,1717986.179)--(0.180,1717986.179);
\draw[gp path] (11.376,1717986.179)--(11.196,1717986.179);
\node[gp node right] at (-0.184,1717986.179) {$0.6$};
\draw[gp path] (0.000,1932734.452)--(0.180,1932734.452);
\draw[gp path] (11.376,1932734.452)--(11.196,1932734.452);
\node[gp node right] at (-0.184,1932734.452) {$0.8$};
\draw[gp path] (0.000,2147482.724)--(0.180,2147482.724);
\draw[gp path] (11.376,2147482.724)--(11.196,2147482.724);
\node[gp node right] at (-0.184,2147482.724) {$1$};
\draw[gp path] (0.000,0.000)--(0.000,0.180);
\draw[gp path] (0.000,2147482.724)--(0.000,2147482.544);
\node[gp node center] at (0.000,-0.308) {$0$};
\draw[gp path] (1.264,0.000)--(1.264,0.180);
\draw[gp path] (1.264,2147482.724)--(1.264,2147482.544);
\node[gp node center] at (1.264,-0.308) {$10$};
\draw[gp path] (2.528,0.000)--(2.528,0.180);
\draw[gp path] (2.528,2147482.724)--(2.528,2147482.544);
\node[gp node center] at (2.528,-0.308) {$20$};
\draw[gp path] (3.792,0.000)--(3.792,0.180);
\draw[gp path] (3.792,2147482.724)--(3.792,2147482.544);
\node[gp node center] at (3.792,-0.308) {$30$};
\draw[gp path] (5.056,0.000)--(5.056,0.180);
\draw[gp path] (5.056,2147482.724)--(5.056,2147482.544);
\node[gp node center] at (5.056,-0.308) {$40$};
\draw[gp path] (6.320,0.000)--(6.320,0.180);
\draw[gp path] (6.320,2147482.724)--(6.320,2147482.544);
\node[gp node center] at (6.320,-0.308) {$50$};
\draw[gp path] (7.584,0.000)--(7.584,0.180);
\draw[gp path] (7.584,2147482.724)--(7.584,2147482.544);
\node[gp node center] at (7.584,-0.308) {$60$};
\draw[gp path] (8.848,0.000)--(8.848,0.180);
\draw[gp path] (8.848,2147482.724)--(8.848,2147482.544);
\node[gp node center] at (8.848,-0.308) {$70$};
\draw[gp path] (10.112,0.000)--(10.112,0.180);
\draw[gp path] (10.112,2147482.724)--(10.112,2147482.544);
\node[gp node center] at (10.112,-0.308) {$80$};
\draw[gp path] (11.376,0.000)--(11.376,0.180);
\draw[gp path] (11.376,2147482.724)--(11.376,2147482.544);
\node[gp node center] at (11.376,-0.308) {$90$};
\draw[gp path] (0.000,2147482.724)--(0.000,0.000)--(11.376,0.000)--(11.376,2147482.724)--cycle;
\draw[gp path] (0.000,1073741.362)--(0.379,1225267.752)--(0.758,773721.384)--(1.138,1516250.026)--(1.517,497600.826)%
--(1.896,1771982.313)--(2.275,267375.293)--(2.654,1972093.127)--(3.034,101384.418)--(3.413,2100641.754)--(3.792,12850.940)%
--(4.171,2147388.085)--(4.550,8827.385)--(4.930,2108608.333)--(5.309,89634.267)--(5.688,1987391.671)--(6.067,248834.556)%
--(6.446,1793394.150)--(6.826,473746.448)--(7.205,1542069.500)--(7.584,746453.591)--(7.963,1253438.100)--(8.342,1045232.290)%
--(8.722,950492.160)--(9.101,1346282.005)--(9.480,657364.181)--(9.859,1625621.289)--(10.238,397404.569)--(10.618,1860998.135)%
--(10.997,191321.559)--(11.376,2033662.557);
\draw[gp path] (0.000,2147482.724)--(0.000,0.000)--(11.376,0.000)--(11.376,2147482.724)--cycle;
%% coordinates of the plot area
\gpdefrectangularnode{gp plot 1}{\pgfpoint{0.000cm}{0.000cm}}{\pgfpoint{11.376cm}{2147482.724cm}}
\end{tikzpicture}
%% gnuplot variables
More information about the debian-science-maintainers
mailing list