python advanced 06-matplotlib

18

Upload: studiabo

Post on 12-Apr-2017

93 views

Category:

Software


3 download

TRANSCRIPT

Page 1: Python advanced 06-matplotlib
Page 2: Python advanced 06-matplotlib
Page 3: Python advanced 06-matplotlib
Page 4: Python advanced 06-matplotlib
Page 5: Python advanced 06-matplotlib
Page 6: Python advanced 06-matplotlib
Page 7: Python advanced 06-matplotlib

Dizionario rcParams

ARTIST

CONTAINER PRIMITIVE MACRO

FIGURE(figure.Figure)

AXES(axes.Axes)

PYPLOT(pyplot)

lines.Line2D

patches.Rectangle

patches.Wedge

text.Text

…………...

Page 8: Python advanced 06-matplotlib

rcParams

Il dizionario matplotlib.rcParams contiene la maggior parte dei parametri che sono utilizzati dai comandi macro per produrre i vari elementi del grafico. Come per un qualsiasi dizionario python, per modificare il valore attribuito ad una chiave è possibile utilizzare la sintassi:

dizionario[chiave]=valore

Una volta modificato il parametro di base di matplotlib, questa modifica vale sia per i comandi macro di primo livello (pyplot) che per quelli di secondo livello (funzioni grafiche pandas), fino a che il parametro non viene nuovamente modificato.

Page 9: Python advanced 06-matplotlib
Page 10: Python advanced 06-matplotlib

major ticksminor ticks

Legend

Page 11: Python advanced 06-matplotlib
Page 12: Python advanced 06-matplotlib
Page 13: Python advanced 06-matplotlib

Modulo lines

Lined2D

Modulo text

TEXT

Modulo paches

ArcArrow

ArrowStyle

BoxStyle

Circle

Ellipse

WedgeConnect Style

Rectangle

Polygon

Patch

Page 14: Python advanced 06-matplotlib

barh barhspinesnon visibili

Page 15: Python advanced 06-matplotlib
Page 16: Python advanced 06-matplotlib

patches.Wedge

sen

cos

Page 17: Python advanced 06-matplotlib
Page 18: Python advanced 06-matplotlib