title: How to suppress zero in stacked bar graph display
body: <p>I have a sample stacked bar char as below. How can i suppress "0" values in the chart </p>
  
  <p>wherever i have 0 i dont want to display the values. Is there any way i can suppress zero<a href="https://i.stack.imgur.com/5rUrR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5rUrR.png" alt="enter image description here"></a></p>
  
  <p>I have below code while displaying data</p>
  
  <pre><code>for xpos, ypos, yval in zip(TABLE_NAMES, ID1/2, ID1):
      plt.text(xpos, ypos, yval, ha="center", va="center",fontsize=20)
  for xpos, ypos, yval in zip(TABLE_NAMES, ID1+ID2/2, ID2):
      plt.text(xpos, ypos, yval, ha="center", va="center",fontsize=20)
  </code></pre>
  
  <p>I have tried below approaches </p>
  
  <pre><code>ID1[ID1 == 0] = np.nan ( to pass nan value but i am getting error 
  Error: ValueError: cannot convert float NaN to integer
  </code></pre>
  
  <p>Is there any way i can achieve</p>
  
  <p>and also how can make y axis to display as per data(As per below image i have upto 6 on Y axis. and i use np.arange for this </p>
  
  <pre><code>np.arange(0,6,1) 
  </code></pre>
  
  <p>but in future i may have different values greater than 100 . Without specifying any function like np.arange is there any way i can pass it dynamically to handle yaxis without any range ..?</p>