Skip to content

y-india/matplotlib-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🖌️ Matplotlib Notes - Yuvraj

"That was my first step... now I know far beyond this, as that notes was starting."


About this Repository

This repository contains Matplotlib notes demonstrating basic to intermediate plotting techniques in Python.
It covers line plots, bar charts, pie charts, histograms, subplots, and saving figures.

These notes were created as part of my journey to learn data visualization.


Author

Yuvraj
Skills: Python | Matplotlib | Data Visualization | Charts & Graphs


What This Note Covers

1. Basic Line Plots

  • Simple line plots
  • Customizing line style, color, width, and markers
  • Adding title, labels, and grid

2. Plotting from NumPy Arrays

  • Using NumPy arrays with Matplotlib
  • Customizing markers and colors

3. Reading Data from Excel

  • Loading Excel data with Pandas
  • Cleaning columns for plotting

4. Bar Charts

  • Basic and stacked bar charts
  • Labeling axes and legends

5. Pie Charts

  • Pie charts with labels and percentages
  • Rotating start angles
  • Equal axis for circular pies

6. Histograms

  • Creating histograms to visualize distributions
  • Customizing bins, colors, and transparency

7. Subplots

  • Multiple plots in a single figure
  • Custom figure sizes
  • Titles and labels for each subplot

8. Saving Plots

  • Save figures as PNG, JPG, SVG, or PDF
  • Use dpi and bbox_inches='tight' for high-quality output

Files Generated

  • delhi_vs_mumbai_sales.png (example of saved figure)

"That was my first step... now I know far beyond this, as that notes was starting."