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 

%pl guide
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


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

PostPosted: Sat Sep 13, 2025 12:52 pm    Post subject: Reply with quote

Eddie

SIMPLE.DLL is still included in the installation in case it is needed for legacy code.

For new code and 3D graphics you could use OpenGL (via ClearWin+ %og say). Although there have been complaints about the learning curve for OpenGL, I suspect that SIMPLEPLOT would not be easier to use.

For 2D graphics you could use ClearWin+ %gr/%pl or %og.

There is also Bill Bardsley's SIMFIT library which can be accessed via Simdem.exe/x64_Simdem.exe and is described the help file under FTN95 then SIMFIT. This includes some 3D plotting.

The original (non_native) %pl does not use winop@.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2428
Location: Yateley, Hants, UK

PostPosted: Sat Sep 13, 2025 1:10 pm    Post subject: Reply with quote

Brilliant, Ken. I missed that - or forgot about it!

So what is SIMPLE.DLL?

Eddie
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Sep 13, 2025 1:49 pm    Post subject: Reply with quote

SIMPLE.DLL is the 32bit DLL for the SIMPLEPLOT library.
Back to top
View user's profile Send private message AIM Address
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2428
Location: Yateley, Hants, UK

PostPosted: Sun Sep 14, 2025 11:12 am    Post subject: Reply with quote

Having peeked at the documentation Ken pointed me to, I think Paul's assertion that SimplePlot 3D is likely to be as difficult as OpenGL is very likely to be correct.

I think that I'll take the very broad hints and do something else!

Eddie
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2428
Location: Yateley, Hants, UK

PostPosted: Fri Sep 19, 2025 11:06 am    Post subject: Reply with quote

Ken,

That final example is a bit of a revelation. I suppose that with a different algorithm the second pass could be configured to produce coloured bands rather than a continuous spectrum.

It seems that red to blue through green is the simplest colour sequence. Some years ago I asked if anyone knew others. No response!

Eddie
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 855
Location: Lanarkshire, Scotland.

PostPosted: Fri Sep 19, 2025 5:08 pm    Post subject: Reply with quote

Eddie, it does not change the intention of the last example but the assignment for z should be:
Code:
z = spread(sin(x), 2, size(y)) * spread(cos(y), 1, size(x)) + &
      0.5d0 * spread(sin(2.0d0*x), 2, size(y)) * spread(cos(2.0d0*y), 1, size(x))


I should have used to nested do loops! However I’m trying to keep the number of lines in these examples small – hence the use of spread.

Bands are a good idea. Here is a very slightly modified version of the example which allows the plot to be drawn with different numbers of levels:

https://www.dropbox.com/scl/fi/h2svtrszccn1dpi8l3y7d/ex31_new.f95?rlkey=66mkzu6wctmqw1zspyj1fzvz0&st=v42sm89i&dl=0

There is a very good discussion of colour ramps to be found here:

https://paulbourke.net/miscellaneous/colourspace/
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 855
Location: Lanarkshire, Scotland.

PostPosted: Wed Sep 24, 2025 1:13 pm    Post subject: Reply with quote

Eddie,

Viridis, Inferno, Plasma, Magma and Cividis colourmaps are designed so that equal steps in the data value correspond to equal perceptual steps in colour. They are designed to remain distinguishable by people with common forms of colour blindness.

Created by Stéfan van der Walt, Nathaniel Smith, and Eric Firing for Python/Matplotlib.
Licence: CC0 1.0 Universal (public domain).

The licence makes them easy to adopt in Clearwin+.

Some of the later examples I plan to add to the guide will use these.
Back to top
View user's profile Send private message
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2428
Location: Yateley, Hants, UK

PostPosted: Wed Sep 24, 2025 1:34 pm    Post subject: Reply with quote

Hi Ken,

Did you intend to provide a link?

I thought the Bourke stuff was interesting.

Eddie
Back to top
View user's profile Send private message
Kenneth_Smith



Joined: 18 May 2012
Posts: 855
Location: Lanarkshire, Scotland.

PostPosted: Wed Sep 24, 2025 3:21 pm    Post subject: Reply with quote

Eddie,

The first link is useful. Has other links too.

The second gives the full mapping (but not a particularly Fortran friendly format)!

https://waldyrious.net/viridis-palette-generator/

https://github.com/BIDS/colormap/blob/master/colormaps.py
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
Goto page Previous  1, 2
Page 2 of 2

 
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