The box plot in matplotlib is mainly used to displays a summary of a set of data having properties like minimum, first quartile, median, third quartile, and maximum. Creating the Box Plot The Box plot in the matplotlib library is usually created with the help of boxplot() function. The required syntax for the boxplot() function is as follows: Following areContinue Reading

To plot the 2D field of arrows, we use the Quiver plot in the matplotlib library. Creating Matplotlib Quiver Plot In order to create a Quiver Plot the ax.quiver() function is used. The required syntax to use this function is as follows: Following are the parameters of this function, which you can see above in the syntax: Let usContinue Reading

To create a visualization of 3-Dimensional plots in 2-Dimensional space we use contour plots in Matplotlib. Contour plots are also known as Level Plots. Uses of Contour Plot: There are some uses of contour plot given below: Matplotlib contour() Function The function matplotlib.pyplot.contour() is useful when Z = f(X, Y) here, Z changes as a function of input X and Y. A contourf() function is alsoContinue Reading

The Scatter plot is a type of plot that is used to show the data as a collection of points. Matplotlib scatter() Function The method scatter() in the pyplot module in matplotlib library of Python is mainly used to draw a scatter plot. The syntax to use this method is given below: Function Parameters: Let us discuss the parameters of scatter() method:Continue Reading

What is Histogram? Before diving into how to create histograms in matplotlib, let us first understand what is a histogram? So a histogram is an accurate representation of the distribution of numerical data. Creating a Histogram There are a few steps that should be kept in mind while creating a Histogram: matplotlib.pyplot.hist() Function ThisContinue Reading

The bar plot or bar chart is usually a graph/chart that is mainly used to represent the category of data with rectangular bars with lengths and heights that are proportional to the values which they represent. Matplotlib bar() Function The bar() function is used to create a bar plot that is bounded with a rectangle depending on the given parameters of the function. InContinue Reading

In the axes class, there are many figure elements present like Axis, Tick, Line2D, Text, Polygon, etc., which are used to set the coordinate system. When we say twin axes, it means a figure can have dual x or y-axes. Also, when plotting curves with different units together, then also twin axes is very useful. In Matplotlib this task is supported withContinue Reading

In Matplotlib library the Ticks are the markers that are used to denote the data points on the axis. For Example: The above code will mark the data points at the given positions with ticks. Then to set the labels corresponding to tick marks, we use the set_xticklabels() and set_yticklabels() functions respectively. Now with the help of theContinue Reading

The Matplotlib Library automatically sets the minimum and maximum values of variables to be displayed along x, y (and z-axis in case of the 3D plot) axis of a plot. Now we will cover two examples, in the first one, the limits are automatically set up by the matplotlib library while in our secondContinue Reading