|
@@ -57,6 +57,24 @@
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
|
|
+ <div class="field is-horizontal">
|
|
|
|
+ <div class="field-label is-normal">
|
|
|
|
+ <label class="label"> Plot options </label>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="field-body">
|
|
|
|
+ <div class="columns">
|
|
|
|
+ <div class="column">
|
|
|
|
+ <b-switch v-model="isPlot_n"> Re(n)</b-switch>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="column">
|
|
|
|
+ <b-switch v-model="isPlot_k"> Im(n)</b-switch>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="column">
|
|
|
|
+ <b-switch v-model="isPlot_spline"> Interpolation</b-switch>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="chart-container">
|
|
<div class="chart-container">
|
|
<reactive-chart :chart="chart"/>
|
|
<reactive-chart :chart="chart"/>
|
|
</div>
|
|
</div>
|
|
@@ -91,6 +109,12 @@
|
|
uuid: "materials",
|
|
uuid: "materials",
|
|
traces: [],
|
|
traces: [],
|
|
layout: {
|
|
layout: {
|
|
|
|
+ margin: {
|
|
|
|
+ l:10,
|
|
|
|
+ r:40,
|
|
|
|
+ b:50,
|
|
|
|
+ t:10
|
|
|
|
+ },
|
|
// title: 'reactive charts',
|
|
// title: 'reactive charts',
|
|
xaxis: {
|
|
xaxis: {
|
|
title: 'Wavelength, nm'
|
|
title: 'Wavelength, nm'
|
|
@@ -107,6 +131,9 @@
|
|
width: this.plot_width,
|
|
width: this.plot_width,
|
|
height: this.plot_height}
|
|
height: this.plot_height}
|
|
},
|
|
},
|
|
|
|
+ isPlot_n: true,
|
|
|
|
+ isPlot_k: true,
|
|
|
|
+ isPlot_spline: true,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|