add transparen figs, update 201800815 1630
This commit is contained in:
Binary file not shown.
+13
-3
@@ -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')
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user