From David Jackson@21:1/5 to All on Wed Nov 1 20:00:53 2023
What do I need to change in the code below to keeping the letters of the y axis from stacking on top of each other?
# Setup the plot environment
set terminal png size 800,600
set output "histogram__total_bags.png"
set title "Histogram of Total Bags Shipped(Avocado)"
set xlabel "Total Bags(x10,000,000)"
set ylabel "Freq" rotate by 90
# Set bin width and range
bin_width = 4000000
bin_number(x) = floor(x/bin_width)
# Set fill style
set style fill solid
# Generate the histogram
plot 'data.txt' using (bin_number($1)):(1.0) smooth freq with boxes notitle