Hello: could anyone advise me on a visualisation library to make a 3D plot a a 3D data array (basically a data cube) and do some basic manipulation like plot a slice perpendicular to one of the axes? I looked a Simdem but could not identify an adequate routine. Ideally I'd prefer an open source / free package such as Simdem, but if need be I can bar some reasonable costs for a commercial package (100s of $s)

can you post us an example picture of what you want to achieve ?_________________''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 ... "

See file in this link [url]https://1drv.ms/u/s!AuTT_gAwgmEIhIp_R3CHjfR2JQDeDw[/url] This is a visualization of a 50*25*10 array with the 3rd (z-layer) index as value. This visualization was obtained via exporting a file to Paraview (OS visualisation software, excellent btw). I'd just want to do something basic like this internal in my program so that I can QA before exporting it.

Hello - I saw some discussions in this forum on 'Native %pl', which seems partly to go into a direction I could use. However, I could not work out what it exactly is and how to use is. Would appreciate if someone could explain.

Last edited by jcherw on Mon Oct 15, 2018 2:04 am; edited 1 time in total

I also went ahead and dabbleb with plotPL, only to find out that it currently does not jive very well with Ftn95. I saw an old discussion and downloaded a DLL that makes some routines of an older plotPL version work, which is already useful for a quick fix right now. However, does anyone have perhaps an update of the use of plotPL wioth Ftn95??

1. 'Native' %pl has a 2-D X-Y plotting capability only. So no good for your specific problem.

2. I've never heard of 'plotPL' - do you mean PLPlot ? or if not what ?
Could you please post a link to this 'discussion' you saw and the .dll which works with ftn95 ? Thanks

3. with SIMFIT, the capability you want is probably surface plotting. you'd have to arrange the definition of data corresponding to the 3 visible faces of your 'cuboid' as 3 seperate 'surfaces'. For 'cutting' you could do that by limiting the data to be plotted to that within the cut 'cuboid' by interactively specifying a co-ordinate in the 3rd direction to define the plaběne, Then dynamically replotting it. Alternatively you could also directly call your Paraview program from within your ftn95 code and use that directly for your pre-visualisation task.

3- I have tried some of the simfit routines using a 'slice' or 'layer' of the data cube. I found the options on simfit quite limited though. For example, I used the surd2s routine but was unable to pass x and y vectors for my 2d data array.

I also went ahead and dabbleb with plotPL, only to find out that it currently does not jive very well with Ftn95. I saw an old discussion and downloaded a DLL that makes some routines of an older plotPL version work, which is already useful for a quick fix right now. However, does anyone have perhaps an update of the use of plotPL wioth Ftn95??

There is no possibility at present for updating PlotPL with FTN95. As I wrote in that thread,

mecej4 wrote:

After posting the DLL, I tried running some of the examples included in the current distribution. Not a single one worked, because in the new versions they have added a dependency on the ISO_FORTRAN_ENV module, which we do not (yet) have in FTN95.

Gosh I compleely forgot about that 18 months ago post and I started it !!!

I remember I was put off pushing it further because of the obvious linux-entric slant to the development community.
That and the fact you couldn'0t actually build the ltest version from source because of the need to use CMAKE which wasn't/isn't available in ftn95.

A pity. It looks like another of those promising but so near yet so far (as far as ftn95 is concerned) offerings.

Still (a parthian shot this one ) not bad having yet another potential string to the bow for SF when the 3-D plotting capability implementation is started _________________''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 ... "

You could use %pl to set up the x and y coordinates. Then since %pl is a graphics region you can simply draw your contour lines on the drawing surface via a call back function. I've got this to work, using Paul Bourke's CONREC routine.

After looking around myself I can't find anything either to do what's really wanted (contours on 3-D cuboid.
Plenty that do what is intuitively harder - contours as the Z displaced from the 2-D plane. But nothing much resembling what is ideally required, namely this:

What's needed is an adapted FE contouting code !
JohnC - over to you maybe ?

Ken, your linked code is very interesting, although it only does line contours as it stands doesn't it, not shaded contours.

Careful, I guarantee you won't stop looking at those ads once you start !

From an advertisers point of view it's a golden format. Modern internet advertising has nothing on it, despite reaching millions, because the intelligenci just switch AdBlock on

Look out for the 'Tandon Computers' at 30% lower price thanany other competitor, with the state of the art 70Mb hard disk (no I don't have a keyboard which auto-switches 'G' and 'M' !!! LOL)

There are also some obtuse nods in there to ftn95 ! (a reference to mention of the super-est debugger in the world (M$); and a strangely 'native-%PL-ish' plot too at the end of one of the articles posted !!! ... without the gremlins! LOL)

Oh and don't fall of your seat or spill your kipper tie when you spot the leading portable computers of the era !!!_________________''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 ... "

for a 2-D contouring 'stop-gap' option you might be able to use the Simpleplot (that's ye olde %pl (without the '[native]' option) !!!!!!

You may, or may not, encounter some of the niggly restrictions seen on 3-d plotting which are not fixable (because SF have only the dll not the source code - this is why they spent so much effort creating native %pl for X-Y plotting, but it's worth a try initially.

For your simple application it should work like a dream (he said putting the curse of the damned on it )

read all about it initially here:- https://www.silverfrost.com/manuals/fmanual3d.pdf_________________''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 ... "

Thanks to the curve-fitter link.
I certainly remember being impressed by the 40-mb disk.
We called it the "Compaq luggable". It went well with the brick portable phone.
Remember the joys of extended and expanded memory ?