Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) plt.figure()(I) Creates a pie chart
(B) plt.pie()(II) Sets figure size
(C) plt.bar()(III) Creates a bar chart
(D) alpha=0.5(IV) Sets transparency

Solution

✅ Correct Option: 2
List IList II
(A) plt.figure()(II) Sets figure size
(B) plt.pie()(I) Creates a pie chart
(C) plt.bar()(III) Creates a bar chart
(D) alpha=0.5(IV) Sets transparency

plt.figure() creates a new figure, and its figsize argument sets the size, e.g. plt.figure(figsize=(8, 5)).

alpha takes a value from 0 (fully transparent) to 1 (fully opaque), so 0.5 gives half transparency.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question