plot - gnuplot: plotting from a binary file containing single column -


i have binary file - 1 column, 20 values.

the first 10 - x coordinate

the following 10 - corresponding y coordinates.

is possible plot x-y plot using gnuplot without preprocessing ? if not, how can preprocess binary file (not converting normal text file) plotting in gnuplot ?

as far can see, not possible gnuplot, although offers massive options binary files. 1 possibility plot file following python script (provided, numbers stored integer), otherwise must adapt it:

import sys import numpy np np.savetxt(sys.stdout, np.fromfile(sys.argv[1], dtype='i4').reshape(2,10).transpose()) 

and plot

plot '< python script.py data.bin' 

if plan work more binary data files, suggest use hdf5 file format.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -