Pylab module with Python, pylab.plot () function, the chart draws a polyline
Import pylab AS PL X = [ 100 , 50 , 80 , 70 ] Y = [ . 1 , 2 , . 3 , . 4 ] '' ' Plot Parameters: X: X-axis coordinate list y: y-axis coordinate list marker: point type linestyle : connection line markerfacecolor: '' ' pl.plot (X, Y, marker = ' O ' , lineStyle = ' - ' , markerfacecolor = ' R & lt ' ) ' '' axis Parameters: [x axis minimum, x-axis maximum, y minimum axis, y-axis maximum] list that specifies the viewpoint coordinate axes ' '' pl.axis ([ 0 , 110 , 0 , . 6 ] ) pl.xlabel ( ' x_data ' ) pl.ylabel ( ' y_data ' ) pl.title ( ' Test Plot ' ) pl.show ()
1. marker parameters as follows:
2.linestyle parameters as follows:
3.markerfacecolor parameters as follows: