100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Lecture notes

Gráficos básicos en python (Matplotlib, Seaborn, Plotly)

Rating
-
Sold
-
Pages
44
Uploaded on
14-02-2024
Written in
2023/2024

Gráficos en Visual Studio Code (python) con ejemplos prácticos de los tipos de gráficos que se pueden encontrar con las librerías de Matplotlib, Seaborn y Plotly. Amplia variedad de gráficos utilizando cada librería.

Institution
Module











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Study
Module

Document information

Uploaded on
February 14, 2024
Number of pages
44
Written in
2023/2024
Type
Lecture notes
Professor(s)
Ana sánchez
Contains
All classes

Subjects

Content preview

VISUALIZACIÓN DE DATOS

Gráficos en Visual Studio Code
Matplotlib

Importación de librerías




Carga de datos: pd.read_csv




Estadísticos descriptivos del dataframe: .describe()




1

,Visualizar primeras filas del dataframe: head




Cambiar el formato de una columna: pd.to_datetime




2

,GRÁFICOS DE LÍNEAS:

Gráfico 1:




3

, fig1: Hace referencia a la figura entera
ax1: Hace referencia a la parte del gráfico

plt.subplots(): Crea el objeto
plot(): Crea el gráfico

set_ylim: Limita el eje y
set_xlabel: Le da nombre al eje x
set_ylabel: Le da nombre al eje y
set_title: Le da título a la figura

annotate: Hace una anotación en el gráfico
ax1.annotate("Ola de frio", xy = [pd.to_datetime("2015-01-
15"), 260])
(“Anotación”, xy = [posición eje x, posición eje y])

set_size_inches: Cambia el tamaño de la figura (en este caso, porque es
fig1.)
set_dpi: Cambia la densidad de los píxeles

fig1.savefig: Guarda la figura entera
fig1.savefig(os.path.join(dir_graficos,
"valencia_temp.png"))
(os.path.join(Directorio, Nombre figura)




4
£6.06
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
nereazuaznabar

Get to know the seller

Seller avatar
nereazuaznabar Mondragon Unibertsitatea
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions