aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-08-20 01:05:27 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-08-20 01:05:27 +0200
commit49f3c649729c5577946ef7792dd26c0067293021 (patch)
tree6137fd2b91e02e64543401a4b184948f9ec4908e /src
parent232b4c5478dc2745cb129efef7d11ff34cda6a93 (diff)
downloadnotes-49f3c649729c5577946ef7792dd26c0067293021.tar.gz
notes-49f3c649729c5577946ef7792dd26c0067293021.zip
gnuplot: example plot inline function
Diffstat (limited to 'src')
-rw-r--r--src/tools/gnuplot.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/gnuplot.md b/src/tools/gnuplot.md
index 97bfdc9..90d5807 100644
--- a/src/tools/gnuplot.md
+++ b/src/tools/gnuplot.md
@@ -56,6 +56,12 @@ plot "< head -n2 data.txt"
plot "data.txt" title "moose"
```
+## Example: Specify range directly during plot
+```sh
+# Plot two functions in the range 0-10.
+plot [0:10] 10*x, 20*x
+```
+
## Example: multiple data sets in plot
```sh
{{#include gnuplot/mem_lat.plot}}