Skip to content

Instantly share code, notes, and snippets.

@tomwhoiscontrary
Created June 20, 2022 17:35
Show Gist options
  • Save tomwhoiscontrary/6586e7e82a8ccb590f09e2f2859bd5a7 to your computer and use it in GitHub Desktop.
Save tomwhoiscontrary/6586e7e82a8ccb590f09e2f2859bd5a7 to your computer and use it in GitHub Desktop.
1 0.000000
2 0.301030
3 0.477121
4 0.602060
5 0.698970
6 0.778151
7 0.845098
8 0.903090
9 0.954243
10 1.000000
# function extends to infinity, initial zoom is 1:10
plot "file.dat" using 1:2 with lines, sin(x)
# function is limited to range, initial zoom is 1:10
plot "file.dat" using 1:2 with lines, [1:3] sin(x)
# function extends to infinity, initial zoom is 1:3
plot [1:3] sin(x), "file.dat" using 1:2 with lines
# function extends to infinity, initial zoom is 1:3
plot [1:3] sin(x), [1:10] "file.dat" using 1:2 with lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment