0% found this document useful (0 votes)
14 views16 pages

Data - Visualization - TechTheme 3

This is data visualization research. It shows how how you can use python to represent data in visuals

Uploaded by

amankonam44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views16 pages

Data - Visualization - TechTheme 3

This is data visualization research. It shows how how you can use python to represent data in visuals

Uploaded by

amankonam44
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Data Visualization

Research
Groups 10, 11 & 12
In the world of Big Data,
visualization tools and
technologies are essential.

They allow us to analyze


massive amounts of
information and make data-
Introduction driven decisions.

From population census to


business operations,
visualization is key to
understanding and success.
What is Data Turning raw
Helps spot patterns,
numbers into
Visualization? pictures
trends, and insights
easily.
(charts/graphs).

Makes data easier


to communicate to
others.
Importance of Data Visualization
• We understand pictures faster than
tables of numbers.

• Helps in spotting trends (e.g. sales


increase each month).

• Makes data easier to explain and


share findings.
Data Visualization in Python

PYTHON LIBRARIES • MATPLOTLIB – • SEABORN – SIMPLER, • PANDAS – BUILT-IN • PLOTLY – INTERACTIVE


INCLUDE: FOUNDATION LIBRARY, PRETTIER STATISTICAL PLOTTING FUNCTIONS. VISUALIZATIONS
HIGHLY CUSTOMIZABLE. PLOTS. (ZOOM, HOVER).

• BOKEH, ALTAIR – • DASH / STREAMLIT –


MODERN DECLARATIVE DASHBOARDS & WEB
LIBRARIES. APPS.
Introduction to Matplotlib

MATPLOTLIB IS ONE OF THE MOST CREATES LINE PLOTS, BAR CHARTS, USEFUL FOR QUICK VISUAL
WIDELY USED PYTHON LIBRARIES HISTOGRAMS, SCATTER PLOTS, REPRESENTATIONS OF DATA.
FOR GRAPHS. AND MORE.
• Highly
customizable
• Simple for
(colors,
basic plots.
labels, styles,
sizes).

Why
• Popular for
Matplotlib? • Works well both static
with NumPy and
and Pandas. interactive
plots.
Matplotlib:

• Extensive customization options.

Matplotlib • Good for static, publication-quality plots.


vs Other
Tools • Flexible but lower-level compared to Seaborn.

Other libraries (e.g. Seaborn, Bokeh) are simpler,


but less customizable.
Basic Plot Types in Matplotlib
• Line Plot ([Link]())

• Bar Chart ([Link]())

• Pie Chart ([Link]())

• Scatter Plot ([Link]())

• Histogram ([Link]())
Line Plot Example
• import [Link] as plt
• x = [1, 2, 3, 4, 5]
• y = [2, 4, 6, 8, 10]
• [Link](x, y)
• [Link]('Simple Line Graph')
• [Link]('X-axis')
• [Link]('Y-axis')
• [Link]()
Bar Chart Example

• months = ['Jan','Feb','Mar','Apr','May']
• sales = [200, 250, 300, 280, 350]
• [Link](months, sales, color='skyblue')
• [Link]('Monthly Sales')
• [Link]('Month')
• [Link]('Sales ($)')
• [Link]()
Pie Chart Example

• products = ['Product A','Product B','Product C']


• revenue = [40, 35, 25]
• [Link](revenue, labels=products, autopct='%1.1f%%',
• colors=['gold','lightgreen','lightcoral'])
• [Link]('Revenue Share by Product')
• [Link]()
Scatter Plot Example
• hours = [2,3,4,5,6,7,8]
• scores = [50,55,60,65,70,75,85]
• [Link](hours, scores, color='red')
• [Link]('Study Hours vs Exam Scores')
• [Link]('Hours of Study')
• [Link]('Score (%)')
• [Link]()
Advanced Features

Customization: Multiple plots: Subplots: Place


Change line styles, Compare datasets multiple charts
add grids, legends. in one figure. side-by-side.
Limitations of Matplotlib

• Steep learning curve for • Verbose code for • Performance issues with
advanced customization. complex plots. extremely large datasets.
Data visualization helps us
understand data better.

Matplotlib is the core Python library


for plots.

Summary &
Takeaway Common charts: Line, Bar, Pie,
Scatter, Histogram.

Always ask: 'What picture can I draw


to make this easier to understand?'

You might also like