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

Using SCIGRAPH plotting library

longthong
Einsteiger
2.849Aufrufe
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 Antworten
Steven_L_Intel1
Mitarbeiter
2.848Aufrufe
No - SCIGRAPH is heavily dependent on QuickWin.
longthong
Einsteiger
2.848Aufrufe
Phoeey! {:-(} Is there any othe similar FREE product that you know of?
DT
Steven_L_Intel1
Mitarbeiter
2.848Aufrufe
Try PGPLOT
cyrillique
Einsteiger
2.849Aufrufe
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.
Les_Neilson
Geschätzter Beitragender II
2.849Aufrufe
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

cyrillique
Einsteiger
2.849Aufrufe
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...
Les_Neilson
Geschätzter Beitragender II
2.849Aufrufe

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
cyrillique
Einsteiger
2.849Aufrufe
 
cyrillique
Einsteiger
2.849Aufrufe

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

Les_Neilson
Geschätzter Beitragender II
2.849Aufrufe

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
cyrillique
Einsteiger
2.849Aufrufe
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 =/
cyrillique
Einsteiger
2.849Aufrufe
 
longthong
Einsteiger
2.849Aufrufe
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
Steven_L_Intel1
Mitarbeiter
2.849Aufrufe
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.
cyrillique
Einsteiger
2.849Aufrufe

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

Antworten