Skip to content

Gokultcr/Matplotlib-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Matplotlib-tutorial

Here, the Python plotting library "Matplotlib" is introduced from the basic level to the advanced level with the help of the Iris dataset. The main aim of this work is to familiarize you with different plotting options inside the "Matplotlib" library.

Data set

iris-flower-dataset, which includes 5 features:

  • sepal_length
  • sepal_width
  • petal_length
  • petal_width
  • species and 150 instance.

Python Library

  • matplotlib

Plottings

  • Line Plot
  • Ploting without line
  • Dotted line
    • Line color
    • Line width
  • Multiple lines
  • Plotting with markers
    • Circle 'o'
    • Star '*'
    • Point '.'
    • Pixel ','
    • X 'x'
    • X (filled) 'X'
    • Plus '+'
    • Plus (filled) 'P'
    • Square 's'
    • Diamond 'D'
    • Diamond(thin) 'd'
    • Pentagon 'p'
    • Hexagon 'H'
    • Hexagon 'h'
    • Triangle down 'v'
    • Triangle up '^'
    • Triangle left '<'
    • Triangle right '>'
    • Tri down '1'
    • Tri up '2'
    • Tri left '3'
    • Tri right '4'
    • Vline '|'
    • Hline '_'
    • Solid line '-'
    • Dotted line ':'
    • Dashed line '--'
    • Dashed/Dotted line '-.'
  • Marker with line color (Red)
    • Marker with line colour (green)
    • Colour list
    • Marker size
    • Marker colour : EDGE color
    • Marker FACE color
    • Edge, Face
  • Plotting with Title
  • Plotting with Lables
  • Setting Font and position for Title
  • Grid
    • Grid on X-axis
    • Grid on Y-axis
    • Grid with line properties
  • Sub Plots
  • Scatter plot
  • Two plots on same figure
  • Setting color for markers
  • Color map
  • Bar plots
    • Horizontal bars
    • Color Bars
    • Setting Bar width
  • Histogram
  • Pie Charts

Summary

All the above mentioned ploting and graphing operations are performed over here.