add transparen figs, update 201800815 1630

This commit is contained in:
2018-08-15 16:25:25 +02:00
parent 10fb660a9a
commit 83af3672fd
14 changed files with 59 additions and 64 deletions
Binary file not shown.
+1 -2
View File
@@ -55,8 +55,7 @@ plt.plot(
plt.xlabel('$R_{BCU,Set}$/k$\Omega$')
plt.ylabel('V$_{1V8A}$/V')
plt.title("PowerIt Calibration: Analog Potentiometer")
plt.legend()
#-plt.savefig("2kw_direct.png")
plt.savefig("adccalib_{:02d}.pdf".format(lognum))
plt.savefig("adccalib_{:02d}.pdf".format(lognum), transparent=True)
Binary file not shown.
+13 -3
View File
@@ -1,10 +1,12 @@
import matplotlib.pyplot as plt
import numpy as np
import wafer
import VisTools.plotting as vtp
import VisTools.tex as vtt
plt.style.use('bmh')
plt.rcParams['axes.facecolor'] = 'white'
plt.figure(figsize=(8, 3))
plt.figure(figsize=(8, 4))
def gen_reticle_empty():
@@ -54,9 +56,17 @@ def gen_1v8_theory():
ydata = 30100 / (ydata + 6490) * .7 + .7
plt.clf()
plt.plot(xdata, ydata)
plt.plot(xdata, ydata, label="Equation after Datasheet")
plt.xlabel("Potentiometer Setting")
vps = vtp.fit(xdata, ydata, lambda x,m,p,a,c: a/(m*x-p)+c, [.1, -1, 1, 1.5])
#plt.plot(xdata, vps[2].n / (vps[0].n * xdata - vps[1].n) + vps[3].n)
vtt.unc_tolatex(vps[0], None, 'theo.tex', name="m")
vtt.unc_tolatex(vps[1], None, 'theo.tex', name="p")
vtt.unc_tolatex(vps[2], None, 'theo.tex', name="a")
vtt.unc_tolatex(vps[3], None, 'theo.tex', name="c")
plt.xlabel("Potentiometer Setting P$_{val}$")
plt.ylabel("V$_{1.8V out}$")
plt.savefig('v18.pdf')
+10
View File
@@ -0,0 +1,10 @@
\ExplSyntaxOn
\newcommand{\pyval}[1]{%
\str_case:nn{#1}{%
{ 0 }{ m = \SI{-1.6911+-0.0000}{ }}
{ 1 }{ p = \SI{567.6618+-0.0000}{ }}
{ 2 }{ a = \SI{-621.1199+-0.0000}{ }}
{ 3 }{ c = \SI{0.9318+-0.0000}{ }}
}
}
\ExplSyntaxOff
Binary file not shown.
Binary file not shown.
Binary file not shown.