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