@@ -222,7 +222,7 @@ sigui --mode=web --root-folder path-to-my-analyzers
222222![ launcher_web] ( docs/source/images/launcher_web.png )
223223
224224
225- ## Customizing the layout
225+ ## Customizing layout and settings
226226
227227You can create your own custom layout by specifying which views you'd like
228228to see, and where they go. The basic window layout supports eight "zones",
@@ -248,7 +248,7 @@ E.g. suppose your layout is only non-empty in zones 1, 4, 5, 6 and 7:
248248+---------------+--------------+
249249```
250250
251- Then zone1 will stretch right-wards to make a three -zone view. Zone4 will stretch
251+ Then zone1 will stretch right-wards to make a two -zone view. Zone4 will stretch
252252downwards to make a long two-zone view.
253253
254254To specify your own layout, put the specification in a ` .json ` file. This should
@@ -278,6 +278,41 @@ sigui --layout_file=path/to/my_layout.json path/to/sorting_analyzer
278278
279279Find a list of available views [ in this file] ( https://github.com/SpikeInterface/spikeinterface-gui/blob/main/spikeinterface_gui/viewlist.py ) .
280280
281+ You can also edit the initial settings for each view. There are two ways to do this.
282+ First, you can open the gui, edit the settings of any or all views, then press the
283+ "Save as default settings" button in the ` mainsettings ` view. This will save a
284+ ` settings.json ` file in your spikeinterface-gui config (saved in ` ~/.config/spikeinterface_gui/ ` ).
285+ The saved settings will automatically load next time you start the gui.
286+
287+ If you want more direct control, you can pass your own setting json file
288+ to the ` settings-file ` flag (or by passing a ` user_settings ` dict to ` run_mainwindow ` ).
289+ The settings file should contain a settings dict for each view. The view names are the
290+ same as used in the layout file, and each setting name can be seen in the settings
291+ tab of each view. Below is an example settings file:
292+
293+ ** my_settings.json**
294+
295+ ``` json
296+ {
297+ "probe" : {
298+ "show_channel_id" : true
299+ },
300+ "waveform" : {
301+ "overlap" : false ,
302+ "plot_std" : false
303+ },
304+ "spikeamplitude" : {
305+ "max_spikes_per_unit" : 1000 ,
306+ "alpha" : 0.2
307+ }
308+ }
309+ ```
310+
311+ You can then use this file by running e.g.
312+
313+ ``` bash
314+ sigui --settings_file=path/to/my_settings.json path/to/sorting_analyzer
315+ ```
281316
282317## Deploy the GUI in web mode
283318
0 commit comments