File tree Expand file tree Collapse file tree 3 files changed +20
-18
lines changed
Expand file tree Collapse file tree 3 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 3838 run : if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get install -y python3-matplotlib; fi
3939 shell : bash
4040 - name : Install LaTeX
41- run : if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get -qq install texlive-full texlive-fonts-extra cm-super texlive-latex-extra ; fi
41+ run : if [ "$RUNNER_OS" = "Linux" ]; then sudo apt-get -qq install texlive-full texlive-fonts-extra cm-super; fi
4242 shell : bash
4343 - uses : actions/checkout@v4
4444 - uses : julia-actions/setup-julia@v2
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ function set_plot_style(titel_size=16)
7373 # plt.style.use('seaborn-whitegrid')
7474 # plt.style.use("seaborn-v0_8-whitegrid")
7575 rcParams = plt. PyDict (plt. matplotlib." rcParams" )
76- rcParams[" text.usetex" ] = Sys . islinux ()
76+ rcParams[" text.usetex" ] = true
7777 rcParams[" font.family" ] = " serif"
7878 rcParams[" font.serif" ] = [" Computer Modern Roman" ]
7979 rcParams[" axes.titlesize" ] = titel_size
Original file line number Diff line number Diff line change @@ -44,21 +44,23 @@ plt.ioff()
4444 rm (" /tmp/plot.pdf" )
4545 show_plot (fig)
4646 wa = result_vsm ()
47- fig = plot_geometry (
48- wa,
49- " Rectangular_wing_geometry" ;
50- data_type= " .pdf" ,
51- save_path= " /tmp" ,
52- is_save= true ,
53- is_show= false )
54- @test fig isa plt. PyPlot. Figure
55- @test isfile (" /tmp/Rectangular_wing_geometry_angled_view.pdf" )
56- rm (" /tmp/Rectangular_wing_geometry_angled_view.pdf" )
57- @test isfile (" /tmp/Rectangular_wing_geometry_front_view.pdf" )
58- rm (" /tmp/Rectangular_wing_geometry_front_view.pdf" )
59- @test isfile (" /tmp/Rectangular_wing_geometry_side_view.pdf" )
60- rm (" /tmp/Rectangular_wing_geometry_side_view.pdf" )
61- @test isfile (" /tmp/Rectangular_wing_geometry_top_view.pdf" )
62- rm (" /tmp/Rectangular_wing_geometry_top_view.pdf" )
47+ if Sys. islinux ()
48+ fig = plot_geometry (
49+ wa,
50+ " Rectangular_wing_geometry" ;
51+ data_type= " .pdf" ,
52+ save_path= " /tmp" ,
53+ is_save= true ,
54+ is_show= false )
55+ @test fig isa plt. PyPlot. Figure
56+ @test isfile (" /tmp/Rectangular_wing_geometry_angled_view.pdf" )
57+ rm (" /tmp/Rectangular_wing_geometry_angled_view.pdf" )
58+ @test isfile (" /tmp/Rectangular_wing_geometry_front_view.pdf" )
59+ rm (" /tmp/Rectangular_wing_geometry_front_view.pdf" )
60+ @test isfile (" /tmp/Rectangular_wing_geometry_side_view.pdf" )
61+ rm (" /tmp/Rectangular_wing_geometry_side_view.pdf" )
62+ @test isfile (" /tmp/Rectangular_wing_geometry_top_view.pdf" )
63+ rm (" /tmp/Rectangular_wing_geometry_top_view.pdf" )
64+ end
6365end
6466plt. ion ()
You can’t perform that action at this time.
0 commit comments