better image CSS, better chart

This commit is contained in:
Phuntsok Drak-pa 2019-06-02 14:55:08 +02:00
parent 1e549d64b0
commit 97ff539c0f
4 changed files with 365 additions and 359 deletions

View File

@ -395,7 +395,6 @@ table tr:nth-child(2n) td{
.figure p{ .figure p{
color:#000; color:#000;
font:italic 85%/1 arial,sans-serif; font:italic 85%/1 arial,sans-serif;
padding:1em 0;
} }
.rotate-90{ .rotate-90{
@ -1109,3 +1108,7 @@ li, p, dd {
pre.src:before { pre.src:before {
top: 0; top: 0;
} }
.figure {
padding: 0;
}

File diff suppressed because it is too large Load Diff

View File

@ -259,7 +259,7 @@
bouddhiste et 2% de la population suit des religions diverses (Hindouisme, bouddhiste et 2% de la population suit des religions diverses (Hindouisme,
Chamanisme,…). Chamanisme,…).
#+name: religion-piechart #+name: fig:religion-piechart
#+BEGIN_SRC R :exports results :results graphics :file religious-pop.png :bg transparent #+BEGIN_SRC R :exports results :results graphics :file religious-pop.png :bg transparent
slices <- c(68, 15, 9, 6, 2) slices <- c(68, 15, 9, 6, 2)
lbls <- c("Paganisme", "Athéisme", "Monothéismes divers", lbls <- c("Paganisme", "Athéisme", "Monothéismes divers",
@ -267,11 +267,13 @@
pct <- round(slices/sum(slices)*100) pct <- round(slices/sum(slices)*100)
lbls <- paste(lbls, pct) lbls <- paste(lbls, pct)
lbls <- paste(lbls, "%", sep = "") lbls <- paste(lbls, "%", sep = "")
par(mar=c(0,0,0.7,3))
pie(slices, labels = lbls, col = rainbow(length(lbls)), pie(slices, labels = lbls, col = rainbow(length(lbls)),
main = "Religions dÉïnlante") main = "Religions dÉïnlante")
#+END_SRC #+END_SRC
#+CAPTION: Population religieuse dÉïnlante
#+RESULTS: religion-piechart #+LABEL: fig:religion-piechart
#+RESULTS: fig:religion-piechart
[[file:religious-pop.png]] [[file:religious-pop.png]]
** Histoire ** Histoire

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 20 KiB