A

Admin • 833.24K Points
Coach

Q. How do you display a colorbar in an imshow plot?

  • (A) plt.colorbox()
  • (B) plt.imcolor()
  • (C) plt.colorbar()
  • (D) plt.addlegend()
  • Correct Answer - Option(C)
  • Views: 19
  • Filed under category Matplot Lib
  • Hashtags:

Explanation by: Admin

plt.colorbar() adds a reference scale to images and heatmaps.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.