basic_prg Program

program~~basic_prg~~UsesGraph program~basic_prg basic_prg module~kinds_mod kinds_mod module~kinds_mod->program~basic_prg module~plplotlib_mod plplotlib_mod module~kinds_mod->module~plplotlib_mod module~array_mod array_mod module~kinds_mod->module~array_mod module~text_mod text_mod module~kinds_mod->module~text_mod module~time_mod time_mod module~kinds_mod->module~time_mod module~plplotlib_mod->program~basic_prg module~array_mod->program~basic_prg module~array_mod->module~plplotlib_mod plplot plplot plplot->module~plplotlib_mod module~text_mod->module~plplotlib_mod module~time_mod->module~text_mod iso_fortran_env iso_fortran_env iso_fortran_env->module~text_mod iso_c_binding iso_c_binding iso_c_binding->module~time_mod
Help


Create a basic plot

plot

Calls

program~~basic_prg~~CallsGraph program~basic_prg basic_prg proc~xylim xylim program~basic_prg->proc~xylim proc~subplot subplot program~basic_prg->proc~subplot proc~linspace linspace program~basic_prg->proc~linspace proc~ticks ticks program~basic_prg->proc~ticks proc~figure figure program~basic_prg->proc~figure proc~setup setup program~basic_prg->proc~setup interface~mixval mixval program~basic_prg->interface~mixval proc~show show program~basic_prg->proc~show proc~labels labels program~basic_prg->proc~labels proc~plot plot program~basic_prg->proc~plot plwind plwind proc~xylim->plwind pladv pladv proc~subplot->pladv plvasp plvasp proc~subplot->plvasp plssub plssub proc~subplot->plssub plvpor plvpor proc~subplot->plvpor plvsta plvsta proc~subplot->plvsta plbox plbox proc~ticks->plbox proc~figure->pladv proc~figure->plssub plbop plbop proc~figure->plbop pleop pleop proc~figure->pleop plsfnam plsfnam proc~setup->plsfnam plsetopt plsetopt proc~setup->plsetopt plsfam plsfam proc~setup->plsfam plfontld plfontld proc~setup->plfontld plinit plinit proc~setup->plinit plsdev plsdev proc~setup->plsdev plend plend proc~show->plend pllab pllab proc~labels->pllab plline plline proc~plot->plline plptex plptex proc~plot->plptex plssym plssym proc~plot->plssym
Help

Source Code


Variables

Type AttributesNameInitial
real(kind=wp), dimension(:), allocatable:: x
real(kind=wp), dimension(:), allocatable:: y

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