| View previous topic :: View next topic |
| Author |
Message |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8281 Location: Salford, UK
|
Posted: Sat Sep 13, 2025 12:52 pm Post subject: |
|
|
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 |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2428 Location: Yateley, Hants, UK
|
Posted: Sat Sep 13, 2025 1:10 pm Post subject: |
|
|
Brilliant, Ken. I missed that - or forgot about it!
So what is SIMPLE.DLL?
Eddie |
|
| Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8281 Location: Salford, UK
|
Posted: Sat Sep 13, 2025 1:49 pm Post subject: |
|
|
| SIMPLE.DLL is the 32bit DLL for the SIMPLEPLOT library. |
|
| Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2428 Location: Yateley, Hants, UK
|
Posted: Sun Sep 14, 2025 11:12 am Post subject: |
|
|
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 |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2428 Location: Yateley, Hants, UK
|
Posted: Fri Sep 19, 2025 11:06 am Post subject: |
|
|
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 |
|
 |
Kenneth_Smith
Joined: 18 May 2012 Posts: 855 Location: Lanarkshire, Scotland.
|
Posted: Fri Sep 19, 2025 5:08 pm Post subject: |
|
|
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 |
|
 |
Kenneth_Smith
Joined: 18 May 2012 Posts: 855 Location: Lanarkshire, Scotland.
|
Posted: Wed Sep 24, 2025 1:13 pm Post subject: |
|
|
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 |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2428 Location: Yateley, Hants, UK
|
Posted: Wed Sep 24, 2025 1:34 pm Post subject: |
|
|
Hi Ken,
Did you intend to provide a link?
I thought the Bourke stuff was interesting.
Eddie |
|
| Back to top |
|
 |
Kenneth_Smith
Joined: 18 May 2012 Posts: 855 Location: Lanarkshire, Scotland.
|
|
| Back to top |
|
 |
|