Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Plot

cvega6
Beginner
675 Views
What is the simplest way of creating an plot in FORTRAN? All I want to do is graph f(x) in the y-axis and x in the x-axis. Thank you.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
675 Views
Whose Fortran do you have? If you have CVF, there's a SciGraph library in the Samples folder, which will do what you want. SciGraph doesn't yet work in Intel Fortran.

Steve
0 Kudos
larkov
Beginner
675 Views
There are two ways to create a plot:

1. Use OpenGL as described in your compiler's manual (I've checked it for CFV 6.5 only). It's quite easy.

2. Use API just like in example below (CVF 6.5):
use dfwina
use dflogm
use dfwinty
...
type (dialog) MyDialog
type (t_paintstruct) ps
type (t_point) pt
real x0,y0,x,y
integer hDC
...
hDC=BeginPaint(MyDialog%hwnd,ps)
...
call MoveToEx(hDC,x0,y0,pt)
call LineTo(hDC,x,y)
...
call EndPaint(hWnd,ps)

See your compiler's help files for details or e-mail me at Antech@rambler.ru.

Best regards.

Andrew. From Russia With Love.
0 Kudos
Reply