Sunday, November 3, 2019

PLOTTING IN PYTHON

 PLOTTING IN PYTHON

Create Line Chart in Python:

  1. Simple Line Chart:

Output:


 2. Multiple Line Chart:




      Output:



 3. Multiple Line Chart with colors for the lines:


       Output:



Other colors tag used are given below:

  • 'b' - blue
  • 'g'- green
  • 'r' - red 
  • 'c' - cyan
  • 'k' - black
  • 'w' - white 


  4. Multiple Line Chart with dotted for the lines:



 Output:



Other dotted tag used are given below:
·         -
·         -.
·         --
                    ·        

No comments:

Post a Comment