#GNU OCTAVE SCALING AXES HOW TO#
How can I “teach” Gnuplot to recognize this particular file and automatically read the size of the matrix (this is available in the header of the file) – I’ve seen that it recognizes some binary files by default and knows how to draw them which would be my end goal. Is there some good instructions on how to do this reading/drawing binary files? I find the info in wiki/manual/examples lacking detailed explanation and hard to understand. I am sure that it can be done since I can achieve it through Octave and a borrowed Matlab script, but I do not see what is happening because the Octave pipes the data directly to Gnuplot.Ī more direct help/instructions would be appreciated, but I will be satisfied with the answers to the next two questions: Basically it should be something like skip the header, draw a matrix consisting of Ntraces X Sample values with image – but I just do not get it. I can read the number of traces and samples, but I do not know how to instruct Gnuplot to read this particular file and draw an image out of it. The binary output is well documented and consists of a header and “rows” of data = each trace consist of the number of samples. I am investigating a way to use Gnuplot to show binary output files from the GPRMax2D ground penetrating radar simulator. Tags: binary, colormap, image, Matlab, matrix 1 as pdf created with plot and image and as pdf created with splot and pm3d map. Note that in principle a color map can also be created by the splot command: set pm3d mapīut if you create vector graphics with this command you will get a really big output file, because every single point will be drawn separately. plot 'color_map.bin' binary matrix with image
The stored binary matrix can then be plotted by adding the binary indicator to the plot command. In Matlab/Octave the binary matrix can be stored using this m-file. The format of this matrix has to be the following: Therefore the data has to be stored as a binary matrix. 3 A color map with a scaled x-axis ( code to produce this figure, data)Īnother way is to store the axes vectors together with the data.