alpha[ set_alpha( ax set_title('line alpha'plt setp(ax get_yticklabels()visible=falsefigure - setting color and alpha properties of plot along the same lineswe also have options to use different shapes to mark data points as well as different styles to plot lines these options come in handy while representing different attributes/classes onto the same plot the following snippet and output depicted in figure - showcase the same marker markers -'+'' ''*'' '',''etc ax plt subplot( ,sharex=ax plt plot( , ,marker='*'ax set_title('point marker'linestyle linestyles -'-','--',''':''stepsax plt subplot( ,sharex=ax plt plot( , ,linestyle='--'ax set_title('line style'plt setp(ax get_yticklabels()visible=false