Basic support for plotly backend

NOTE: this requires you to clone `plotly`, copy the
`plotly_kaleido` folder to be adjacent to this one, and then run `cargo
build --release` from within that plotly_kaleido folder.
This commit is contained in:
2020-10-09 21:51:34 -07:00
parent f2ba6fdd1b
commit 1a9093315a
4 changed files with 47 additions and 12 deletions

View File

@@ -36,17 +36,18 @@ fn main() {
//driver.set_steps_per_frame(80);
driver.set_steps_per_frame(120);
//driver.set_steps_per_frame(200);
driver.add_y4m_renderer(&*format!("toroid25d.5-flt{}-{}-feat{}um-{:.1e}A-{:.1e}s--radii{}um-{}um-{}um-{}um.y4m",
std::mem::size_of::<Flt>() * 8,
*size_px,
m_to_um(feat_size),
peak_current,
current_duration,
m_to_um(conductor_outer_rad),
m_to_um(ferro_inner_rad),
m_to_um(ferro_outer_rad),
m_to_um(ferro_depth),
));
// driver.add_y4m_renderer(&*format!("toroid25d.5-flt{}-{}-feat{}um-{:.1e}A-{:.1e}s--radii{}um-{}um-{}um-{}um.y4m",
// std::mem::size_of::<Flt>() * 8,
// *size_px,
// m_to_um(feat_size),
// peak_current,
// current_duration,
// m_to_um(conductor_outer_rad),
// m_to_um(ferro_inner_rad),
// m_to_um(ferro_outer_rad),
// m_to_um(ferro_depth),
// ));
driver.add_plotly_renderer();
let conductor_region = CylinderZ::new(
Vec2::new(half_width, half_width),
conductor_outer_rad);