Re: Graphing
On Saturday, 1 July 2023 at 01:00:46 UTC, anonymouse wrote: How would I go about graphing time series data (specifically, candles, moving averages, etc) in D and dynamically updating such charts? Thanks, --anonymouse https://github.com/epezent/implot And C bindings: https://github.com/cimgui/cimplot Also, https://github.com/epezent/implot_demos For stocks.cpp
Re: Graphing
On Saturday, 1 July 2023 at 01:00:46 UTC, anonymouse wrote: How would I go about graphing time series data (specifically, candles, moving averages, etc) in D and dynamically updating such charts? Thanks, --anonymouse For TS you can use http://mir-algorithm.libmir.org/mir_series.html For plotting https://code.dlang.org/packages/ggplotd
Graphing
How would I go about graphing time series data (specifically, candles, moving averages, etc) in D and dynamically updating such charts? Thanks, --anonymouse
Re: Graphing a D function : possible?
On Thursday, 2 June 2022 at 03:37:13 UTC, z wrote: Is there a quick way of obtaining the graph of D functions like these? ```d T f(T) if (isScalarType!T){} ``` or ```D T[2] f(T, T)if (isScalarType!T){} ``` I know that there are graphing calculators already, but these don't support low level black magic like int <-> float conversions and i'm lost because there is no way to know if the code i write is correct without a graph or trial and error, hence the question. Many thanks I'm not that familiar with D libraries, but I'm sure there is a graphing library. If not, I will make one soon because I need one. If you just need a graph, write a loop calling that function and print input, output to a file (csv) Then put it in google sheets or excel and make a graph. However, what *I* would do to determine if the function is correct is look at the output in the console then write unit tests.
Re: Graphing a D function : possible?
On Thursday, 2 June 2022 at 03:37:13 UTC, z wrote: Is there a quick way of obtaining the graph of D functions like these? ```d T f(T) if (isScalarType!T){} ``` or ```D T[2] f(T, T)if (isScalarType!T){} ``` I know that there are graphing calculators already, but these don't support low level black magic like int <-> float conversions and i'm lost because there is no way to know if the code i write is correct without a graph or trial and error, hence the question. Many thanks Probably the easiest way would be to run the function on a bunch of different inputs, and plot the input-output pairs as 2D or 3D points. Pretty much any plotting software should be able to handle a list of points.
Graphing a D function : possible?
Is there a quick way of obtaining the graph of D functions like these? ```d T f(T) if (isScalarType!T){} ``` or ```D T[2] f(T, T)if (isScalarType!T){} ``` I know that there are graphing calculators already, but these don't support low level black magic like int <-> float conversions and i'm lost because there is no way to know if the code i write is correct without a graph or trial and error, hence the question. Many thanks
Re: Is there a graphing library for D?
I know I am too late, as you know best thing always delay. So visit KoolChart to find best chart library.
Re: Is there a graphing library for D?
Al 17/07/12 19:53, En/na cal ha escrit: > On Tuesday, 17 July 2012 at 17:42:49 UTC, dcoder wrote: >> I'm looking for a graphing library for D. Preferrably, something that uses >> Qt, but it doesn't have to. I am plotting sonar data, and I need to plot it >> 'live' so... I need something that is: >> >> 1. simple to use. I just want to graph x,y data. >> 2. ability to scale the display. >> 3. displaying more than one curve on the same graph. >> 4. Allows for animation of data. So, suppose I graph curve 1. >>Now I tell the library, okay data for curve 1 has been changed, >>please refresh graph. In this manner, I can move an object, and >>see the reflection in 'real time'. >> >>Real time in my case would be 10-30ms. > > > There is this, but I have not used it personally: > https://github.com/dsimcha/Plot2kill ...and there are plot2kill binary deb packages for debian, ubuntu, linuxmint, etc. at: https://code.google.com/p/d-apt/wiki/APT_Repository -- Jordi Sayol
Re: Is there a graphing library for D?
On Tuesday, 17 July 2012 at 17:42:49 UTC, dcoder wrote: I'm looking for a graphing library for D. Preferrably, something that uses Qt, but it doesn't have to. I am plotting sonar data, and I need to plot it 'live' so... I need something that is: 1. simple to use. I just want to graph x,y data. 2. ability to scale the display. 3. displaying more than one curve on the same graph. 4. Allows for animation of data. So, suppose I graph curve 1. Now I tell the library, okay data for curve 1 has been changed, please refresh graph. In this manner, I can move an object, and see the reflection in 'real time'. Real time in my case would be 10-30ms. There is this, but I have not used it personally: https://github.com/dsimcha/Plot2kill Note: GTK or DFL for the display backend
Is there a graphing library for D?
I'm looking for a graphing library for D. Preferrably, something that uses Qt, but it doesn't have to. I am plotting sonar data, and I need to plot it 'live' so... I need something that is: 1. simple to use. I just want to graph x,y data. 2. ability to scale the display. 3. displaying more than one curve on the same graph. 4. Allows for animation of data. So, suppose I graph curve 1. Now I tell the library, okay data for curve 1 has been changed, please refresh graph. In this manner, I can move an object, and see the reflection in 'real time'. Real time in my case would be 10-30ms. Does such a library exist? I click the library section on this site, and nothing stood out. thanks.