Skip to content

Commit

Permalink
Visualization Callback Makie added Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
s6nistam committed Dec 13, 2024
1 parent 23b5f2f commit 5866ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callbacks_step/visualization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ function show_plot_makie(ndims, visualization_callback, plot_data, variable_name
figure = visualization_callback.figure
if ndims == 2
for v in 1:size(variable_names)[1]
GLMakie.heatmap(figure[makieLayoutHelper(v)...], plot_data.x, plot_data.y, plot_data.data[v])
GLMakie.heatmap(figure[makieLayoutHelper(v)...], plot_data.x, plot_data.y, plot_data.data[v], axis=(; title = variable_names[v]))
end
else
for v in 1:size(variable_names)[1]
GLMakie.volume(figure[makieLayoutHelper(v)...], plot_data.data[v])
GLMakie.volume(figure[makieLayoutHelper(v)...], plot_data.data[v], axis=(; title = variable_names[v]))
end
end
GLMakie.display(figure)
Expand Down

0 comments on commit 5866ae7

Please sign in to comment.