File tree 3 files changed +6103
-62
lines changed
3 files changed +6103
-62
lines changed Original file line number Diff line number Diff line change @@ -61,29 +61,45 @@ Build artifacts by specifying a Makefile.
61
61
62
62

63
63
64
- === "Makefile"
64
+ === "Source"
65
+
66
+ ``` {.gnuplot file=examples/plot.gp}
67
+ # enter your plotting commands here
68
+ ```
65
69
66
70
``` {.make .build-artifact}
67
71
.RECIPEPREFIX = >
68
72
69
- docs/fig/plot.svg:
73
+ docs/fig/plot.svg: examples/plot.gp
70
74
> mkdir -p $(@D)
71
- > gnuplot -e "set term svg; plot sin(x)" > $@
75
+ > gnuplot $^ > $@
72
76
```
73
77
~~~
74
78
75
79
=== "Figure 1"
76
80
77
81

78
82
79
- === "Makefile"
83
+ === "Source"
84
+
85
+ ``` {.gnuplot file=examples/plot.gp}
86
+ set term svg background rgb 'white' size 700, 500
87
+ sinc(r) = sin(pi*r) / (pi*r)
88
+ set isosamples 50, 50
89
+ set hidden3d
90
+ set xrange [-4:4]
91
+ set yrange [-4:4]
92
+ set xyplane 0
93
+ set title "Sinc function"
94
+ splot sinc(sqrt(x**2 + y**2)) t'' lc rgb '#5533cc'
95
+ ```
80
96
81
97
``` {.make .build-artifact}
82
98
.RECIPEPREFIX = >
83
99
84
- docs/fig/plot.svg:
100
+ docs/fig/plot.svg: examples/plot.gp
85
101
> mkdir -p $(@D)
86
- > gnuplot -e "set term svg; plot sin(x)" > $@
102
+ > gnuplot $^ > $@
87
103
```
88
104
89
105
## License
You can’t perform that action at this time.
0 commit comments