On Thursday, 20 July 2023 at 02:37:54 UTC, Chris Piker wrote:
Hi D
One of my jobs is to release and maintain public data archives
from long-running scientific instruments. In order to help
people understand how to process the data, sample code is often
included with the archive. Recently this has been in the form
of short programs that generate a plot of a representative time
period. Python works well for this task as matplotlib support
is pretty much universal. Matlab is also a reasonable choice
for many.
Were I to also provide sample code in D, what library would you
recommend for scientific plotting, especially for dynamic power
spectral densities generated from time-series data (basically
heatmaps)?
Since dub can pull down dependencies easily enough and since it
supports single file projects it seems that D would be well
suited to this task, but I've never plotted any data directly
from a D program. Many GUI libraries I see for D are wrappers
around external C or C++ based libraries that would need to be
installed separately. I'd like to avoid such complications if
that's possible.
Thanks for any advice,
If you happen upon a basic charting library for D during this
hunt, please let me know! Last year, I rolled my own and it got
the job done, but I wasn't concerned about how they looked. :D
As for plotting, I imagine it's c bindings only because there's
no need to re-invent the wheel.