basic.f90 Source File

This File Depends On

sourcefile~~basic.f90~~EfferentGraph sourcefile~basic.f90 basic.f90 sourcefile~array.f90 array.f90 sourcefile~array.f90->sourcefile~basic.f90 sourcefile~plplotlib.f90 plplotlib.f90 sourcefile~array.f90->sourcefile~plplotlib.f90 sourcefile~plplotlib.f90->sourcefile~basic.f90 sourcefile~kinds.f90 kinds.f90 sourcefile~kinds.f90->sourcefile~basic.f90 sourcefile~kinds.f90->sourcefile~array.f90 sourcefile~kinds.f90->sourcefile~plplotlib.f90 sourcefile~text.f90 text.f90 sourcefile~kinds.f90->sourcefile~text.f90 sourcefile~time.f90 time.f90 sourcefile~kinds.f90->sourcefile~time.f90 sourcefile~text.f90->sourcefile~plplotlib.f90 sourcefile~time.f90->sourcefile~text.f90
Help

Source Code


Source Code

program basic_prg
	!! Create a basic plot
	!!
	!! ![plot](|media|/basic-1.svg)
	use kinds_mod
	use array_mod
	use plplotlib_mod
	implicit none
	
	real(wp),dimension(:),allocatable::x,y
	
	x = linspace(-2.0_wp,2.0_wp,101)
	y = x**2-1.0_wp
	
	call setup(device='svg',fileName='media/basic-%n.svg',figSize=[400,300])
	call figure()
	call subplot(1,1,1)
	call xylim(mixval(x),mixval(y))
	call plot(x,y,lineColor='r',lineWidth=2.0_wp)
	call ticks()
	call labels('#fix#fn','#fiy#fn','Plot')
	call show()
end program basic_prg