Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Create a Complete Bar Chart | Bar Charts
Visualization in Python with matplotlib
course content

Conteúdo do Curso

Visualization in Python with matplotlib

Visualization in Python with matplotlib

1. Basics: Line Charts
2. Bar Charts
3. Scatter Plots

Create a Complete Bar Chart

Tarefa

  1. Assign the second call of the .barh() function to the bar2 variable.
  2. Customize the plot:
    • set x label to 'Rainfall (mm)';
    • y label to 'Month';
    • title to 'Average rainfall level in Indian cities';
    • limit the values on the x-axis to diapason (0, 380).
  3. Add labels to bars:
    • set padding = -5 at the first call;
    • pass bar2 as the first parameter at the second call.

Tarefa

  1. Assign the second call of the .barh() function to the bar2 variable.
  2. Customize the plot:
    • set x label to 'Rainfall (mm)';
    • y label to 'Month';
    • title to 'Average rainfall level in Indian cities';
    • limit the values on the x-axis to diapason (0, 380).
  3. Add labels to bars:
    • set padding = -5 at the first call;
    • pass bar2 as the first parameter at the second call.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 2. Capítulo 10
toggle bottom row

Create a Complete Bar Chart

Tarefa

  1. Assign the second call of the .barh() function to the bar2 variable.
  2. Customize the plot:
    • set x label to 'Rainfall (mm)';
    • y label to 'Month';
    • title to 'Average rainfall level in Indian cities';
    • limit the values on the x-axis to diapason (0, 380).
  3. Add labels to bars:
    • set padding = -5 at the first call;
    • pass bar2 as the first parameter at the second call.

Tarefa

  1. Assign the second call of the .barh() function to the bar2 variable.
  2. Customize the plot:
    • set x label to 'Rainfall (mm)';
    • y label to 'Month';
    • title to 'Average rainfall level in Indian cities';
    • limit the values on the x-axis to diapason (0, 380).
  3. Add labels to bars:
    • set padding = -5 at the first call;
    • pass bar2 as the first parameter at the second call.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Seção 2. Capítulo 10
toggle bottom row

Create a Complete Bar Chart

Tarefa

  1. Assign the second call of the .barh() function to the bar2 variable.
  2. Customize the plot:
    • set x label to 'Rainfall (mm)';
    • y label to 'Month';
    • title to 'Average rainfall level in Indian cities';
    • limit the values on the x-axis to diapason (0, 380).
  3. Add labels to bars:
    • set padding = -5 at the first call;
    • pass bar2 as the first parameter at the second call.

Tarefa

  1. Assign the second call of the .barh() function to the bar2 variable.
  2. Customize the plot:
    • set x label to 'Rainfall (mm)';
    • y label to 'Month';
    • title to 'Average rainfall level in Indian cities';
    • limit the values on the x-axis to diapason (0, 380).
  3. Add labels to bars:
    • set padding = -5 at the first call;
    • pass bar2 as the first parameter at the second call.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo

Tudo estava claro?

Tarefa

  1. Assign the second call of the .barh() function to the bar2 variable.
  2. Customize the plot:
    • set x label to 'Rainfall (mm)';
    • y label to 'Month';
    • title to 'Average rainfall level in Indian cities';
    • limit the values on the x-axis to diapason (0, 380).
  3. Add labels to bars:
    • set padding = -5 at the first call;
    • pass bar2 as the first parameter at the second call.

Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 2. Capítulo 10
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt