GithubHelp home page GithubHelp logo

4geeks_matplotlib's Introduction

4Geeks_Matplotlib

Introduction to Matplotlib

Matplotlib is a Python visualization library that provides a variety of tools and functions for creating static, animated and interactive graphics and visualizations. pyplot is a module of the Matplotlib library that provides a simple and intuitive interface for creating plots. Specifically, the key points of this module are:

  • High-level interface: pyplot offers a number of functionalities that facilitate the fast creation of graphs.
  • Functionality: It offers a wide variety of functions for bar charts, dot plots, box plots, and so on.
  • Integration: It is tightly integrated with environments such as Jupyter Notebook, allowing graphs to be displayed directly within notebooks.

Line plot

The line plot represents information in points connected by lines. It is useful to show the evolution of one or more data series along an axis, typically time.

Scatter plot

The scatter plot shows individual values of two numerical variables on a Cartesian plane (with two axes). Each point represents one observation.

Histogram

The histogram represents the distribution of a numerical variable by dividing the range of data into intervals and showing how many data fall into each interval (for continuous variables) or the frequency of each category (for categorical variables).

Bar chart

The bar plot represents categorical data with rectangular bars with heights (or lengths, in the case of horizontal bars) proportional to the values they represent.

Pie chart

A pie chart represents data in circular sectors, where each sector corresponds to a category and its size is proportional to the value it represents.

Boxplot

A boxplot shows the distribution of quantitative data by its quartile and possibly outliers.

Exercises

Exercise 01: Create a scatter plot from the following vectors: x = [1, 2, 3, 4], y = [1, 2, 0, 0.5]

Exercise 02: Create a line graph from the two vectors of the previous exercise

Exercise 03: Create a histogram from a random array following a normal distribution

Exercise 04: Creates a DataFrame from the Titanic dataset and displays the distributions of age and amount of tickets

4geeks_matplotlib's People

Contributors

doriandraper avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.