Skip to main contentSkip to solution

The plot() function by default plots a _________.

Solution

✅ Correct Option: 4

By default, the plot() function in Matplotlib's pyplot draws a line chart. It joins the given (x, y) points with straight lines, and a different chart type is produced only when you ask for it, for example with a format string, a keyword argument or a separate function.


Option 1: histograms need hist().

Option 2: scatter charts need scatter(), or plot() with a marker format such as "o" and no line.

Option 3: bar graphs need bar() or barh().

Keyboard Shortcuts

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