title: gnuplot cluster the x range for stacked histograms
body: <p>I have the following code that generates a stacked histogram:</p>
  
  <pre><code>#!/usr/bin/gnuplot
  set term postscript eps enhanced color
  #set output 'stacked-hist.eps'
  set output ARG1.'.eps'
  
  set title ARG1
  set key top left outside horizontal autotitle columnhead
  
  #set xtics rotate by 90 offset 0,-5 out nomirror
  set autoscale x
  set ytics out nomirror
  
  set style fill solid border -1
  set boxwidth 0.5 relative
  set style data histograms
  set style histogram rowstacked
  set xlabel "Degree of node"
  
  plot ARG1 using 2, '' using 3:xtic(1)
  </code></pre>
  
  <p>This results into the following: (Because the xrange is 0:5000)
  <a href="https://i.stack.imgur.com/UBm16.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UBm16.jpg" alt="Stacked histogram for a long x-range"></a></p>
  
  <p>What I would like to have is following (In the input data, I don't have many datapoints for every X, So I would like to see the clusters of histograms as shown below:
  <a href="https://i.stack.imgur.com/jstlB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jstlB.jpg" alt="enter image description here"></a></p>
  
  <p>Is there way to do it in gnuplot ?
  Is there a formal name for such stacked histograms ? (grouped stacked histograms)</p>