Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDC core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
TDC core
Commits
a8dba5f2
Commit
a8dba5f2
authored
Nov 07, 2011
by
Sebastien Bourdeauducq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: replace gnuplot with matplotlib
parent
dd5b4044
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
35 deletions
+35
-35
Makefile
doc/Makefile
+4
-18
rofreq.gp
doc/rofreq.gp
+0
-14
rofreq.py
doc/rofreq.py
+26
-0
testreport.tex
doc/testreport.tex
+5
-3
No files found.
doc/Makefile
View file @
a8dba5f2
...
...
@@ -4,30 +4,16 @@ tdc.pdf: tdc.tex
pdflatex
$<
pdflatex
$<
rofreq
1.eps rofreq1.tex rofreq2.eps rofreq2.tex
:
rofreq.gp
rofreq.csv
gnuplot rofreq.gp
rofreq
.pdf
:
rofreq.py
rofreq.csv
./rofreq.py rofreq.csv rofreq.pdf
rofreq1.pdf
:
rofreq1.eps
epstopdf rofreq1.eps
rofreq1_pdf.tex
:
rofreq1.tex
cat
rofreq1.tex |
sed
s/
".eps"
/
".pdf"
/g
>
rofreq1_pdf.tex
rofreq2.pdf
:
rofreq2.eps
epstopdf rofreq2.eps
rofreq2_pdf.tex
:
rofreq2.tex
cat
rofreq2.tex |
sed
s/
".eps"
/
".pdf"
/g
>
rofreq2_pdf.tex
testreport.pdf
:
testreport.tex rofreq1_pdf.tex rofreq2_pdf.tex rofreq1.pdf rofreq2.pdf
testreport.pdf
:
testreport.tex rofreq.pdf
pdflatex
$<
pdflatex
$<
clean
:
rm
-f
tdc.pdf tdc.aux tdc.log
rm
-f
rofreq1.eps rofreq1.tex rofreq2.eps rofreq2.tex
rm
-f
rofreq1_pdf.tex rofreq2_pdf.tex
rm
-f
rofreq1.pdf rofreq2.pdf
rm
-f
rofreq.pdf
rm
-f
testreport.pdf testreport.aux testreport.log
.PHONY
:
clean
doc/rofreq.gp
deleted
100644 → 0
View file @
dd5b4044
set format "$%g$"
set xlabel "Temperature [C]"
set ylabel "Ring oscillator frequency [counts]"
set border 3
set xtics nomirror
set ytics nomirror
set terminal epslatex
set datafile separator ","
set output "rofreq1.eps"
set title "Dependence of ring oscillator frequency on temperature (channel 1)"
plot "rofreq.csv" using 1:2
set output "rofreq2.eps"
set title "Dependence of ring oscillator frequency on temperature (channel 2)"
plot "rofreq.csv" using 1:3
doc/rofreq.py
0 → 100755
View file @
a8dba5f2
#!/usr/bin/python
import
csv
import
sys
import
pylab
filename
=
sys
.
argv
[
1
]
ofilename
=
sys
.
argv
[
2
]
csv_reader
=
csv
.
reader
(
open
(
filename
,
'rb'
),
delimiter
=
','
)
x
=
[]
y1
=
[]
y2
=
[]
for
row
in
csv_reader
:
x
.
append
(
float
(
row
[
0
]))
y1
.
append
(
int
(
row
[
1
]))
y2
.
append
(
int
(
row
[
2
]))
pylab
.
title
(
filename
)
pylab
.
xlabel
(
"Temperature (C)"
)
pylab
.
ylabel
(
"Ring oscillator frequency (counts)"
)
pylab
.
scatter
(
x
,
y1
,
marker
=
'+'
,
color
=
"red"
,
label
=
"Channel 1"
)
pylab
.
scatter
(
x
,
y2
,
marker
=
'+'
,
color
=
"blue"
,
label
=
"Channel 2"
)
pylab
.
legend
()
pylab
.
savefig
(
ofilename
)
#pylab.show()
doc/testreport.tex
View file @
a8dba5f2
...
...
@@ -49,9 +49,11 @@
\subsection
{
Temperature measurement with ring oscillators
}
\input
{
rofreq1
_
pdf.tex
}
\input
{
rofreq2
_
pdf.tex
}
\begin{figure}
[h]
\includegraphics
[width=\textwidth]
{
rofreq.pdf
}
\caption
{
Dependence of ring oscillator frequency on temperature.
}
\label
{
fig:rofreq
}
\end{figure}
\subsection
{
Differential TDC
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment