@@ -336,7 +336,7 @@ Display a Makie figure.
336336- `dpi`: Dots per inch for the figure (default: 130) - currently unused in Makie
337337"""
338338function VortexStepMethod. show_plot (fig:: Makie.Figure ; dpi= 130 )
339- display (fig)
339+ isinteractive () && display (fig)
340340end
341341
342342"""
@@ -531,7 +531,7 @@ function VortexStepMethod.plot_geometry(body_aero::BodyAerodynamics, title;
531531
532532 fig = create_geometry_plot_makie (body_aero, title, view_elevation, view_azimuth)
533533
534- if is_show
534+ if is_show && isinteractive ()
535535 display (fig)
536536 end
537537
@@ -661,7 +661,7 @@ function VortexStepMethod.plot_distribution(y_coordinates_list, results_list, la
661661 save_plot (fig, save_path, title, data_type= data_type)
662662 end
663663
664- if is_show
664+ if is_show && isinteractive ()
665665 display (fig)
666666 end
667667
@@ -881,7 +881,7 @@ function VortexStepMethod.plot_polars(
881881 save_plot (fig, save_path, main_title; data_type)
882882 end
883883
884- if is_show
884+ if is_show && isinteractive ()
885885 display (fig)
886886 end
887887
@@ -940,7 +940,7 @@ function VortexStepMethod.plot_polar_data(body_aero::BodyAerodynamics;
940940 color= :blue , linewidth= 0.5 , transparency= true )
941941 end
942942
943- if is_show
943+ if is_show && isinteractive ()
944944 display (fig)
945945 end
946946 return fig
@@ -1312,7 +1312,7 @@ function VortexStepMethod.plot_combined_analysis(
13121312 colsize! (fig. layout, 1 , Relative (0.6 ))
13131313 colsize! (fig. layout, 2 , Relative (0.4 ))
13141314
1315- if is_show
1315+ if is_show && isinteractive ()
13161316 display (fig)
13171317 end
13181318
0 commit comments