replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Problems with %pl
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems with %pl
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8213
Location: Salford, UK

PostPosted: Mon Jan 20, 2020 4:51 pm    Post subject: Reply with quote

Ken

I have added symbol 12 and 13.
Back to top
View user's profile Send private message AIM Address
Kenneth_Smith



Joined: 18 May 2012
Posts: 815
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Thu Jan 23, 2020 12:00 am    Post subject: Reply with quote

Thanks Paul, that's very much appreciated. Ken
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 815
Location: Hamilton, Lanarkshire, Scotland.

PostPosted: Mon Feb 17, 2020 12:46 pm    Post subject: Reply with quote

Paul, symbols 12 and 13 working as expected in release V8.61. Thank you.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8213
Location: Salford, UK

PostPosted: Thu Apr 09, 2020 10:15 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
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