Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ny | Number of subplot rows |
||
integer, | intent(in) | :: | nx | Number of subplot columns |
||
integer, | intent(in) | :: | i | Subplot to use |
||
real(kind=wp), | intent(in), | optional | :: | aspect | Aspect ratio of the axes |
|
logical, | intent(in), | optional | :: | is3d |
Create a set of axes on a figure
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | is3dl |
subroutine subplot(ny,nx,i,aspect,is3d)
!! Create a set of axes on a figure
integer,intent(in)::nx
!! Number of subplot columns
integer,intent(in)::ny
!! Number of subplot rows
integer,intent(in)::i
!! Subplot to use
real(wp),intent(in),optional::aspect
!! Aspect ratio of the axes
logical,intent(in),optional::is3d
logical::is3dl
call plssub(nx,ny)
call pladv(i)
call resetPen()
is3dl = .false.
if(present(is3d)) is3dl = is3d
if(is3dl) then
call plvpor(0.0_pp,1.0_pp,0.0_pp,1.0_pp)
else
if(present(aspect)) then
call plvasp(real(aspect,pp))
else
call plvsta()
end if
end if
call defaultLim()
end subroutine subplot