Usage with np.arange()
zooplibob opened this issue · 2 comments
zooplibob commented
I have some code doing a sweep using np.arrange:
for variable in np.arange(10, 20, 0.1):
...
I can use manual mode can calculate the percentage, but how can I have it display the actual value of variable next to the bar (rather than just percent)?
TheTechRobo commented
Check out the Displaying messages section of the README - bar.text
might be what you're looking for
rsalmei commented
You have two ways. One is like you and @TheTechRobo have said: use manual mode to directly calculate the percentage, and bar.text
to display it on the bar.
Another is to just use the variable range as the total, which would automatically calculate the percentage for you. You could also show it the same way.
range = (20 - 10) / .1 = 100 steps