Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

grafico barras python

import matplotlib.pyplot as plt
 
## Declaramos valores para el eje x
eje_x = ['Python', 'R', 'Node.js', 'PHP']
 
## Declaramos valores para el eje y
eje_y = [50,20,35,47]
 
## Creamos Gráfica
plt.bar(eje_x, eje_y)
 
## Legenda en el eje y
plt.ylabel('Cantidad de usuarios')
 
## Legenda en el eje x
plt.xlabel('Lenguajes de programación')
 
## Título de Gráfica
plt.title('Usuarios de lenguajes de programación')
 
## Mostramos Gráfica
plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: check setuptools version python 
Python :: how to get a random number in python 
Python :: max value indices 
Python :: python for loop in array 
Python :: gradient boosting regressor 
Python :: pandas round floats 
Python :: merge multiple excel files with multiple worksheets into a single dataframe 
Python :: if settings.debug 
Python :: max heap python 
Python :: transpose list 
Python :: how to learn python 
Python :: pandas sort dataframe by index 
Python :: scrapy get inside attribute value 
Python :: current url in djago 
Python :: delete rows in a table that are present in another table pandas 
Python :: python file modes 
Python :: read specific columns from csv in python pandas 
Python :: django serve media folder 
Python :: python 2.7 datetime to timestamp 
Python :: a string starts with an uppercase python 
Python :: pyinstaller onefile current working directory 
Python :: how to see the whole dataset in jupyterlab 
Python :: get the name of all files in a computer in python 
Python :: python find index of an item in an array 
Python :: df add value at first index 
Python :: fill a column based on values in another column pandas 
Python :: BURGERS2 solution 
Python :: how to eliminate duplicate values in list python 
Python :: keep tkinter window below others 
Python :: how to separate url from text in python 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =