diff --git a/index.html b/index.html index 35062ab..5c99012 100644 --- a/index.html +++ b/index.html @@ -1154,7 +1154,7 @@
Figure 2.B1+ efficiency for one participant (sub-05) across all seven RF shimming conditions. The top left panel shows the tfl_b1map magnitude image with an overlay of the mask that was used to perform RF shimming. Text inserts show the mean (in nT/V) and CoV (in %) of B1+ efficiency along the spinal cord between C3 and T2.
-# PYTHON CODE
# Module imports
@@ -1226,7 +1226,7 @@ 7 | Paper figurest2_datasets[subject][shim_mode]={}
b1_datasets[subject][shim_mode]={}
- t2_data=go.scatter.Line(
+ t2_data=go.Line(
x=x_grid,
y=t2_data_plotly[subject][shim_mode][0],
name=shim_mode,
@@ -1235,7 +1235,7 @@ 7 | Paper figuresshowlegend=False
)
- b1_data=go.scatter.Line(
+ b1_data=go.Line(
x=x_grid,
y=b1_data_plotly[subject][shim_mode],
name=shim_mode,
@@ -1398,106 +1398,26 @@ 7 | Paper figures#iplot(fig, filename = 'figure4a', config = config)
plot(fig, filename = 'figure1.html', config = config)
-display(HTML('figure1.html'))
---------------------------------------------------------------------------
-ValueError Traceback (most recent call last)
-Cell In[20], line 71
- 68 t2_datasets[subject][shim_mode]={}
- 69 b1_datasets[subject][shim_mode]={}
----> 71 t2_data=go.scatter.Line(
- 72 x=x_grid,
- 73 y=t2_data_plotly[subject][shim_mode][0],
- 74 name=shim_mode,
- 75 legendgroup=shim_mode,
- 76 line=dict(color='rgb'+str(pal[index]), width=3),
- 77 showlegend=False
- 78 )
- 80 b1_data=go.scatter.Line(
- 81 x=x_grid,
- 82 y=b1_data_plotly[subject][shim_mode],
- (...)
- 86 showlegend=legend_bool
- 87 )
- 90 t2_datasets[subject][shim_mode]=t2_data
-
-File /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/plotly/graph_objs/scatter/_line.py:398, in Line.__init__(self, arg, backoff, backoffsrc, color, dash, shape, simplify, smoothing, width, **kwargs)
- 394 self["width"] = _v
- 396 # Process unknown kwargs
- 397 # ----------------------
---> 398 self._process_kwargs(**dict(arg, **kwargs))
- 400 # Reset skip_invalid
- 401 # ------------------
- 402 self._skip_invalid = False
-
-File /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/plotly/basedatatypes.py:4392, in BasePlotlyType._process_kwargs(self, **kwargs)
- 4390 self[k] = v
- 4391 elif not self._skip_invalid:
--> 4392 raise err
-
-ValueError: Invalid property specified for object of type plotly.graph_objs.scatter.Line: 'x'
-
-Did you mean "dash"?
-
- Valid properties:
- backoff
- Sets the line back off from the end point of the nth
- line segment (in px). This option is useful e.g. to
- avoid overlap with arrowhead markers. With "auto" the
- lines would trim before markers if `marker.angleref` is
- set to "previous".
- backoffsrc
- Sets the source reference on Chart Studio Cloud for
- `backoff`.
- color
- Sets the line color.
- dash
- Sets the dash style of lines. Set to a dash type string
- ("solid", "dot", "dash", "longdash", "dashdot", or
- "longdashdot") or a dash length list in px (eg
- "5px,10px,2px,2px").
- shape
- Determines the line shape. With "spline" the lines are
- drawn using spline interpolation. The other available
- values correspond to step-wise line shapes.
- simplify
- Simplifies lines by removing nearly-collinear points.
- When transitioning lines, it may be desirable to
- disable this so that the number of points along the
- resulting SVG path is unaffected.
- smoothing
- Has an effect only if `shape` is set to "spline" Sets
- the amount of smoothing. 0 corresponds to no smoothing
- (equivalent to a "linear" shape).
- width
- Sets the line width (in px).
-
-Did you mean "dash"?
-
-Bad property path:
-x
-^
-
Figure 3.B1+ efficiency (A) and CSF/Cord signal ratio from the GRE scan (B) across subjects and across different RF shimming conditions. Data werewas measured in the spinal cord from C3 to T2 vertebral levels. To match the x-ticks across subjects, the C2-C3 and the T2-T3 intervertebral discs of each subject were aligned with that of the PAM50 template [De Leener et al., 2018], and the curves were linearly scaled.