How to control xtics, ytics from matrix data file when changing orientation

I want to build a large file with matrix data (200 rows by 6000 columns in the file). Data is the FFT output of a radio signal through 18-24 MHz, 6000 bits of 1 kHz each. The file also contains header information for rows and columns: 1 top row with a list of 6,000 frequencies and one data-time at the beginning of each row for a timestamp. The result is the following: enter image description here

obtained in gnuplot with these statements:

set datafile separator ","
set ticslevel 0
plot 'test3.mat' matrix rowheaders columnheaders using 1:2:3 with image

For my planned use, I need to orient it horizontally, as shown below, but only the data rotates, and all the rows and columns are now on the wrong axis. enter image description here

it turned out data transformation, changing the wording of the plot in this way:

plot 'test3.mat' matrix rowheaders columnheaders using 2:1:3 with image

Is there any way:

  • "" , ( y x)
  • , , .

:

1 , NO heatmap (+ msg: ": 2 x 2" )

plot 'test3.mat' matrix nonuniform using 2:1:3 with image

enter image description here

2 ( / ) . x - , tics.

set datafile separator ","
set ticslevel 0

set timefmt '%Y-%m-%d %H:%M:%S'
set xdata time
set format x "%H:%M:%S"

set format y "%.1s"

set autoscale xfix
set autoscale yfix

plot 'test3-nohead.mat' matrix using ("2015-12-03 15:08:39"+0.05*$2):(18000000.0+1000.0*$1):3 with image

enter image description here

+4

Source: https://habr.com/ru/post/1619335/


All Articles