Professional Documents
Culture Documents
Reviiosn Notes of Matplotlib-XII
Reviiosn Notes of Matplotlib-XII
Reviiosn Notes of Matplotlib-XII
Ans: matplotlib
Ans: it is a 2-D plotting library that helps in visualizing data into graphs.
Ans: pyplot
Ans: line,bar,histogram
Ans: Yes
Plt.savefig(“d:\figure1.jpg”)
Plt.savefig(“d:\figure1.png”)
Plt.savefig(“d:\figure1.bmp”)
Plt.savefig(“d:\figure1.pdf”)
Bar- bar()
Histogram- hist()
Ans: where x-axis and y axis points intersect we use markers for it.
star- ‘*’
circle- “O”
diamond- “D”
Solid- ‘-‘
Dash-dot ‘-.’
Ans:
‘b’ – blue
‘y’- yellow
A line chart, also referred to as a line graph or a line plot, connects a series of data points using a
line. This chart type presents sequential values to help you identify trends. Most of the time, the x-
axis (horizontal axis) represents a sequential progression of values.
Bar charts are used to present categorical data with rectangular bars. The bars can be plotted
vertically or horizontally, and their heights/lengths are proportional to the values that they
represent. Matplotlib is the library used for 2D plots of arrays in Python.
Q17. What is a histogram chart used for?
Q18. What is the minimum number of arguments required for plot() function in matplotlib?
Ans: 1
Q19. Which graph should be used where each column represents a range of values, and the height
of a column corresponds to how many values are in that range?
Ans: Histogram