Python Archive
matplotlib: ‘matplotlib’ is an open source module(package) It is created among numpy arrays. We can easily install the package using PIP It is providing functionality for data visualization. We are more adaptive to visual representation …
Creating a simple line plot: In the above code, we plotted graph without setting any properties like title, x-axis name, y-axis name We can set titles using pre-defined functions of pyplot module If we give …
Format the style of plot: There is an optional third argument, which is used to represent the format string. Format string represents the color and line type of plot. Default format string is ‘b-‘ ‘b-‘ …
figure(): matplotlib.figure module used contains Figure class. It is used to specify the width and height of Frame in inches. fig = plt.figure() parameter is to set width and height fig_size = (width, height) tuple …
Sub plot examples: subplot(2,3,3) or subplot(233) both create axes at the top right corner of current figure.