However, could you please explain the meaning of these numbers?

“a = 30.

mu = 3.

sigma = 3.”

and “every ::0::7 u 1:2”

Thank you!

]]>I learned much from this site and I can now use gnuplot much more efficient.

Thank you and keep going on!

]]># Rounding number to next integer in admin mode (0.5 = goUp) round(x) = x-floor(x)180.0 ? x : round2(x+y,roundDec)180.0 ? round2(x+y-360.0,roundDec) : round2(x+y,roundDec) # The following is generating only one spurious line on antarctica shiftVal=-11.500000 # Plotting using shifted latitude plot 'world_110m.txt' using (shiftMap($1,shiftVal)):($2) with lines linestyle 1

Hope is more clear now…

]]>Now the script is working properly with shifting =0.0 or >180.0 or <-180.0.

In all other cases one or more spurious lines are included into the generated chart.

Latest script is the following:

reset set terminal pngcairo size 1920,1184 enhanced font 'Verdana,12' set output 'w2d.png' set style line 1 linecolor rgb 'black' linetype 1 linewidth 2 unset key set border 0 unset tics set encoding utf8 # Rounding number to next integer in admin mode (0.5 = goUp) round(x) = x-floor(x)180.0 ? x : round2(x+y,roundDec)180.0 ? round2(x+y-360.0,roundDec) : round2(x+y,roundDec) # Centered as default: it works! # shiftVal=0.000000 # Centered on Rome # shiftVal=-12.482778 # The following is generating only one spurious line on antarctica shiftVal=-11.500000 # Centered on USA # shiftVal=100.000000 # Centered on left extreme # shiftVal=180.000000 # Centered on right extreme # shiftVal=-180.000000 # Forcing an error: it works! # shiftVal=-181.000000 # Base plotting # plot 'world_110m.txt' using 1:2 with lines linestyle 1 # Plotting using shifted latitude plot 'world_110m.txt' using (shiftMap($1,shiftVal)):($2) with lines linestyle 1

Any hint on how to solve this issue?

]]>following my previous request I’ve tried to put together the following script:

reset set terminal pngcairo size 1920,1184 enhanced font 'Verdana,12' set output 'w2d.png' set style line 1 linecolor rgb 'black' linetype 1 linewidth 2 unset key set border 0 unset tics set encoding utf8 # shiftMap(currentLatitude, shiftVal) function definition shiftMap(x,y) = abs(y)>180.0 ? x : (x+y)180.0 ? (x+y-360.0) : (x+y) # Centered as usual # shiftVal=0.0 # Centered on Rome # shiftVal=-12.482778 # Cenetered on USA shiftVal=90 # Plotting using shifted latitude plot 'world_110m.txt' using (shiftMap($1,shiftVal)):($2) with lines linestyle 1

It works but output is always including some wrong lines crossing the whole chart.

Any hint on how to solve this issue?

I’ve really appreciated all shared examples, tips, tricks available; it helped me a lot to build a small integration to plot directly from live data.

Keep it going! ]]>

following all valuable examples available on this site I’ve successfully plot the world map, either in 2d or in 3d. While plotting 3d world map using “set view” command I was able to center the map on a specific region; is there available an equivalent command to center a 2d world map on a specific meridian position? In other words: is it possible to have Americas in the central part of the map with Europe on the right and Japan on the left?

Thanks in advance for any input! ]]>