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 

New %pl

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2813
Location: South Pole, Antarctica

PostPosted: Mon Apr 12, 2021 9:43 am    Post subject: New %pl Reply with quote

Paul,
Was the major rebuild of native %pl we previewed and discussed around 6 months ago, the one where user can change all after plot is done without all these winop@, added to the latest releases?

i=winio@('filename,%pl', n,x,y)
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Apr 12, 2021 11:35 am    Post subject: Reply with quote

Dan

Yes. You can find details in cwplus.enh and item 450.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2813
Location: South Pole, Antarctica

PostPosted: Mon Apr 12, 2021 1:47 pm    Post subject: Reply with quote

Paul,
But I do not see any examples there !!! Video was about clipboard case

Without an initial examples any explanation how thing work look like a chinese language. I'd like to see minimal size example, literally 5 lines maximum (including XY data) which uses the file for saving settings. I remember that the first impression for using clipboard for saving settings was extremely cumbersome because the clipboard settings were not for human consumption Smile

Am i correct that using the file instead of clipboard to save and read settings will work the following way:

1) we start the raw %pl with default look.
2) Default look usually is ugly so we adjust it online to look perfect with mouse and keyboard
3) and then we will save plot settings to the file
4) ...and exit EXE file
5) When we open the plot next time it will automatically use the same settings file and plot us perfect plot

Since the settings format is not for human understanding and consumption, it is better that we just save settings to the file and touch them. Though of course having an option to wrap settings into the source code via clipboard might be sometimes useful too.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Mon Apr 12, 2021 4:33 pm    Post subject: Reply with quote

Code:
      WINAPP
      USE clrwin
      PARAMETER(N=11)
      REAL*8 x(N),y(N),z(N)
      DO i=1,N
        x(i)=0.1d0*(i-1)
        y(i)=x(i)*x(i)
        z(i)=x(i)*x(i)*x(i)
      ENDDO
      i=winio@('%bg[BTNFACE]&')
      i=winio@('%ca[Simple plot]%pv&')
      CALL winop@("%pl[n_graphs=2]")
      CALL winop@("%pl[title=Graphs]")
      CALL winop@("%pl[x_array]")
      CALL winop@("%pl[file=plot.dat]")
      i=winio@('%pl&',400,250,N,x,y,z)
      i=winio@('%ff%nl%cn%tt[OK]')
      END
      resources
      1 24 default.manifest
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2813
Location: South Pole, Antarctica

PostPosted: Mon Apr 12, 2021 4:48 pm    Post subject: Reply with quote

Yea, very cool
Thanks
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2813
Location: South Pole, Antarctica

PostPosted: Wed Apr 14, 2021 6:35 am    Post subject: Reply with quote

Paul,
All looks fantastic. This how %pl should be done!

Q: How to change axis captions and title fonts to bold? Can we change their font sizes? Can the font names be changed?

One suggestion: one thing should be changed permanently though: X and Y captions have to be placed in the middle of axis centered. Currently X and Y title are not in their place 99.99% people would like them to see

/* Now i have to play with it a bit to make the universal setup i like most and then make from it just single like shortcuts for quick include of the graph into the future codes just with one click (shortcut for just one curve on the plot, two curves, 7 etc, the log scale plot, the symbol plot etc). In the codes like PIC with the huge data the ability to quickly plot needed data is as important as PRINT* or WRITE(*,*) statements, or having visual debugger like SDBG/SDBG64 to see each variable and the code flow in realtime. Where you in the past used PRINT to see some numbers, now you use PLOT because you simply can not comprehend gigabytes of data. This is why adding plots just with the single line of Fortran code (maximum few) becomes so important. I have hundreds of %pl in my codes. But the difficulty to effortlessly include them just with couple lines of code like with the MATLAB and then adjusting without recompilation was huge problem.

Those who use Clearwin should start thinking to create library of shortcuts for quick insertion of Property sheets, list views, warnings etc. Users will exchange best shortcuts in the future, make clip libraries of shortcuts etc


Last edited by DanRRight on Wed Apr 14, 2021 7:05 am; edited 1 time in total
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Apr 14, 2021 7:03 am    Post subject: Reply with quote

Dan

%pl herits its font from the previous %fn.

If you want the title to have a different font than the other captions then you can draw it in a %pl callback function using %gr drawing routines.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2813
Location: South Pole, Antarctica

PostPosted: Wed Apr 14, 2021 7:46 am    Post subject: Reply with quote

Pity there is no bold face in online settings for the plot.

Strange thing is that just adding %bf in the body of the text
Code:
      i=winio@('%bf%pl&',400,250,N,x,y,z)

does not work. To add bold face font i have to include also the font name

Code:
i=winio@('%fn[Tahoma]&')
i=winio@('%bf&')


Also adding shortcut ESC to exit code %es does not work. Is this my setup problem or %es ?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Apr 15, 2021 12:58 pm    Post subject: Reply with quote

%bf works OK for me but the difference between bold and not bold for the default font is not so marked.

%es was broken in the latest DLLs and I plan to provide a fix in a new download later today.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2813
Location: South Pole, Antarctica

PostPosted: Thu Apr 15, 2021 1:53 pm    Post subject: Reply with quote

Thanks Paul

Do you plan to add Font selection, bold fonts, italic etc to manual online plot Settings (i do not know how do you call these new settings allowing to change plot after it was created) ?
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Apr 15, 2021 1:58 pm    Post subject: Reply with quote

Documentation is provided initially in cwplus.enh and then copied to the help files when time allows.
Back to top
View user's profile Send private message AIM Address
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Fri Apr 16, 2021 10:34 pm    Post subject: Reply with quote

Dan,
Quote:
Was the major rebuild of native %pl we previewed and discussed around 6 months ...


... do you have a reference for the post/posts where all this went on please. Thanks.
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
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