figure - setting marker and line style properties of plot though there are many more fine tuning options availableyou are encouraged to go through the documentation for detailed information we conclude the formatting section with final two tricks related to line width and shorthand notation to do it all quicklyas shown in the following snippet line width ax plt subplot( ,sharex=ax line plt plot( ,yline[ set_linewidth( ax set_title('line width'combine linestyle ax plt subplot( ,sharex=ax plt plot( , ,' ^'ax set_title('styling shorthand'plt setp(ax get_yticklabels()visible=falsethis snippet uses the line object returned by the plot(function to set the line width the second part of the snippet showcases the shorthand notation to set the line color and data point marker in one go asbthe output shown in figure - helps show this effect