I am trying to plot the frequency count of the following values available in (test_plot_bins.txt) in Gnuplot
-0.355534673
0.13217762
-0.842048585
-0.131302223
0.03265043
0.190827265
-0.25680709
-0.072149448
-0.156086803
0.065009468
-0.003330263
-0.059023393
-0.017556788
-0.06090761
-0.205948548
-0.18360047
using this script
#!/usr/bin/gnuplot -persist
clear
reset
set key off
set border 3
set boxwidth 0.05 absolute
set style fill solid 1.0 noborder
bin_width = 0.01;
bin_number(x) = floor(x/bin_width)
rounded(x) = bin_width * ( bin_number(x) + 0.5 )
plot 'test_plot_bins.txt' using (rounded($1)) :(1) smooth frequency with boxes
Here is the result. How do I change it that it becomes a normal line plot?
Secondly, when I replicate a value so that its count becomes 2 and then plot it, it stands out and diminishes other values. Here is how it looks like
How do I scale the plot that other values with count of 1 are also visible?



set style data lines