from pyodide import create_proxy
from js import console
import layervs1
import matplotlib as plt
plt.rcParams.update({'figure.max_open_warning': 0})
x= 0
y = 0
mx = 'Stature (Standing Height)'
my = 'Bideltoid Breadth'
g = 'mf'
u = 'in'
display(layervs1.layer(mx, my, x, y, g, u), target = "graph-area", append=False)
def dis():
x = Element('ix').element.value
if len(x) == 0:
x=float(0)
x = float(x)
y = Element('iy').element.value
if len(y) == 0:
y=float(0)
y = float(y)
mx = str(Element('mx').element.value)
my = str(Element('my').element.value)
g = str(Element('gender').element.value)
if len(g) == 0:
g='mf'
u = str(Element('units').element.value)
if len(u) == 0:
u = 'in'
g = g.lower()
u = u.lower()
display(layervs1.layer(mx, my, x, y, g, u), target = "graph-area")
You know what it does, don't give yourself BDD. Measurements go in the first 2 input fields, values for those two measurements go in the neext two, and you can chose which genders to show and which units to use in the last two. Runs on ANSUR 1 data (circa 1988.)
Input measurements
Make sure you have the spelling right, if you mispell something the chart won't show.
TIP: Always click on the drop down of the measurement you want to use, that way you can guarantee that it is spelled right.