To do plots, I can choose 6 parameters in a second window which are plotted against the time. It works like this: pressing the Plot-Button to get from the main window to the second window. Then pressing there the 'Y-Values'-Button I can choose up to 6 parameters for the y-axis. Pressing Exit, I come again to the Plot-window. Then pressing 'Plot' I get the graphs and everything is perfect. But again choosing some different (or the same) 'Y-Values', and pressing 'Plot' again, the colours of the plots get strange: very dark most of the time almost black and no differences between the graphs can be seen can be seen.
The colours are defined like this:
CALL USE_APPROXIMATE_COLOURS@(0)
COLOUR(0)=RGB@(0,0,0)
COLOUR(1)=RGB@(255,0,0)
COLOUR(2)=RGB@(100,255,0)
COLOUR(3)=RGB@(0,0,255)
COLOUR(4)=RGB@(255,0,255)
COLOUR(5)=RGB@(255,150,0)
COLOUR(6)=RGB@(0,255,255)
Then the line is made like this (NGRAPHS can be from 1 to 6, depending on how many parameters have been chosen):
DO 30000 J=1,NGRAPHS
...
CALL CHANGE_PEN@(HDC,PS_SOLID,1,COLOUR(J))
CALL MOVETOEX(HDC,IX1,IY1,0)
CALL LINETO(HDC,IX2,IY2)
C CALL DRAW_LINE(HDC,IX1,IY1,IX2,IY2,COLOUR(J))
Calling the self defined subroutine 'DRAW_LINE' which contains the same commands produces a run-time error (but I've got an older, simpler version of the program where everything works just like that). Calling 'DRAW_LINE@' makes all the lines in the wrong window, sometimes at the wrong place as well and in random colours.
It would be great if someone could help me with this problem:)
Thanks,
Flo.