SlideShare a Scribd company logo
LEZIONE 1..
PYTHON AVANZATO
libreria
MATPLOTLIB
Riepilogo lezione precedente
Series
MultiIndex
DataFrame
.groupby
.map
.apply
.merge
.stuck
.unstuck
.loc
.idx
.index
.columns
.shift
.concat
Linguaggio di
programmazione
Graphical User
Interface
GUI
Esistono diverse interfacce utente per produrre grafici e immagini
GUI
Linguaggio di programmazione
PAGINPAGINA
HTML
Interfacciautente
Program.GUI
FILE
RASTER
.png
.jpeg
.gif
FILE
VETTORIALE
.svg
LIBRERIE
GRAFICHE
INTERFACCIA
GRAFICA
(parte inferiore
della cella code)
IL MONDO DELLA GRAFICA
Un’immagine è prodotta tramite l’accensione
sul video di tanti pixel di colori diversi
Matplotlib
è una libreria python per grafici 2D. Ogni aspetto del grafico
può essere controllato tramite codice.
Matplotlib mette a disposizione
comandi macro per l'esecuzione di
specifici gruppi di comandi
elementari.
LIBRERIE GRAFICHE
PRIMITIVE MATPLOTLIB
MACRO
PYPLOT
Metodi
Pandas
LEZIONE 1..
www.fordatascientist.org
F00-PyGraph
F20-Matplotlib-Introduction.ipynb
.pyplot
.add_axes
.plot
.rcParams
parametri di base
.figure
Struttura di una figure
figure
misurainpollici
misura in pollici
Axes
Axes
0
1
0 1
yasis
xasis
major ticks
minor ticks
Legend
yasis
xasis
LEZIONE 1..
www.fordatascientist.org
F00-PyGraph
F23-Pyplot-Subplot.ipynb
LEZIONE 1..
www.fordatascientist.org
F00-PyGraph
F35-Matplotlib-Axis.ipynb
.xaxis .add_subplot
.set_title
.yaxis .title.set_text
title.get_text
.set_label_text
.get_label_text
.spines{}
.set_xlabel
.set_position
SET
GET
.set_ticks .get_major_ticks
Grafico della piramide della popolazione
7pollici
7 pollici
0.15
0.10
0.75
0.10
0.45 0.45
barh barh
spines
non visibili
LEZIONE 1..
www.fordatascientist.org
F00-PyGraph
F40-PopulationPyramid.ipynb
Grafico tachimetro
patches.Wedge
sen
cos
LEZIONE 1..
www.fordatascientist.org
F00-PyGraph
F41-Tachometer.ipynb
Metodo plot delle classe Series
.plot( kind='line'/’bar’/’barh’/’hist’/’’box’/’area’/’pie’,
secondary_y=False,
ax=None, figsize=None,
title=None, grid=None, legend=False, style=None,
xticks=None, yticks=None,
xlim=None, ylim=None,
fontsize=None,
colormap=None,
label=None,
**kwds )
LEZIONE 1..
www.fordatascientist.org
F00-PyGraph
F25-Pandas-Plot.ipynb
CONTATTI TELEFONO
051 22 35 20
EMAIL
WORKSHOP@VICEM.IT
Ad

Recommended

Qt Platform Abstraction
Qt Platform Abstraction
QT-day
 
Corso Python Base: Parte 1 - ForDataScientist 01
Corso Python Base: Parte 1 - ForDataScientist 01
Studiabo
 
Web base - CSS e selettori
Web base - CSS e selettori
Annalisa Vignoli
 
Python base lezione 5
Python base lezione 5
Annalisa Vignoli
 
Web base - Javascript (Node.js): Elementi di base
Web base - Javascript (Node.js): Elementi di base
Annalisa Vignoli
 
Python base lezione1
Python base lezione1
Annalisa Vignoli
 
Web base - HTML
Web base - HTML
Annalisa Vignoli
 
Presentazione Ulisse - Rame
Presentazione Ulisse - Rame
Annalisa Vignoli
 
Presentazione Corsi FDS
Presentazione Corsi FDS
Annalisa Vignoli
 
Python base lezione 2
Python base lezione 2
Annalisa Vignoli
 
Python base lezione 3
Python base lezione 3
Annalisa Vignoli
 
Python base lezione 4
Python base lezione 4
Annalisa Vignoli
 
ForDataScientist - Python advanced data
ForDataScientist - Python advanced data
Annalisa Vignoli
 
Web base - SVG
Web base - SVG
Annalisa Vignoli
 
