Back

Sanskar

Keen Learner and Exp... • 3d

Day 16 of learning Data Science as a beginner. Topic: plotting graphs using matplotlib matplotlib is a the most fundamental plotting library in Python we typically use matplotlib.pyplot module in python you can understand it as the paintbrush which will draw the visualisation of our data we usually abbreviate this as plt. One of the many reasons for using matplotlib is it is really easy to use and is more readable. Plt involves many functions which we use in order to plot our graph. 1. plt.plot: this will create a line graph representation of our data. 2. plt.xlabel: this is used to give name to our x axis 3. plt.ylabel: this is used to give name to our y axis 4. plt.legend: this will also show legends in our graphical representation of our data 5. plt.title: this will give your graph a name i.e. a title 6. plt.show: this will open a new screen with the representation of your graph (works only on normal python script compiler and not on notebooks) There is also something called as format strings which you can use to decorate and make your graph more engaging to your audience. Matplotlib also offers various types of styles which you can use to alter the styles of your graphs. You can also view available styles which matplotlib offers using plt.style.available function. Also here's my code and its result.

Reply
1

More like this

Recommendations from Medial

Image Description

Comet

#freelancer • 10m

Essential Python Topics for Data Analysts 😄👇 - Data Structures: Lists, Dictionaries, Sets, and Tuples. - NumPy: Array manipulation for numerical operations. - Pandas: Data manipulation and analysis with DataFrame. - Data Cleaning: Handling missin

See More
2 Replies
2
5

Baqer Ali

AI agent developer |... • 2m

Recently I have made a streamlit data analysis web app in that project I have used streamlit for frontend Pandas for like data analysis part and mathplotlip for graph representation or like representation of data And everything is written in

See More
Reply
2

Mantra Pandya

Learning is real wea... • 1y

Day 2 of 100 days of code of data science Lessons learnt Python lists Functions Python problems

Reply
3

Harish Kumar

Training Consoler • 10m

Python is a beginner-friendly and powerful programming language, perfect for diving into data science. Start by learning the basics like variables, loops, and functions. Explore popular libraries such as Pandas for data manipulation, NumPy for nume

See More
Reply
2

Sanskar

Keen Learner and Exp... • 12d

Day 11 of learning Data science as a beginner Topic: creating data structure In my previous post I discussed about the difference between panda's series and data frames we typically use data frames more often as compared to series There are a lot

See More
Reply
2

Saurav Singh

Building neoynai.co... • 2m

Web Devs , which one do you use for backend? Rust GO Bun Node.js PHP Python

Reply
1

Inayat Hasan

Software engineer • 1y

[This post has been deleted by the creator]

Reply
2

Sanskar

Keen Learner and Exp... • 13d

Day 10 of learning data science as a beginner Topic: data analysis using pandas Pandas is one of the python's most famous open source library and it is used for a variety of tasks like data manipulation, data cleaning and for analysis of data. Pand

See More
Reply

Tenacious Cheetah

Hey I am on Medial • 4m

Hi Everyone! if is looking for project. Please DM me! Salary Depends on experience. What We're Looking For: • 5+ years of industry experience applying machine learning methods (user modeling, personalization, recommender systems, search, ranking, na

See More
Reply
6

Download the medial app to read full posts, comements and news.