Setting S Parameter and xticks parameter in Scatter Plot

Setting S Parameter and xticks parameter in Scatter Plot

Setting S Parameter and xticks parameter in Scatter Plot

 

The code will perform the task listed below

(1) Import numpy and  import matplotlib

(2) Create a 2D Python List for  gdp / Life Expectancy  and Population

(3) Life Expectancy  will be in the Y axis , GDP will be in the x axis   Population will be the size of the bubble

(4) Convert Population into a numpy array, Population array assign to a power of 0.5 to reduce its Sizes

(5)Assign x label / y label  and title to the graph

(6) Assign Ticker to the x axis.

(7) Plot Scatter Plot

Leave a Reply

Your email address will not be published. Required fields are marked *

1 + 6 =