WEB BASE - Una visione d'insieme delle tecnologie web
WEB BASE - Una visione d'insieme delle tecnologie web
Annalisa Vignoli
 
Fordatascientist - Tecnologie Web base
Fordatascientist - Tecnologie Web base
Annalisa Vignoli
 
Global factors that are shaping UK business activity assignment 2 task 2
Global factors that are shaping UK business activity assignment 2 task 2
John Brian Lee
 
Climate Change White Paper_Published
Climate Change White Paper_Published
Alita Ostapkovich
 
HigherLogic_case study_Protech
HigherLogic_case study_Protech
Zachary Katcher
 
ÁO KHOÁC NỮ ĐẸP + CÁC MẪU ÁO KHOÁC SIÊU HOT HIỆN NAY
ÁO KHOÁC NỮ ĐẸP + CÁC MẪU ÁO KHOÁC SIÊU HOT HIỆN NAY
Quân Đào
 
Requsition user menual
Requsition user menual
Roknuzzaman Suruz
 
Untitled Presentation
Untitled Presentation
Meli Acosta
 
Don Xem Quan Ao Thoi Trang Nu Moi Nhat Tai Tyty
Don Xem Quan Ao Thoi Trang Nu Moi Nhat Tai Tyty
Quân Đào
 
Наши результаты
Наши результаты
Vasilev Danil
 

More Related Content

Viewers also liked (17)

Presentazione Corsi FDS
Presentazione Corsi FDS
Annalisa Vignoli
 
Python base lezione 2
Python base lezione 2
Annalisa Vignoli
 
Python base lezione 3
Python base lezione 3
Annalisa Vignoli
 
Python base lezione 4
Python base lezione 4
Annalisa Vignoli
 
ForDataScientist - Python advanced data
ForDataScientist - Python advanced data
Annalisa Vignoli
 
Web base - SVG
Web base - SVG
Annalisa Vignoli
 
WEB BASE - Una visione d'insieme delle tecnologie web
WEB BASE - Una visione d'insieme delle tecnologie web
Annalisa Vignoli
 
Fordatascientist - Tecnologie Web base
Fordatascientist - Tecnologie Web base
Annalisa Vignoli
 
Global factors that are shaping UK business activity assignment 2 task 2
Global factors that are shaping UK business activity assignment 2 task 2
John Brian Lee
 
Climate Change White Paper_Published
Climate Change White Paper_Published
Alita Ostapkovich
 
HigherLogic_case study_Protech
HigherLogic_case study_Protech
Zachary Katcher
 
ÁO KHOÁC NỮ ĐẸP + CÁC MẪU ÁO KHOÁC SIÊU HOT HIỆN NAY
ÁO KHOÁC NỮ ĐẸP + CÁC MẪU ÁO KHOÁC SIÊU HOT HIỆN NAY
Quân Đào
 
Requsition user menual
Requsition user menual
Roknuzzaman Suruz
 
Untitled Presentation
Untitled Presentation
Meli Acosta
 
Don Xem Quan Ao Thoi Trang Nu Moi Nhat Tai Tyty
Don Xem Quan Ao Thoi Trang Nu Moi Nhat Tai Tyty
Quân Đào
 
Наши результаты
Наши результаты
Vasilev Danil
 
ForDataScientist - Python advanced data
ForDataScientist - Python advanced data
Annalisa Vignoli
 
WEB BASE - Una visione d'insieme delle tecnologie web
WEB BASE - Una visione d'insieme delle tecnologie web
Annalisa Vignoli
 
Fordatascientist - Tecnologie Web base
Fordatascientist - Tecnologie Web base
Annalisa Vignoli
 
Global factors that are shaping UK business activity assignment 2 task 2
Global factors that are shaping UK business activity assignment 2 task 2
John Brian Lee
 
Climate Change White Paper_Published
Climate Change White Paper_Published
Alita Ostapkovich
 
HigherLogic_case study_Protech
HigherLogic_case study_Protech
Zachary Katcher
 
ÁO KHOÁC NỮ ĐẸP + CÁC MẪU ÁO KHOÁC SIÊU HOT HIỆN NAY
ÁO KHOÁC NỮ ĐẸP + CÁC MẪU ÁO KHOÁC SIÊU HOT HIỆN NAY
Quân Đào
 
Untitled Presentation
Untitled Presentation
Meli Acosta
 
Don Xem Quan Ao Thoi Trang Nu Moi Nhat Tai Tyty
Don Xem Quan Ao Thoi Trang Nu Moi Nhat Tai Tyty
Quân Đào
 
Наши результаты
Наши результаты
Vasilev Danil
 

ForDataScientist - Python matplotlib