@@ -11,7 +11,7 @@ from plotnine import (
1111)
1212```
1313
14- ## Plot erstellen
14+ ## Create Plot
1515
1616``` python
1717plot = (
@@ -28,36 +28,36 @@ plot = (
2828plot = plot + theme(figure_size = (16 , 9 ))
2929```
3030
31- ## Speichern (PNG)
31+ ## Save (PNG)
3232
3333``` python
3434plot.save(' plot.png' , dpi = 300 )
3535```
3636
37- ## Brewer Paletten
37+ ## Brewer Palettes
3838
39- ** WICHTIG ** : Palette-Typ muss zum Palette-Namen passen !
39+ ** IMPORTANT ** : Palette type must match the palette name !
4040
4141``` python
42- # Qualitativ (kategorisch )
42+ # Qualitative (categorical )
4343+ scale_fill_brewer(type = ' qual' , palette = ' Set2' )
4444+ scale_fill_brewer(type = ' qual' , palette = ' Paired' )
4545+ scale_fill_brewer(type = ' qual' , palette = ' Dark2' )
4646
47- # Sequentiell (numerisch )
47+ # Sequential (numeric )
4848+ scale_fill_brewer(type = ' seq' , palette = ' Blues' )
4949+ scale_fill_brewer(type = ' seq' , palette = ' Greens' )
5050
51- # Divergierend (um Nullpunkt )
51+ # Diverging (around zero )
5252+ scale_fill_brewer(type = ' div' , palette = ' RdBu' )
5353+ scale_fill_brewer(type = ' div' , palette = ' PiYG' )
5454```
5555
5656``` python
57- # FALSCH : Set2 ist NICHT sequentiell !
57+ # WRONG : Set2 is NOT sequential !
5858+ scale_fill_brewer(type = ' seq' , palette = ' Set2' )
5959
60- # RICHTIG : Set2 ist qualitativ
60+ # RIGHT : Set2 is qualitative
6161+ scale_fill_brewer(type = ' qual' , palette = ' Set2' )
6262```
6363
@@ -66,7 +66,7 @@ plot.save('plot.png', dpi=300)
6666``` python
6767geom_point() # Scatter
6868geom_line() # Line
69- geom_bar() # Bar (stat='identity' für Werte )
69+ geom_bar() # Bar (stat='identity' for values )
7070geom_boxplot() # Boxplot
7171geom_histogram() # Histogram
7272geom_tile() # Heatmap
0 commit comments