tweak fortran pages
This commit is contained in:
5
code/fortran/Makefile
Normal file
5
code/fortran/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
INCS = -I/usr/include/plplot -I/usr/lib/x86_64-linux-gnu/fortran/modules/plplot
|
||||
|
||||
plplotting: plplotting.f90 Makefile
|
||||
gfortran -g $< $(INCS) -lplplotfortran -o $@
|
||||
8
code/fortran/plplotting.f90
Normal file
8
code/fortran/plplotting.f90
Normal file
@@ -0,0 +1,8 @@
|
||||
program plplotting
|
||||
use plplot
|
||||
implicit none
|
||||
|
||||
call plinit ()
|
||||
call plenv(-2.1, 2.1, -2.1, 2.1, 0, 0)
|
||||
call plend
|
||||
end program
|
||||
Reference in New Issue
Block a user