【发布时间】:2020-08-03 00:52:25
【问题描述】:
我正在尝试在reveal.js 中的幻灯片上使用plotly。
但是,我的情节不在幻灯片的中间,而是在下方某处移动。
这是我幻灯片的代码(presentationEntryPoint 最终绘制在 'some_plot' 中):
<section>
<h3>Plot</h3>
<div id='some_plot'> </div>
<script>presentationEntryPoint('some_plot', {
name: 'remove 0',
size: 10000,
algorithm: 'std::remove',
type: 'int',
time: 'y',
padding: 'x',
group: 'intel_9700K',
percentage: 50,
}, []);
</script>
</section>
UPD:可以在这里看到:https://denisyaroshevskiy.github.io/my_first_simd_1_presentation/#/2 有时需要一两次更新。 Safari、Chrome 和 Yandex 浏览器。
【问题讨论】: