usage of of line type
Title
Question
plot(x,sin(x),'r--',linewidth=3)
in the above format we use <font size="4">'</font><font size="4" style="font-weight: bold;">--' </font><font size="2">as line style.</font><font size="2">what should i do if i want to plot it using dots ' . ' or plus sign '+'.</font>
<font size="2">if i palce dot or plus in place of - it is dispalying an error</font>
<font size="2">
</font>
</font>
Python-3.4.3 Embellishing-a-plot 05-06 min 20-30 sec
Answers:
use plot(x,sin(x),'r+',linewidth=3)and plot(x,sin(x),'ro',linewidth=3)
Login to add comment