Adrià Vilanova MartÃnez | e5315f7 | 2023-04-18 18:43:50 +0200 | [diff] [blame] | 1 | library(tikzDevice) |
| 2 | |
| 3 | # === Heli === |
| 4 | table <- read.table('dades/Heli.txt', sep="\t", dec=',', header=FALSE, col.names=c("Lambda", "Impulses")) |
| 5 | |
| 6 | pdf('output/heli.pdf', width = 6, height = 5) |
| 7 | plot(table$Lambda, table$Impulses, type="l", xlab="Longitud d'ona (nm)", col="#6B67A2", ylab="Comptes", ylim=c(0, 4000)) |
| 8 | dev.off() |
| 9 | |
| 10 | tikz('output/heli.tex', width = 6, height = 5) |
| 11 | plot(table$Lambda, table$Impulses, type="l", xlab="Longitud d'ona (nm)", col="#6B67A2", ylab="Comptes", ylim=c(0, 4000)) |
| 12 | dev.off() |
| 13 | |
| 14 | # === Sodi doble pic === |
| 15 | table <- read.table('dades/Sodi_doblepic.txt', sep="\t", dec=',', header=FALSE, col.names=c("Lambda", "Impulses")) |
| 16 | |
| 17 | pdf('output/sodi_doblepic.pdf', width = 6, height = 5) |
| 18 | plot(table$Lambda, table$Impulses, type="l", xlab="Longitud d'ona (nm)", col="#6B67A2", ylab="Comptes", ylim=c(0, 4000)) |
| 19 | dev.off() |
| 20 | |
| 21 | tikz('output/sodi_doblepic.tex', width = 6, height = 5) |
| 22 | plot(table$Lambda, table$Impulses, type="l", xlab="Longitud d'ona (nm)", col="#6B67A2", ylab="Comptes", ylim=c(0, 4000)) |
| 23 | dev.off() |
| 24 | |
| 25 | # === Sodi saturat === |
| 26 | table <- read.table('dades/Sodi_saturat.txt', sep="\t", dec=',', header=FALSE, col.names=c("Lambda", "Impulses")) |
| 27 | |
| 28 | pdf('output/sodi_saturat.pdf', width = 6, height = 5) |
| 29 | plot(table$Lambda, table$Impulses, type="l", xlab="Longitud d'ona (nm)", col="#6B67A2", ylab="Comptes", ylim=c(0, 4000)) |
| 30 | dev.off() |
| 31 | |
| 32 | tikz('output/sodi_saturat.tex', width = 6, height = 5) |
| 33 | plot(table$Lambda, table$Impulses, type="l", xlab="Longitud d'ona (nm)", col="#6B67A2", ylab="Comptes", ylim=c(0, 4000)) |
| 34 | dev.off() |