in reply to Re: Comparing graph shapes or soft matching.
in thread Comparing graph shapes or soft matching.

You obviously have a clear picture in mind, which is hard to communicate verbally.

The easiest way to ask this question is to show us some sample plots, the associated data and your interpretation of "alikeness".

Either by ASCII graphic in a code section or by sharing a link to a freely hosted picture °

+ x * x + etc x +

I already gave you the standard approach in mathematics, which is calculate the mean of squared differences.

You might tell us why this doesn't solve the problem.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Update

°) Another possibility is sharing a Google doc spreadsheet including data and plotting

Replies are listed 'Best First'.
Re^3: Comparing graph shapes or soft matching.
by cavac (Prior) on Jun 28, 2024 at 16:36 UTC

    If the data can be exported to something like CSV, it can be plotted using gnuplot into a nice ASCII art.

    Data-example (incomplete):

    date_trunc;temperature;humidity;oventemperature 2024-06-28 16:25:31;22.5;99.9;27.2 2024-06-28 16:25:43;22.59;99.9;27.2 2024-06-28 16:25:53;22.59;99.9;27.2 2024-06-28 16:26:04;22.59;99.9;27.2 2024-06-28 16:26:15;22.59;99.9;27.2 2024-06-28 16:26:18;22.59;99.9;27.2 2024-06-28 16:26:28;22.59;99.9;27.2 2024-06-28 16:26:39;22.59;99.9;26.5 2024-06-28 16:26:49;22.59;99.9;27 ...

    Gnuplot-file for this:

    set title "Bedroom\nTemperature BME" set datafile separator ";" # Set virtual terminal size to 120x30 and print to STDOUT set terminal dumb size 120,30 set xlabel "Logtime" set ylabel "Sensorvalue" set xdata time #set timefmt "%Y-%m-%d" #set xrange ["03/21/95":"03/22/95"] set format x "%d.%m\n%H:%M" set timefmt "%Y-%m-%d %H:%M:S" set key autotitle columnhead outside plot "bme.csv" using 1:2 title "Room temp(Celsius)" with lines, \ "dht.csv" using 1:4 title "Oven temp (Celsius)" with lines

    "bme.csv" using 1:2 specifies the filename and which two columns to use for a given plotline (first one is always the timestamp in my case). You can use the same file with different columns, or use different files altogether.

    Result:

    Bedroom + Temperature BME + 28 +------------------------------------------------------------- +-------------------+ | + + + + + + + + # + | Room temp(Celsius) ******* | # # ## #### ## # # # # + # # # # # # | Oven temp (Celsius) ####### 27 |-+ ######################################################## +################ +-| | ############## ##################### # ## ########### # +#### ########### | | ##### ######## ### ################# # ## ########### # +#### ############ | | ## # # # # + # #### ## ### | 26 |-+ + # ## ###+-| | + # # ### | | + # ## | 25 |-+ + ##+-| | + ## | | + # | | + # | 24 |-+ + #+-| | + # | | + # | 23 |-+ + #+-| | + ******** | | ******************************************************** +********** | | + + + + + + + + + | 22 +------------------------------------------------------------- +-------------------+ 28.06 28.06 28.06 28.06 28.06 28.06 28.06 2 +8.06 28.06 28.06 16:15 16:30 16:45 17:00 17:15 17:30 17:45 1 +8:00 18:15 18:30 Logtime

Re^3: Comparing graph shapes or soft matching.(Sharing spreadsheets/ line plots)
by LanX (Saint) on Jun 29, 2024 at 10:41 UTC