The matplotlib library consists of all the functions for plotting different types of graphs and charts. In this program, we imported matplotlib.pyplot for plotting the scatter plot. # Displaying the created graph using the show method The () function creates a scatter plot and displays it in the output. The matplotlib scatter() function plots a scatter plot as output. If True, the infinite points are plotted in the graph. This argument takes floating-point numbers or arrays as values.Įdgecolors : The edge colors of the marker are passed in this argument. Linewidths : The linewidth of the marker edges are passed in this argument. 0 is used for transparent, and 1 is used for opaque. This vmin and vmax are used along with the default norm to map the color array c to the color map array cmap.Īlpha : This is an optional argument. Vmin, vmax : This argument can only be used when the norm parameter is not used. The floating-point range is normalized between 0 to 1. This function is used to normalize the data in the c parameter. Norm : This parameter is used only when the c parameter is passed with the floating-point number. By using this parameter, the floating value is converted to the respective color. However, the marker style can be modified by passing the marker style in this parameter.Ĭmap : This parameter is used only when the c parameter is passed with floating values. By default, the marker style is kept as ‘o’. Marker : This parameter specifies the marker style used in the scatter plot. This parameter takes a list of elements as values. The array consisting of colors is passed as a value to this argument.
0 Comments
Leave a Reply. |