|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
Zooming issues in interactive terminalsI encountered some issues when trying to use the mouse zoom on data sets
plotted on logarithmic axes. I have attached a sample data file. When I start a new gnuplot session, and plot the data using set log x; set log y; plot "test.dat" u 1:2 w lp and then try to zoom into the top right corner of the plot, there is a good chance that I get an error message along the lines of gnuplot> set xr[2645923.77833:105299864.051]; set yr[525542494246:2.96579249916e+13]; set x2r[ 6.42110: 8.02058]; set y2r[ 11.3442: 12.9336] ^ integer overflow; change to floating point I observed this in both the X11 and the wxt terminals, using gnuplot 4.2.3 on a linux box. Can anyone else reproduce this behavior? Thanks, Lutz 1 175970 1.02 179565 1.0404 183233 1.06121 186976 1.08243 190795 1.10408 194693 1.12616 198670 1.14869 202728 1.17166 206869 1.19509 211095 1.21899 215407 1.24337 219807 1.26824 224297 1.29361 228878 1.31948 233554 1.34587 238325 1.37279 243193 1.40024 248161 1.42825 253230 1.45681 258402 1.48595 263681 1.51567 269067 1.54598 274563 1.5769 280172 1.60844 285895 1.64061 291735 1.67342 297694 1.70689 303775 1.74102 309980 1.77584 316312 1.81136 322774 1.84759 329367 1.88454 336095 1.92223 342960 1.96068 349966 1.99989 357115 2.03989 364410 2.08069 371854 2.1223 379449 2.16474 387200 2.20804 395110 2.2522 403181 2.29724 411416 2.34319 419820 2.39005 428396 2.43785 437147 2.48661 446077 2.53634 455189 2.58707 464487 2.63881 473975 2.69159 483657 2.74542 493536 2.80033 503618 2.85633 513905 2.91346 524403 2.97173 535115 3.03117 546046 3.09179 557200 3.15362 568582 3.2167 580196 3.28103 592048 3.34665 604142 3.41358 616483 3.48186 629075 3.55149 641926 3.62252 655038 3.69497 668419 3.76887 682073 3.84425 696005 3.92114 710223 3.99956 724730 4.07955 739534 4.16114 754641 4.24436 770056 4.32925 785786 4.41584 801837 4.50415 818216 4.59424 834930 4.68612 851985 4.77984 869389 4.87544 887148 4.97295 905270 5.07241 923762 5.17386 942631 5.27733 961887 5.38288 981535 5.49054 1.00158e+06 5.60035 1.02204e+06 5.71235 1.04292e+06 5.8266 1.06423e+06 5.94313 1.08596e+06 6.062 1.10815e+06 6.18324 1.13078e+06 6.3069 1.15388e+06 6.43304 1.17745e+06 6.5617 1.2015e+06 6.69293 1.22605e+06 6.82679 1.25109e+06 6.96333 1.27665e+06 7.10259 1.30273e+06 7.24465 1.32934e+06 7.38954 1.35649e+06 7.53733 1.3842e+06 7.68808 1.41248e+06 7.84184 1.44133e+06 7.99867 1.47077e+06 8.15865 1.50081e+06 8.32182 1.53147e+06 8.48826 1.56275e+06 8.65802 1.59468e+06 8.83118 1.62725e+06 9.00781 1.66049e+06 9.18796 1.69441e+06 9.37172 1.72902e+06 9.55916 1.76434e+06 9.75034 1.80038e+06 9.94535 1.83716e+06 10.1443 1.87469e+06 10.3471 1.91298e+06 10.5541 1.95206e+06 10.7652 1.99193e+06 10.9805 2.03262e+06 11.2001 2.07414e+06 11.4241 2.11651e+06 11.6526 2.15974e+06 11.8856 2.20386e+06 12.1233 2.24888e+06 12.3658 2.29482e+06 12.6131 2.34169e+06 12.8654 2.38953e+06 13.1227 2.43834e+06 13.3851 2.48815e+06 13.6528 2.53897e+06 13.9259 2.59083e+06 14.2044 2.64376e+06 14.4885 2.69776e+06 14.7783 2.75287e+06 15.0738 2.8091e+06 15.3753 2.86648e+06 15.6828 2.92504e+06 15.9965 2.98479e+06 16.3164 3.04576e+06 16.6427 3.10797e+06 16.9756 3.17146e+06 17.3151 3.23624e+06 17.6614 3.30235e+06 18.0146 3.36981e+06 18.3749 3.43864e+06 18.7424 3.50888e+06 19.1173 3.58056e+06 19.4996 3.6537e+06 19.8896 3.72834e+06 20.2874 3.80449e+06 20.6931 3.88221e+06 21.107 3.96151e+06 21.5291 4.04243e+06 21.9597 4.12501e+06 22.3989 4.20927e+06 22.8469 4.29525e+06 23.3038 4.38299e+06 23.7699 4.47252e+06 24.2453 4.56388e+06 24.7302 4.65711e+06 25.2248 4.75224e+06 25.7293 4.84931e+06 26.2439 4.94837e+06 26.7688 5.04945e+06 27.3042 5.1526e+06 27.8502 5.25785e+06 28.4072 5.36525e+06 28.9754 5.47485e+06 29.5549 5.58668e+06 30.146 5.7008e+06 30.7489 5.81725e+06 31.3639 5.93608e+06 31.9912 6.05734e+06 32.631 6.18107e+06 33.2836 6.30733e+06 33.9493 6.43617e+06 34.6283 6.56765e+06 35.3208 6.7018e+06 36.0272 6.8387e+06 36.7478 6.9784e+06 37.4827 7.12094e+06 38.2324 7.2664e+06 38.9971 7.41483e+06 39.777 7.5663e+06 40.5725 7.72085e+06 41.384 7.87857e+06 42.2117 8.0395e+06 43.0559 8.20373e+06 43.917 8.37131e+06 44.7954 8.54231e+06 45.6913 8.7168e+06 46.6051 8.89486e+06 47.5372 9.07655e+06 48.4879 9.26196e+06 49.4577 9.45116e+06 50.4468 9.64422e+06 51.4558 9.84122e+06 52.4849 1.00422e+07 53.5346 1.02474e+07 54.6053 1.04567e+07 55.6974 1.06703e+07 56.8113 1.08883e+07 57.9476 1.11107e+07 59.1065 1.13376e+07 60.2886 1.15692e+07 61.4944 1.18056e+07 62.7243 1.20467e+07 63.9788 1.22928e+07 65.2584 1.25439e+07 66.5635 1.28001e+07 67.8948 1.30616e+07 69.2527 1.33284e+07 70.6378 1.36007e+07 72.0505 1.38785e+07 73.4915 1.4162e+07 74.9614 1.44513e+07 76.4606 1.47465e+07 77.9898 1.50477e+07 79.5496 1.53551e+07 81.1406 1.56687e+07 82.7634 1.59888e+07 84.4187 1.63154e+07 86.107 1.66487e+07 87.8292 1.69888e+07 89.5858 1.73358e+07 91.3775 1.76899e+07 93.205 1.80513e+07 95.0691 1.842e+07 96.9705 1.87963e+07 98.9099 1.91802e+07 100.888 1.9572e+07 102.906 1.99718e+07 104.964 2.03798e+07 107.063 2.07961e+07 109.205 2.12209e+07 111.389 2.16544e+07 113.616 2.20967e+07 115.889 2.25481e+07 118.207 2.30086e+07 120.571 2.34786e+07 122.982 2.39582e+07 125.442 2.44476e+07 127.951 2.4947e+07 130.51 2.54566e+07 133.12 2.59766e+07 135.782 2.65073e+07 138.498 2.70487e+07 141.268 2.76012e+07 144.093 2.81651e+07 146.975 2.87404e+07 149.914 2.93275e+07 152.913 2.99265e+07 155.971 3.05378e+07 159.09 3.11616e+07 162.272 3.17982e+07 165.518 3.24477e+07 168.828 3.31105e+07 172.205 3.37869e+07 175.649 3.44771e+07 179.162 3.51813e+07 182.745 3.59e+07 186.4 3.66333e+07 190.128 3.73816e+07 193.93 3.81452e+07 197.809 3.89244e+07 201.765 3.97195e+07 205.8 4.05309e+07 209.916 4.13588e+07 214.115 4.22036e+07 218.397 4.30657e+07 222.765 4.39454e+07 227.22 4.48431e+07 231.765 4.57591e+07 236.4 4.66938e+07 241.128 4.76476e+07 245.951 4.86209e+07 250.87 4.96141e+07 255.887 5.06276e+07 261.005 5.16618e+07 266.225 5.27171e+07 271.549 5.37939e+07 276.98 5.48928e+07 282.52 5.60141e+07 288.17 5.71583e+07 293.934 5.83258e+07 299.812 5.95173e+07 305.809 6.0733e+07 311.925 6.19736e+07 318.163 6.32396e+07 324.526 6.45314e+07 331.017 6.58495e+07 337.637 6.71947e+07 344.39 6.85672e+07 351.278 6.99679e+07 358.303 7.13971e+07 365.47 7.28555e+07 372.779 7.43438e+07 380.235 7.58624e+07 387.839 7.7412e+07 395.596 7.89933e+07 403.508 8.06069e+07 411.578 8.22535e+07 419.81 8.39337e+07 428.206 8.56482e+07 436.77 8.73977e+07 445.505 8.9183e+07 454.415 9.10048e+07 463.504 9.28637e+07 472.774 9.47606e+07 482.229 9.66963e+07 491.874 9.86715e+07 501.711 1.00687e+08 511.746 1.02744e+08 521.98 1.04843e+08 532.42 1.06984e+08 543.069 1.0917e+08 553.93 1.114e+08 565.008 1.13675e+08 576.309 1.15997e+08 587.835 1.18367e+08 599.592 1.20785e+08 611.583 1.23252e+08 623.815 1.2577e+08 636.291 1.28339e+08 649.017 1.3096e+08 661.997 1.33635e+08 675.237 1.36365e+08 688.742 1.39151e+08 702.517 1.41993e+08 716.567 1.44894e+08 730.899 1.47853e+08 745.517 1.50874e+08 760.427 1.53955e+08 775.636 1.571e+08 791.148 1.60309e+08 806.971 1.63584e+08 823.111 1.66926e+08 839.573 1.70335e+08 856.364 1.73815e+08 873.492 1.77365e+08 890.961 1.80988e+08 908.781 1.84685e+08 926.956 1.88458e+08 945.495 1.92308e+08 964.405 1.96236e+08 983.693 2.00244e+08 1003.37 2.04335e+08 1023.43 2.08509e+08 1043.9 2.12768e+08 1064.78 2.17114e+08 1086.08 2.21549e+08 1107.8 2.26075e+08 1129.95 2.30693e+08 1152.55 2.35405e+08 1175.6 2.40214e+08 1199.12 2.45121e+08 1223.1 2.50128e+08 1247.56 2.55237e+08 1272.51 2.60451e+08 1297.96 2.65771e+08 1323.92 2.712e+08 1350.4 2.7674e+08 1377.41 2.82393e+08 1404.96 2.88161e+08 1433.06 2.94048e+08 1461.72 3.00054e+08 1490.95 3.06183e+08 1520.77 3.12438e+08 1551.19 3.1882e+08 1582.21 3.25332e+08 1613.85 3.31978e+08 1646.13 3.38759e+08 1679.05 3.45679e+08 1712.63 3.5274e+08 1746.89 3.59946e+08 1781.82 3.67298e+08 1817.46 3.74801e+08 1853.81 3.82457e+08 1890.89 3.9027e+08 1928.7 3.98242e+08 1967.28 4.06377e+08 2006.62 4.14678e+08 2046.76 4.23148e+08 2087.69 4.31792e+08 2129.45 4.40612e+08 2172.03 4.49613e+08 2215.47 4.58797e+08 2259.78 4.68169e+08 2304.98 4.77732e+08 2351.08 4.87491e+08 2398.1 4.97449e+08 2446.06 5.0761e+08 2494.98 5.17979e+08 2544.88 5.2856e+08 2595.78 5.39357e+08 2647.7 5.50374e+08 2700.65 5.61617e+08 2754.66 5.73089e+08 2809.76 5.84796e+08 2865.95 5.96741e+08 2923.27 6.08931e+08 2981.74 6.2137e+08 3041.37 6.34062e+08 3102.2 6.47014e+08 3164.24 6.60231e+08 3227.53 6.73717e+08 3292.08 6.87479e+08 3357.92 7.01523e+08 3425.08 7.15853e+08 3493.58 7.30475e+08 3563.45 7.45397e+08 3634.72 7.60623e+08 3707.42 7.7616e+08 3781.56 7.92015e+08 3857.2 8.08194e+08 3934.34 8.24703e+08 4013.03 8.41549e+08 4093.29 8.58739e+08 4175.15 8.76281e+08 4258.66 8.9418e+08 4343.83 9.12446e+08 4430.7 9.31084e+08 4519.32 9.50104e+08 4609.71 9.69512e+08 4701.9 9.89316e+08 4795.94 1.00952e+09 4891.86 1.03015e+09 4989.69 1.05119e+09 5089.49 1.07266e+09 5191.28 1.09457e+09 5295.1 1.11693e+09 5401 1.13975e+09 5509.02 1.16303e+09 5619.21 1.18679e+09 5731.59 1.21103e+09 5846.22 1.23577e+09 5963.15 1.26101e+09 6082.41 1.28677e+09 6204.06 1.31305e+09 6328.14 1.33988e+09 6454.7 1.36724e+09 6583.79 1.39517e+09 6715.47 1.42367e+09 6849.78 1.45275e+09 6986.78 1.48243e+09 7126.51 1.51271e+09 7269.04 1.54361e+09 7414.42 1.57514e+09 7562.71 1.60732e+09 7713.96 1.64015e+09 7868.24 1.67365e+09 8025.61 1.70784e+09 8186.12 1.74273e+09 8349.84 1.77833e+09 8516.84 1.81465e+09 8687.18 1.85172e+09 8860.92 1.88955e+09 9038.14 1.92814e+09 9218.9 1.96753e+09 9403.28 2.00772e+09 9591.35 2.04873e+09 9783.17 2.09058e+09 9978.84 2.13329e+09 10178.4 2.17686e+09 10382 2.22133e+09 10589.6 2.26671e+09 10801.4 2.31301e+09 11017.4 2.36026e+09 11237.8 2.40847e+09 11462.5 2.45767e+09 11691.8 2.50787e+09 11925.6 2.5591e+09 12164.1 2.61137e+09 12407.4 2.66472e+09 12655.6 2.71915e+09 12908.7 2.77469e+09 13166.9 2.83137e+09 13430.2 2.88921e+09 13698.8 2.94822e+09 13972.8 3.00845e+09 14252.2 3.0699e+09 14537.3 3.13261e+09 14828 3.1966e+09 15124.6 3.2619e+09 15427.1 3.32853e+09 15735.6 3.39652e+09 16050.3 3.4659e+09 16371.3 3.5367e+09 16698.8 3.60894e+09 17032.7 3.68266e+09 17373.4 3.75789e+09 17720.9 3.83465e+09 18075.3 3.91298e+09 18436.8 3.99291e+09 18805.5 4.07448e+09 19181.6 4.15771e+09 19565.3 4.24264e+09 19956.6 4.3293e+09 20355.7 4.41774e+09 20762.8 4.50798e+09 21178.1 4.60006e+09 21601.6 4.69403e+09 22033.7 4.78991e+09 22474.3 4.88776e+09 22923.8 4.9876e+09 23382.3 5.08948e+09 23849.9 5.19344e+09 24326.9 5.29953e+09 24813.5 5.40778e+09 25309.8 5.51825e+09 25816 5.63097e+09 26332.3 5.74599e+09 26858.9 5.86337e+09 27396.1 5.98314e+09 27944 6.10536e+09 28502.9 6.23007e+09 29073 6.35733e+09 29654.4 6.48719e+09 30247.5 6.61971e+09 30852.5 6.75493e+09 31469.5 6.89291e+09 32098.9 7.03371e+09 32740.9 7.17739e+09 33395.7 7.32401e+09 34063.6 7.47361e+09 34744.9 7.62628e+09 35439.8 7.78206e+09 36148.6 7.94102e+09 36871.5 8.10324e+09 37609 8.26876e+09 38361.1 8.43767e+09 39128.4 8.61002e+09 39910.9 8.7859e+09 40709.2 8.96537e+09 41523.3 9.14851e+09 42353.8 9.33538e+09 43200.9 9.52608e+09 44064.9 9.72067e+09 44946.2 9.91923e+09 45845.1 1.01219e+10 46762 1.03286e+10 47697.3 1.05396e+10 48651.2 1.07549e+10 49624.2 1.09746e+10 50616.7 1.11988e+10 51629 1.14275e+10 52661.6 1.16609e+10 53714.9 1.18991e+10 54789.2 1.21422e+10 55884.9 1.23902e+10 57002.6 1.26433e+10 58142.7 1.29016e+10 59305.5 1.31651e+10 60491.7 1.34341e+10 61701.5 1.37085e+10 62935.5 1.39885e+10 64194.2 1.42742e+10 65478.1 1.45658e+10 66787.7 1.48634e+10 68123.4 1.5167e+10 69485.9 1.54768e+10 70875.6 1.57929e+10 72293.1 1.61155e+10 73739 1.64447e+10 75213.8 1.67807e+10 76718.1 1.71234e+10 78252.4 1.74732e+10 79817.5 1.78301e+10 81413.8 1.81944e+10 83042.1 1.8566e+10 84702.9 1.89453e+10 86397 1.93323e+10 88124.9 1.97272e+10 89887.4 2.01301e+10 91685.2 2.05413e+10 93518.9 2.09609e+10 95389.3 2.13891e+10 97297 2.1826e+10 99243 2.22718e+10 101228 2.27268e+10 103252 2.3191e+10 105317 2.36648e+10 107424 2.41482e+10 109572 2.46414e+10 111764 2.51448e+10 113999 2.56584e+10 116279 2.61825e+10 118605 2.67174e+10 120977 2.72631e+10 123396 2.782e+10 125864 2.83883e+10 128381 2.89682e+10 130949 2.95599e+10 133568 3.01638e+10 136239 3.07799e+10 138964 3.14087e+10 141743 3.20503e+10 144578 3.27049e+10 147470 3.3373e+10 150419 3.40547e+10 153428 3.47504e+10 156496 3.54602e+10 159626 3.61846e+10 162819 3.69237e+10 166075 3.76779e+10 169396 3.84476e+10 172784 3.9233e+10 176240 4.00344e+10 179765 4.08522e+10 183360 4.16866e+10 187027 4.25382e+10 190768 4.34071e+10 194583 4.42938e+10 198475 4.51986e+10 202444 4.61219e+10 206493 4.7064e+10 210623 4.80254e+10 214836 4.90064e+10 219132 5.00074e+10 223515 5.10289e+10 227985 5.20713e+10 232545 5.3135e+10 237196 5.42204e+10 241940 5.53279e+10 246779 5.64581e+10 251714 5.76114e+10 256749 5.87882e+10 261884 5.99891e+10 267121 6.12145e+10 272464 6.24649e+10 277913 6.37409e+10 283471 6.50429e+10 289141 6.63715e+10 294923 6.77273e+10 300822 6.91108e+10 306838 7.05225e+10 312975 7.19631e+10 319235 7.34331e+10 325619 7.49331e+10 332132 7.64638e+10 338774 7.80257e+10 345550 7.96195e+10 352461 8.12459e+10 359510 8.29055e+10 366700 8.4599e+10 374034 8.63271e+10 381515 8.80906e+10 389145 8.989e+10 396928 9.17262e+10 404867 9.35999e+10 412964 9.55118e+10 421223 9.74629e+10 429648 9.94537e+10 438241 1.01485e+11 447005 1.03558e+11 455946 1.05674e+11 465065 1.07832e+11 474366 1.10035e+11 483853 1.12283e+11 493530 1.14576e+11 503401 1.16917e+11 513469 1.19305e+11 523738 1.21742e+11 534213 1.24229e+11 544897 1.26767e+11 555795 1.29356e+11 566911 1.31998e+11 578249 1.34695e+11 589814 1.37446e+11 601611 1.40254e+11 613643 1.43119e+11 625916 1.46042e+11 638434 1.49025e+11 651203 1.5207e+11 664227 1.55176e+11 677511 1.58346e+11 691061 1.6158e+11 704883 1.64881e+11 718980 1.68249e+11 733360 1.71686e+11 748027 1.75193e+11 762988 1.78771e+11 778247 1.82423e+11 793812 1.86149e+11 809689 1.89952e+11 825882 1.93832e+11 842400 1.97791e+11 859248 2.01832e+11 876433 2.05955e+11 893962 2.10162e+11 911841 2.14455e+11 930078 2.18835e+11 948679 2.23305e+11 967653 2.27867e+11 987006 2.32522e+11 1.00675e+06 2.37271e+11 1.02688e+06 2.42118e+11 1.04742e+06 2.47064e+11 1.06837e+06 2.52111e+11 1.08973e+06 2.5726e+11 1.11153e+06 2.62516e+11 1.13376e+06 2.67878e+11 1.15643e+06 2.7335e+11 1.17956e+06 2.78934e+11 1.20315e+06 2.84631e+11 1.22722e+06 2.90446e+11 1.25176e+06 2.96379e+11 1.2768e+06 3.02433e+11 1.30233e+06 3.0861e+11 1.32838e+06 3.14914e+11 1.35495e+06 3.21347e+11 1.38205e+06 3.27911e+11 1.40969e+06 3.3461e+11 1.43788e+06 3.41445e+11 1.46664e+06 3.48419e+11 1.49597e+06 3.55537e+11 1.52589e+06 3.62799e+11 1.55641e+06 3.7021e+11 1.58754e+06 3.77772e+11 1.61929e+06 3.85489e+11 1.65167e+06 3.93364e+11 1.68471e+06 4.01399e+11 1.7184e+06 4.09598e+11 1.75277e+06 4.17965e+11 1.78782e+06 4.26503e+11 1.82358e+06 4.35215e+11 1.86005e+06 4.44105e+11 1.89725e+06 4.53177e+11 1.9352e+06 4.62434e+11 1.9739e+06 4.7188e+11 2.01338e+06 4.81519e+11 2.05365e+06 4.91355e+11 2.09472e+06 5.01392e+11 2.13662e+06 5.11634e+11 2.17935e+06 5.22085e+11 2.22293e+06 5.3275e+11 2.26739e+06 5.43633e+11 2.31274e+06 5.54737e+11 2.359e+06 5.66069e+11 2.40618e+06 5.77632e+11 2.4543e+06 5.89431e+11 2.50339e+06 6.01472e+11 2.55345e+06 6.13758e+11 2.60452e+06 6.26295e+11 2.65661e+06 6.39089e+11 2.70975e+06 6.52143e+11 2.76394e+06 6.65465e+11 2.81922e+06 6.79058e+11 2.8756e+06 6.92929e+11 2.93312e+06 7.07084e+11 2.99178e+06 7.21527e+11 3.05161e+06 7.36266e+11 3.11265e+06 7.51306e+11 3.1749e+06 7.66653e+11 3.2384e+06 7.82313e+11 3.30316e+06 7.98294e+11 3.36923e+06 8.146e+11 3.43661e+06 8.3124e+11 3.50534e+06 8.4822e+11 3.57545e+06 8.65547e+11 3.64696e+06 8.83227e+11 3.7199e+06 9.01269e+11 3.7943e+06 9.19679e+11 3.87018e+06 9.38465e+11 3.94759e+06 9.57635e+11 4.02654e+06 9.77197e+11 4.10707e+06 9.97158e+11 4.18921e+06 1.01753e+12 4.273e+06 1.03831e+12 4.35846e+06 1.05952e+12 4.44562e+06 1.08116e+12 4.53454e+06 1.10325e+12 4.62523e+06 1.12579e+12 4.71773e+06 1.14878e+12 4.81209e+06 1.17225e+12 4.90833e+06 1.19619e+12 5.0065e+06 1.22063e+12 5.10663e+06 1.24556e+12 5.20876e+06 1.27101e+12 5.31293e+06 1.29697e+12 5.41919e+06 1.32346e+12 5.52758e+06 1.3505e+12 5.63813e+06 1.37808e+12 5.75089e+06 1.40623e+12 5.86591e+06 1.43496e+12 5.98323e+06 1.46427e+12 6.10289e+06 1.49418e+12 6.22495e+06 1.5247e+12 6.34945e+06 1.55585e+12 6.47644e+06 1.58763e+12 6.60596e+06 1.62006e+12 6.73808e+06 1.65315e+12 6.87285e+06 1.68692e+12 7.0103e+06 1.72138e+12 7.15051e+06 1.75654e+12 7.29352e+06 1.79242e+12 7.43939e+06 1.82904e+12 7.58818e+06 1.8664e+12 7.73994e+06 1.90453e+12 7.89474e+06 1.94343e+12 8.05263e+06 1.98313e+12 8.21369e+06 2.02364e+12 8.37796e+06 2.06497e+12 8.54552e+06 2.10716e+12 8.71643e+06 2.1502e+12 8.89076e+06 2.19412e+12 9.06857e+06 2.23894e+12 9.24994e+06 2.28467e+12 9.43494e+06 2.33134e+12 9.62364e+06 2.37897e+12 9.81612e+06 2.42756e+12 1.00124e+07 2.47715e+12 1.02127e+07 2.52775e+12 1.04169e+07 2.57938e+12 1.06253e+07 2.63207e+12 1.08378e+07 2.68584e+12 1.10545e+07 2.7407e+12 1.12756e+07 2.79669e+12 1.15011e+07 2.85382e+12 1.17312e+07 2.91211e+12 1.19658e+07 2.9716e+12 1.22051e+07 3.0323e+12 1.24492e+07 3.09424e+12 1.26982e+07 3.15744e+12 1.29522e+07 3.22194e+12 1.32112e+07 3.28776e+12 1.34754e+07 3.35492e+12 1.37449e+07 3.42345e+12 1.40198e+07 3.49338e+12 1.43002e+07 3.56474e+12 1.45862e+07 3.63755e+12 1.4878e+07 3.71186e+12 1.51755e+07 3.78768e+12 1.5479e+07 3.86505e+12 1.57886e+07 3.944e+12 1.61044e+07 4.02457e+12 1.64265e+07 4.10678e+12 1.6755e+07 4.19067e+12 1.70901e+07 4.27627e+12 1.74319e+07 4.36362e+12 1.77805e+07 4.45276e+12 1.81361e+07 4.54371e+12 1.84989e+07 4.63653e+12 1.88688e+07 4.73124e+12 1.92462e+07 4.82788e+12 1.96311e+07 4.9265e+12 2.00238e+07 5.02714e+12 2.04242e+07 5.12983e+12 2.08327e+07 5.23461e+12 2.12494e+07 5.34154e+12 2.16744e+07 5.45065e+12 2.21079e+07 5.56199e+12 2.255e+07 5.67561e+12 2.3001e+07 5.79154e+12 2.3461e+07 5.90985e+12 2.39303e+07 6.03057e+12 2.44089e+07 6.15376e+12 2.4897e+07 6.27946e+12 2.5395e+07 6.40773e+12 2.59029e+07 6.53862e+12 2.64209e+07 6.67218e+12 2.69494e+07 6.80848e+12 2.74883e+07 6.94755e+12 2.80381e+07 7.08947e+12 2.85989e+07 7.23429e+12 2.91709e+07 7.38206e+12 2.97543e+07 7.53286e+12 3.03494e+07 7.68673e+12 3.09563e+07 7.84375e+12 3.15755e+07 8.00397e+12 3.2207e+07 8.16747e+12 3.28511e+07 8.33431e+12 3.35081e+07 8.50455e+12 3.41783e+07 8.67828e+12 3.48619e+07 8.85555e+12 3.55591e+07 9.03644e+12 3.62703e+07 9.22103e+12 3.69957e+07 9.40939e+12 3.77356e+07 9.60159e+12 3.84903e+07 9.79772e+12 3.92601e+07 9.99786e+12 4.00453e+07 1.02021e+13 4.08462e+07 1.04105e+13 4.16632e+07 1.06231e+13 4.24964e+07 1.08401e+13 4.33463e+07 1.10616e+13 4.42133e+07 1.12875e+13 4.50975e+07 1.15181e+13 4.59995e+07 1.17534e+13 4.69195e+07 1.19935e+13 4.78579e+07 1.22385e+13 4.8815e+07 1.24885e+13 4.97913e+07 1.27436e+13 5.07872e+07 1.30039e+13 5.18029e+07 1.32695e+13 5.2839e+07 1.35406e+13 5.38957e+07 1.38172e+13 5.49737e+07 1.40994e+13 5.60731e+07 1.43874e+13 5.71946e+07 1.46813e+13 5.83385e+07 1.49812e+13 5.95052e+07 1.52872e+13 6.06954e+07 1.55995e+13 6.19093e+07 1.59181e+13 6.31474e+07 1.62433e+13 6.44104e+07 1.65751e+13 6.56986e+07 1.69137e+13 6.70126e+07 1.72592e+13 6.83528e+07 1.76117e+13 6.97199e+07 1.79715e+13 7.11143e+07 1.83386e+13 7.25366e+07 1.87132e+13 7.39873e+07 1.90954e+13 7.5467e+07 1.94855e+13 7.69764e+07 1.98835e+13 7.85159e+07 2.02897e+13 8.00862e+07 2.07042e+13 8.1688e+07 2.11271e+13 8.33217e+07 2.15586e+13 8.49881e+07 2.1999e+13 8.66879e+07 2.24484e+13 8.84217e+07 2.2907e+13 9.01901e+07 2.33749e+13 9.19939e+07 2.38524e+13 9.38338e+07 2.43396e+13 9.57105e+07 2.48368e+13 9.76247e+07 2.53441e+13 9.95772e+07 2.58618e+13 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Friday 16 May 2008 12:10, Lutz Maibaum wrote:
> I encountered some issues when trying to use the mouse zoom on data sets > plotted on logarithmic axes. I have attached a sample data file. When I > start a new gnuplot session, and plot the data using > > set log x; set log y; plot "test.dat" u 1:2 w lp > > and then try to zoom into the top right corner of the plot, there is a good > chance that I get an error message along the lines of > > gnuplot> set xr[2645923.77833:105299864.051]; > set yr[525542494246:2.96579249916e+13]; set x2r[ 6.42110: 8.02058]; > set y2r[11.3442: 12.9336] > ^ > integer overflow; change to floating point > > I observed this in both the X11 and the wxt terminals, using gnuplot 4.2.3 > on a linux box. Can anyone else reproduce this behavior? No, I can't reproduce it. But I can see what is wrong from the output you gave. The zoom function reads off (x1,y1) and (x2,y2) coords from the mouse and constructs the appropriate "set [xy]range" commands as a string which is fed back to the command line interpreter. In your case the lower bound on y is too large to represent as an integer. This would normally be OK because it is written using a floating point format mouse.c line 662: sprintf(s, "set xr[%.12g:%.12g]; set yr[%.12g:%.12g]" but since there is nothing after the decimal point, the %g format writes it as a 12 digit integer. Such an integer is too large to read in. It would work if there were a trailing decimal point, but there isn't one. Simpler demonstation of the problem: gnuplot> t = 525542494246 gnuplot> print t 2147483647 gnuplot> t = 525542494246. gnuplot> print t 525542494246.0 Your machine issues the message you see "integer overflow; change to floating point". based on the test in scanner.c: get_num() lval = atol(str); if ((token[t_num].l_val.v.int_val = lval) != lval) But this test assumes appears to assume some odd non-POSIX behavior, and/or an odd compiler. I would expect the compiler to optimize away the test if ((A=B) != B) The only exception would be for A = NaN, but that can't happen for a positive integer. My linux machine behaves as documented by the spec for atol(). On overflow it returns MAX_LONG, which is a legal value, and the test for ((A=MAX_LONG) != MAX_LONG) can never trigger even if it hasn't been optimize away. Anyhow.... Can anyone think of a down-side to simply storing the number as a complex double in such a case? Does it even need to be treated as an int_error() rather than a simple warning? In a case like yours, even the warning is gratuitous. IOW, how about the following patch: --- gnuplot/src/scanner.c 2007-08-27 01:05:18.000000000 -0700 +++ gnuplot-cvs/src/scanner.c 2008-05-16 14:37:34.000000000 -0700 @@ -278,13 +278,16 @@ get_num(char str[]) while (isdigit((unsigned char) str[++count])); } if (token[t_num].l_val.type == INTGR) { - lval = atol(str); - if ((token[t_num].l_val.v.int_val = lval) != lval) - int_error(t_num, "integer overflow; change to floating point"); + token[t_num].l_val.v.int_val = atol(str); + if (token[t_num].l_val.v.int_val < INT_MAX) + return(count); + int_warn(t_num, "integer overflow; changing to floating point"); + token[t_num].l_val.type = CMPLX; + /* fall through */ } + + token[t_num].l_val.v.cmplx_val.imag = 0.0; + token[t_num].l_val.v.cmplx_val.real = atof(str); - } else { - token[t_num].l_val.v.cmplx_val.imag = 0.0; - token[t_num].l_val.v.cmplx_val.real = atof(str); return (count); } -- Ethan A Merritt ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsHi Ethan,
> The zoom function reads off (x1,y1) and (x2,y2) coords from the mouse > and constructs the appropriate "set [xy]range" commands as a string > which is fed back to the command line interpreter. In your case the > lower bound on y is too large to represent as an integer. This would > normally be OK because it is written using a floating point format > > mouse.c line 662: sprintf(s, "set xr[%.12g:%.12g]; set > yr[%.12g:%.12g]" > > but since there is nothing after the decimal point, the %g format writes > it as a 12 digit integer. Such an integer is too large to read in. It > would work if there were a trailing decimal point, but there isn't one. thanks for looking into this. I must admit I don't quite understand your proposed changes to the scanner, but as a quick fix would it be sufficient to replace the %g in the line above by %E, which always includes a decimal point? Lutz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Friday 16 May 2008 15:07, Lutz Maibaum wrote:
> Hi Ethan, > > > The zoom function reads off (x1,y1) and (x2,y2) coords from the mouse > > and constructs the appropriate "set [xy]range" commands as a string > > which is fed back to the command line interpreter. In your case the > > lower bound on y is too large to represent as an integer. This would > > normally be OK because it is written using a floating point format > > > > mouse.c line 662: sprintf(s, "set xr[%.12g:%.12g]; set > > yr[%.12g:%.12g]" > > > > but since there is nothing after the decimal point, the %g format writes > > it as a 12 digit integer. Such an integer is too large to read in. It > > would work if there were a trailing decimal point, but there isn't one. > > thanks for looking into this. I must admit I don't quite understand your > proposed changes to the scanner, but as a quick fix would it be sufficient > to replace the %g in the line above by %E, which always includes a decimal > point? That would probably fix it for the specific case of zooming, but the general case would still be broken. As it stands, all integer constants in the input stream are silently truncated to LONG_MAX on a "normal" machine configuration. Yours at least prints an error message. -- Ethan A Merritt ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Friday 16 May 2008 15:23:35 Ethan Merritt wrote:
> On Friday 16 May 2008 15:07, Lutz Maibaum wrote: > > thanks for looking into this. I must admit I don't quite understand > > your proposed changes to the scanner, but as a quick fix would it be > > sufficient to replace the %g in the line above by %E, which always > > includes a decimal point? > > That would probably fix it for the specific case of zooming, > but the general case would still be broken. As it stands, all integer > constants in the input stream are silently truncated to LONG_MAX on > a "normal" machine configuration. Yours at least prints an error > message. According to the manpage of my standard C library (glibc 2.6.1 release 18.3 for X86-64, openSUSE), atol does not check for overflow errors, whereas strtol does. It also has the following to say: You should not check for errors by examining the return value of `strtol', because the string might be a valid representation of `0l', `LONG_MAX', or `LONG_MIN'. Instead, check whether TAILPTR points to what you expect after the number (e.g. `'\0'' if the string should end after the number). You also need to clear ERRNO before the call and check it afterward, in case there was overflow. Thanks again, Lutz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Friday 16 May 2008 15:47, Lutz Maibaum wrote:
> On Friday 16 May 2008 15:23:35 Ethan Merritt wrote: > > On Friday 16 May 2008 15:07, Lutz Maibaum wrote: > > > thanks for looking into this. I must admit I don't quite understand > > > your proposed changes to the scanner, but as a quick fix would it be > > > sufficient to replace the %g in the line above by %E, which always > > > includes a decimal point? > > > > That would probably fix it for the specific case of zooming, > > but the general case would still be broken. As it stands, all integer > > constants in the input stream are silently truncated to LONG_MAX on > > a "normal" machine configuration. Yours at least prints an error > > message. > > According to the manpage of my standard C library (glibc 2.6.1 release 18.3 > for X86-64, openSUSE), atol does not check for overflow errors, whereas > strtol does. It also has the following to say: > > You should not check for errors by examining the return value of > `strtol', because the string might be a valid representation of > `0l', `LONG_MAX', or `LONG_MIN'. Instead, check whether TAILPTR > points to what you expect after the number (e.g. `'\0'' if the > string should end after the number). You also need to clear ERRNO > before the call and check it afterward, in case there was overflow. Yeah. To do it properly we should use strtol() instead. In 4.2 we switched to using strtod() and strtol() for data input. It would make sense to do the same when reading from the command line. -- Ethan A Merritt ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Friday 16 May 2008 16:07, Ethan Merritt wrote:
> On Friday 16 May 2008 15:47, Lutz Maibaum wrote: > > > > According to the manpage of my standard C library (glibc 2.6.1 release 18.3 > > for X86-64, openSUSE), atol does not check for overflow errors, whereas > > strtol does. It also has the following to say: > > > > You should not check for errors by examining the return value of > > `strtol', because the string might be a valid representation of > > `0l', `LONG_MAX', or `LONG_MIN'. Instead, check whether TAILPTR > > points to what you expect after the number (e.g. `'\0'' if the > > string should end after the number). You also need to clear ERRNO > > before the call and check it afterward, in case there was overflow. > > Yeah. To do it properly we should use strtol() instead. > > In 4.2 we switched to using strtod() and strtol() for data input. > It would make sense to do the same when reading from the command line. I've made this change in scanner.c get_num(). It fixes the overflows on a system that handles stderr properly (linux) and does no worse that the previous code on a system that doesn't (sunos 4.1). This change has the happy side effect of allowing hex constants on the command line, which makes it a whole lot easier to specify RGB colors in-line: plot 'foo' using 1:2:($3>$4 ? 0xff0000 : 0x0000ff) lc rgb variable -- Ethan A Merritt ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsHi Ethan,
> I've made this change in scanner.c get_num(). > It fixes the overflows on a system that handles stderr properly (linux) > and does no worse that the previous code on a system that doesn't (sunos > 4.1). I just tried the current CVS build, and the problems with interactive zooming remain, except that I don't get an error message anymore ;) As you mentioned before, the problem is that large numbers, such as those generated by apply_zoom() when using logarithmic axes, are not recognized as floating point values when they do not contain a decimal point: gnuplot> set yr[313136844993:1.8789321221e+13] gnuplot> show yr set yrange [ -3.95768e+08 : 1.87893e+13 ] noreverse nowriteback This obviously doesn't work when the y-axis is logarithmic. Changing "%.12g" to "%.12E" in apply_zoom() fixed this issue for me. Thanks for looking into this, Lutz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Monday 19 May 2008 17:28, Lutz Maibaum wrote:
> Hi Ethan, > > > I've made this change in scanner.c get_num(). > > It fixes the overflows on a system that handles stderr properly (linux) > > and does no worse that the previous code on a system that doesn't (sunos > > 4.1). > > I just tried the current CVS build, and the problems with interactive > zooming remain, except that I don't get an error message anymore ;) I confess that I am mystified. What compiler and glibc versions are you using? What hardware? You probably said before, but I've forgotten. Does the man page for strtol on your system claim that it will set errno on overflow? > As you mentioned before, the problem is that large numbers, such as those > generated by apply_zoom() when using logarithmic axes, are not recognized > as floating point values when they do not contain a decimal point: > > gnuplot> set yr[313136844993:1.8789321221e+13] > gnuplot> show yr > set yrange [ -3.95768e+08 : 1.87893e+13 ] noreverse nowriteback On my machine (32-bit, rather old AMD athlon) I get gnuplot> set yr[313136844993:1.8789321221e+13] ^ warning: integer overflow; changing to floating point gnuplot> show yr set yrange [ 3.13137e+11 : 1.87893e+13 ] noreverse nowriteback I assume that you also get something else for the simpler test case: gnuplot> t = 313136844993 ^ warning: integer overflow; changing to floating point gnuplot> print t 313136844993.0 > This obviously doesn't work when the y-axis is logarithmic. > Changing "%.12g" to "%.12E" in apply_zoom() fixed this issue for me. > > Thanks for looking into this, But changing the format in the zoom code won't fix the general case. I would rather figure out how to make it work everywhere! Ethan -- Ethan A Merritt ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Monday 19 May 2008 17:46:08 Ethan Merritt wrote:
> What compiler and glibc versions are you using? > What hardware? You probably said before, but I've forgotten. gcc 4.2.1 on x86-64, glibc 2.6.1 release 18.3 (openSUSE 10.3 packages) > Does the man page for strtol on your system claim that it will > set errno on overflow? I think so: If the string has valid syntax for an integer but the value is not representable because of overflow, `strtol' returns either `LONG_MAX' or `LONG_MIN' (*note Range of Type::), as appropriate for the sign of the value. It also sets `errno' to `ERANGE' to indicate there was overflow. > I assume that you also get something else for the simpler test case: > > gnuplot> t = 313136844993 > ^ > warning: integer overflow; changing to floating point > gnuplot> print t > 313136844993.0 This is what I get: gnuplot> t = 313136844993 gnuplot> print t -395767615 I think the reason for this behavior is that the call to strtol does not generate an error, since the argument is within the range of a long integer, but then there is an implicit conversion to the smaller int type: token[t_num].l_val.v.int_val = strtol(str, &endptr, 0); If I remember correctly, leading bits are simply truncated in a long->int conversion, and errno is not set. Hope this helps, Lutz ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
Re: Zooming issues in interactive terminalsOn Mon, 19 May 2008, Lutz Maibaum wrote:
> gcc 4.2.1 on x86-64, glibc 2.6.1 release 18.3 (openSUSE 10.3 > packages) > Ethan: > > > I assume that you also get something else for the simpler test case: > > > > gnuplot> t = 313136844993 > > ^ > > warning: integer overflow; changing to floating point > > gnuplot> print t > > 313136844993.0 Lutz won't get that on a 64-bit system; it's well within range of a long. Allin Cottrell ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ gnuplot-beta mailing list gnuplot-beta@... https://lists.sourceforge.net/lists/listinfo/gnuplot-beta |
|
|
|
| Free Forum Powered by Nabble | Forum Help |