Skip to content

Commit e4c6023

Browse files
committed
Add plotRateSpectrogram to the list of avaliable plots in netpyne_geppetto.py and to PLOT_WIDGETS in constants.js, add a temporary icon for this type of plot
1 parent 4fa3b71 commit e4c6023

3 files changed

Lines changed: 90 additions & 1 deletion

File tree

netpyne_ui/netpyne_geppetto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,8 @@ def getAvailablePlots(self):
882882
"iplotConn",
883883
"granger",
884884
"plotDipole",
885-
"plotEEG"
885+
"plotEEG",
886+
"plotRateSpectrogram"
886887
]
887888

888889
return [plot for plot in plots if plot not in list(self.simConfig.analysis.keys())]

webapp/constants.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,33 @@ export const PLOT_WIDGETS = {
444444
},
445445
},
446446
},
447+
plotRateSpectrogram: {
448+
id: 'plotRateSpectrogram',
449+
name: 'Rate Spectrogram Plot',
450+
status: WidgetStatus.MINIMIZED,
451+
component: 'Plot',
452+
hideOnClose: true,
453+
panelName: MINIMIZED_PANEL,
454+
defaultPanel: 'plotPanel',
455+
enableRename: false,
456+
initialized: false,
457+
disabled: true,
458+
method: {
459+
plotKey: 'plotRateSpectrogram',
460+
plotMethod: 'plotRateSpectrogram',
461+
plotType: false,
462+
},
463+
pos: 15,
464+
config: {
465+
id: 'plotRateSpectrogram',
466+
name: 'Rate Spectrogram Plot',
467+
method: {
468+
plotKey: 'plotRateSpectrogram',
469+
plotMethod: 'plotRateSpectrogram',
470+
plotType: false,
471+
},
472+
},
473+
},
447474
};
448475

449476
export const DEFAULT_NETWORK_WIDGETS = {
Lines changed: 61 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)