Computer Science · Data Visualization using Matplotlib
Given the following code to plot a histogram in Matplotlib: df.plot(kind='hist', edgecolor='Green', linewidth=2, fill=False) What is the effect of setting fill=False?
- 1The edge color of each histogram bar will default to black.
- 2The plot will automatically choose a random fill color.
- 3Each histogram bar will be hollow/empty without any background fill color.✓
- 4Each histogram bar will be filled with a solid green color.
Correct answer
Each histogram bar will be hollow/empty without any background fill color.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Visualization using Matplotlib?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Visualization using Matplotlib