You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The surfaces visualisation gets broken after plotting graph
Steps to reproduce
Import multicompartment_head_project
Generate FEM mesh
Generate Lead Field via zef_tes_lead_field; script
Click "plot graph"
Click "visualize surfaces"
see the error
Property assignment is not allowed when the object is empty. Use
subscripted assignment to create an array element.
Error in zef_update_colorscale (line 25)
h.ColorScale = 'linear';
Error in zef_set_sliders_plot (line 6)
evalin('base','zef_update_colorscale;');
Error in zef_plot_meshes (line 1228)
zef_set_sliders_plot(1);
Error in zef_visualize_surfaces (line 3)
zef_update_fig_details;zef_plot_meshes([]);
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 427)
Error while evaluating Button PrivateButtonPushedFcn.
Expected behavior
The figure tool shows a correct visualization for surface model, no errors occur.
Screenshots
2023-05-07-11.13.04.mp4
Context
Name
Value
Version
2241fdd zef_nse_sigma: fix indentations with Matlab's smart indent tool
OS
MacOS
Shell
N/A
The text was updated successfully, but these errors were encountered:
I have partially solved this two years ago. The way to solve this permanently is to define functions for initializing 3D visualization and initializing 2D graphs that are called at the beginning of an appropriate type of visualization. Some of the handle variables for 3D visualization can be found in ZI's initialization scripts and others from zef_visualize_surfaces, for example, and zeffiro_interface/plugins/GMMClustering/v2/m/zef_plot_GMM_amplitudes.m lines 101-125 do what was once needed to draw 2D graphs.
Description
The surfaces visualisation gets broken after plotting graph
Steps to reproduce
zef_tes_lead_field;
scriptExpected behavior
The figure tool shows a correct visualization for surface model, no errors occur.
Screenshots
2023-05-07-11.13.04.mp4
Context
The text was updated successfully, but these errors were encountered: