saving . . . saved usage of of line type and colour has been deleted. usage of of line type and colour has been hidden .
usage of of line type and colour
Title
Question
when i type plot(x,sin(x),'r--',linewidth=3) it is showing an error that
illegal format string "r - -";

Python-3.4.3 Embellishing-a-plot 05-06 min 20-30 sec 13-04-20, 11:51 a.m. Hema1122

Answers:

The plot command is proper. May be you have put spaces in the format string "r - -" as your error message shows.
Remove spaces 'r--' and try.
Let us know.
13-04-20, 2:15 p.m. pratham920


Log-in to answer to this question.