Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Plot

cvega6
Beginner
688 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
688 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
688 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