I am trying to create two plots in Gnuplot side by side using multiplot. The problem is that how can I add inset to each one.
Asked
Active
Viewed 632 times
1 Answers
3
I wanted to point your attention to the gnuplot demo page (gnuplot demo page), however, I couldn't find an example of such insets in multiplots right away.
Simply use set multiplot layout 1,2
and continue plotting but with different sizes and offsets. See example below:
Code:
### multiplot with insets
reset session
set multiplot layout 1,2
plot x**2
plot x**3
set size 0.3,0.3
set origin 0.1,0.6
set ytics 0.5
plot sin(x)
set size 0.3,0.3
set origin 0.6,0.6
plot cos(x)
unset multiplot
### end of code
Result:

theozh
- 22,244
- 5
- 28
- 72
-
Perhaps the following might also be of interest... https://stackoverflow.com/q/65640035/7295599 – theozh Feb 09 '21 at 14:35