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.

Using SCIGRAPH plotting library

longthong
Beginner
2,441 Views
I have used SCIGRAPH (COMPAQ FORTRAN) plotting extensively. I used the QuickWIN framework as per the documentation. Can I also use SCIGRAPH in a WIN32 framework?
DT
0 Kudos
15 Replies
Steven_L_Intel1
Employee
2,440 Views
No - SCIGRAPH is heavily dependent on QuickWin.
0 Kudos
longthong
Beginner
2,440 Views
Phoeey! {:-(} Is there any othe similar FREE product that you know of?
DT
0 Kudos
Steven_L_Intel1
Employee
2,440 Views
Try PGPLOT
0 Kudos
cyrillique
Beginner
2,441 Views
Dear colleagues,
could you please suggest the wright way to use SciGraph in application (sorry, i havn't found it in this forum)? It seems that adding 6 *.f90 files to the project is not sufficient. Should I write the correspondent "use ..."operators, include module files? Or smth else?
Thank you in advance.
0 Kudos
Les_Neilson
Valued Contributor II
2,441 Views
From the scigraph.txt file (see ...DF98samplesscigraphscigraph.txt)

To use SciGraph in your own programs, you must:

1. Ensure that the SciGraph library, "scigraph.lib", is available on the path searched by the linker for libraries. The linker uses the LIB environment variable to specify the library paths (or you can use Microsoft Developer Studio, which has its own setting).

2. Ensure that the SciGraph module, "scigraph.mod", is available on the path searched by the compiler for module files. This compiler uses the INCLUDE environment variable to specify the include paths.

3. Insert the statement "USE SCIGRAPH" in all modules and program units which use SciGraph functions.

4. Call SciGraph functions (as described in this scigraph.txt file)

hth

Les

0 Kudos
cyrillique
Beginner
2,441 Views
Les, i've certainly tryed this, but compilation gives "Error: The type of the actual argument differs from the type of the dummy argument. [XYGRAPH] retcode=GetGraphDefaults($GTXY,xyGraph)"
I don't understandthis, caus' xyGraph type is specified in module SGADMIN which is referenced by SciGraph...
0 Kudos
Les_Neilson
Valued Contributor II
2,441 Views

I have just compiled and run the SciGraph demo (Win32 x86)and it works ok.

Are you running the demo or your own program? If it is your program then it would help if you posted the code of the routine that does not compile.

Les
0 Kudos
cyrillique
Beginner
2,441 Views
 
0 Kudos
cyrillique
Beginner
2,441 Views

Sorry, smth went wrong with the post. I've attached the code - i'm testing SciGraph inmost simple Win32 application.

0 Kudos
Les_Neilson
Valued Contributor II
2,441 Views

In SGADMIN GetGraphDefaults has a dummy argument "graph"defined as :

RECORD /GraphSettings/ graph

In your program you have xygraph as REAL*4
See for example the sgdemo program which calls GetGraphDefaults as follows :
retcode=GetGraphDefaults($GTLINEWERRBAR,lineGraph)
and linegraph is declared as :
RECORD /GraphSettings/ lineGraph
Les
0 Kudos
cyrillique
Beginner
2,441 Views
OK, i've got a solution, everything works now. Just I had to add 5 files (sgadmin, sgdata, sgdraw etc.) to the project and declare arguments types (record).
I'll post the wright version tomorrow. Thank you, Les. The figures, however, looklike taken fromearly 80-ies =/
0 Kudos
cyrillique
Beginner
2,441 Views
 
0 Kudos
longthong
Beginner
2,441 Views
Steve_Lionel: I researched PGPLOT. It looks very interesting...but the installation directions for both COMPAQ and POWERSTATION FORTRAN both require the QuickWin environment.

"The application type must be "QuickWin"," from docs

Therein lies the problem. Do you suppose it would work in a WIN32 environment? QuickWin really sucks.

I noticed that "Cyrillique" (in this thread) is using SciGraph in a WIN32 environment. This is contrary to the documentation. Maybe this is why he is having trouble. Or; maybe I should try it. SciGraph is a neat, simple, quick and dirty graph maker. It would be great if one could make it run in WIN32.

DT
0 Kudos
Steven_L_Intel1
Employee
2,441 Views
I had not researched PGPLOT, so I didn't know it depended on QuickWin.

If you think you can make it work from a Win32 application, feel free to try. I don't think you'll be successful.
0 Kudos
cyrillique
Beginner
2,441 Views

LongThong, in fact I used QuickWin application, of course, and not Win32. Sorry if my misprint misled you.

0 Kudos
Reply