title: gnuplot absolutely no y-markings at all and x-axis to front
body: <p>I would like to create a color bar plot of a single variable that draws a box to the left in red if the variable is negative and green to the right if positive.</p>
  
  <p>I am failing to get rid of the y axis completely. There shall be no marking of it whatsoever. Second the x-axis and tics is hidden behind the box. I need it visible. Third the plot of the line at 0 is really unnecessary as I have already drawn all I need but gnuplot wants a plot cmd with some sort of argument. I tried <code>plot 0 lt bgnd</code> but that left an ugly white line in my box. I guess I can live with that. Arrows at the ends of the x-axis would be nice, too.</p>
  
  <p>This is the current state of the code. (the variable v will later come from the outside world as command line argument)</p>
  
  <pre><code>v= 7.3
  if (v&lt;0){boxcolor= 'red'}
  if (v&gt;=0){boxcolor= 'green'}
  
  unset border
  unset ytics
  unset key
  
  set yzeroaxis
  set xzeroaxis
  set xtics axis
  unset ytics 
  set xrange [-10:10]
  
  set object 1 rect from 0.0,-0.5 to v,0.5 back fillcolor rgb boxcolor
  
  plot 0 
  </code></pre>
  
  <p>Result currently:
  <a href="https://i.stack.imgur.com/M8C1t.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M8C1t.jpg" alt="enter image description here"></a></p>