Skip to content

Commit

Permalink
change plotly type to gl
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk committed Dec 3, 2024
1 parent 2731d58 commit 8483560
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion gui_dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@mui/material": "latest",
"cbor-js": "^0.1.0",
"immer": "^10.1.1",
"plotly.js": "^2.35.2",
"plotly.js-basic-dist-min": "^2.35.2",
"react": "next",
"react-dom": "next",
Expand Down
2 changes: 1 addition & 1 deletion gui_dev/src/components/DecodingGraph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const DecodingGraph = ({
return {
x,
y,
type: "scatter",
type: "scattergl",
mode: "lines",
name: decodingOutput,
line: { simplify: false, color: colors[idx] },
Expand Down
1 change: 1 addition & 0 deletions gui_dev/src/components/HeatmapGraph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ export const HeatmapGraph = () => {
x: heatmapData.x,
y: selectedFeatures,
type: 'heatmap',
//zsmooth: 'best',
colorscale: 'Viridis',
},
]}
Expand Down
2 changes: 1 addition & 1 deletion gui_dev/src/components/PSDGraph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const PSDGraph = () => {
const traces = psdData.map((data, idx) => ({
x: data.features.slice(0, maxXaxisFrequency),
y: data.values,
type: "scatter",
type: "scattergl",
mode: "lines",
name: data.channelName,
line: { simplify: false, color: colors[idx] },
Expand Down
2 changes: 1 addition & 1 deletion gui_dev/src/components/RawDataGraph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const RawDataGraph = ({
return {
x,
y,
type: "scatter",
type: "scattergl",
mode: "lines",
name: channelName,
line: { simplify: false, color: colors[idx] },
Expand Down
2 changes: 1 addition & 1 deletion start_LSL_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
# features = asyncio.run(stream.run(data, save_csv=True))

# remove first eight channels
raw.drop_channels(raw.ch_names[:8])
#raw.drop_channels(raw.ch_names[:8])

player = LSLOfflinePlayer(raw=raw, stream_name="example_stream")

Expand Down

0 comments on commit 8483560

Please sign in to comment.