Exercise: Titles and Axes
Explore how to customize scatter plots in Plotly by setting main titles, axis labels, fonts, tick formatting, and grid visibility. This lesson helps you apply detailed stylistic adjustments to enhance the clarity and presentation of your data visualizations.
Exercise
Create a scatter plot that plots life expectancy (Life_exp) vs. GDP per capita (GDP/Capita). In doing so, ensure the following conditions are met:
-
The main title says
Life Expectancy Against GDP Per Capitaand is centered with the font family"Times New Roman"and size46. -
x-axis is titled
'GDP Per Capita', and x-axis is titled"Life Expectancy". Ensure the font family is"Times New Roman"and size30for both the 𝑥 and 𝑦-axis titles. -
x and y ticks have font family
"Times New Roman"and size18...