 |
forums.silverfrost.com Welcome to the Silverfrost forums
|
View previous topic :: View next topic |
Author |
Message |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8213 Location: Salford, UK
|
Posted: Mon Jan 20, 2020 4:51 pm Post subject: |
|
|
Ken
I have added symbol 12 and 13. |
|
Back to top |
|
 |
Kenneth_Smith
Joined: 18 May 2012 Posts: 815 Location: Hamilton, Lanarkshire, Scotland.
|
Posted: Thu Jan 23, 2020 12:00 am Post subject: |
|
|
Thanks Paul, that's very much appreciated. Ken |
|
Back to top |
|
 |
Kenneth_Smith
Joined: 18 May 2012 Posts: 815 Location: Hamilton, Lanarkshire, Scotland.
|
Posted: Mon Feb 17, 2020 12:46 pm Post subject: |
|
|
Paul, symbols 12 and 13 working as expected in release V8.61. Thank you. |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8213 Location: Salford, UK
|
Posted: Thu Apr 09, 2020 10:15 am Post subject: |
|
|
I have reviewed this thread and here is a sample program that illustrates how to draw multiple titles at specified points on the graph.
Code: | WINAPP
MODULE mydata
USE clrwin
INTEGER,PARAMETER::n=1000
DOUBLE PRECISION y(n)
CONTAINS
INTEGER FUNCTION legend()
DOUBLE PRECISION xpix,ypix
IF(clearwin_string@("CALLBACK_REASON") == "PLOT_ADJUST") THEN
ir = get_plot_point@(400.0d0,1.4d0,xpix,ypix)
CALL italic_font@(0); CALL bold_font@(1); CALL scale_font@(1.1d0)
CALL draw_charactersD@("Sample plot", xpix, ypix, RGB@(0,0,128))
! **** More titles can go here ****
ENDIF
legend = 2
END FUNCTION legend
END MODULE mydata
PROGRAM main
USE mydata
INTEGER i,x
DOUBLE PRECISION p1,p2,p3,z
p1=1.5d0
p2=150.0d0
p3=15d0
x=0
DO i=1,n
z=p1*sin(x/p3)*exp(-x/p2)
y(i) = z
x=x+1
ENDDO
i=winio@('%ww[no_border]%ca[Damped wave]%pv&')
i=winio@('%fn[Tahoma]&')
i=winio@('%ts&', 1.1d0)
i=winio@('%it&')
i=winio@('%`bg&',rgb@(230,255,225))
CALL winop@("%pl[native,gridlines]")
CALL winop@("%pl[x_axis=Time(Milliseconds)]")
CALL winop@("%pl[y_axis=Amplitude]")
CALL winop@("%pl[smoothing=4]")
i=winio@("%^pl",500,400,n,0.0d0,1.0d0,y,legend)
END
|
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|