Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
subroutine doFillBetween
!! ![fillBetween](|media|/example-7.svg)
integer,parameter::N = 51
real(wp),dimension(N)::x,y1,y2
x = linspace(-3.0_wp,3.0_wp,N)
y1 = x**2-1.0_wp
y2 = x**3-1.0_wp
call figure()
call subplot(1,1,1)
call xylim(mixval(x),mixval([y1,y2]))
call fillBetween(x,y1,y2,fillColor='c',fillPattern='#',lineWidth=2.0_wp)
call plot(x,y1,lineColor='k',lineWidth=3.0_wp)
call plot(x,y2,lineColor='k',lineWidth=3.0_wp)
call ticks(color='b',lineWidth=3.0_wp)
call labels('x','y','f(x)=x#u2#d-1',color='r')
end subroutine doFillBetween