Jan-20-2021, 01:38 PM
Plot multiple lines on one chart with different style Python matplotlib. Sometimes we need to plot multiple lines on one chart using different styles such as dot, line, dash, or maybe with different colour as well. It is quite easy to do that in basic python plotting using matplotlib library.visit
Another way to plot multiple lines is to plot them one by one, using the built-in R functions points () and lines (). The code below demonstrates an example of this approach: #generate an x-axis along with three data series x <- c (1,2,3,4,5,6) y1 <- c (2,4,7,9,12,19) y2 <- c (1,5,9,8,9,13) y3 <- c (3,6,12,14,17,15) #plot the first data series using plot () plot (x, y1, type="o", col="blue", pch="o", ylab="y", lty=1) #add second data series to the same chart using points () and lines ...i hope this is helpful if not so anybody share complite info like this share visit link where i see it
Another way to plot multiple lines is to plot them one by one, using the built-in R functions points () and lines (). The code below demonstrates an example of this approach: #generate an x-axis along with three data series x <- c (1,2,3,4,5,6) y1 <- c (2,4,7,9,12,19) y2 <- c (1,5,9,8,9,13) y3 <- c (3,6,12,14,17,15) #plot the first data series using plot () plot (x, y1, type="o", col="blue", pch="o", ylab="y", lty=1) #add second data series to the same chart using points () and lines ...i hope this is helpful if not so anybody share complite info like this share visit link where i see it