|
1 | 1 | @setup_workload begin |
2 | 2 | @compile_workload begin |
3 | 3 | foldertest = joinpath(@__DIR__, "../test") |
| 4 | + # foldertemp = joinpath(tempdir(), "AstroPlot.jl") |
| 5 | + |
4 | 6 | header, data = read_gadget2(joinpath(foldertest, "plummer/snapshot_0000.gadget2"), uAstro, uGadget2, type=Star) |
5 | 7 | h, d = read_gadget2(joinpath(foldertest, "plummer_unitless.gadget2"), nothing, uGadget2, type=Star) |
6 | 8 |
|
|
25 | 27 | fig = plot_profiling(joinpath(foldertest, "profiling.csv")) |
26 | 28 | fig, df = plot_energy(joinpath(foldertest, "energy.csv")) |
27 | 29 | fig, df = plot_energy_delta(joinpath(foldertest, "energy.csv")) |
28 | | - fig = plot_densitycurve(data) |
29 | | - fig = plot_rotationcurve(data) |
| 30 | + fig = plot_densitycurve(data, savefolder = foldertest) |
| 31 | + fig = plot_rotationcurve(data, savefolder = foldertest) |
30 | 32 |
|
31 | 33 | #TODO: there is something wrong??? |
32 | 34 | plot_positionslice( |
|
40 | 42 | FigScale, FigLagrange, df = plot_radii( |
41 | 43 | joinpath(foldertest, "plummer/"), "snapshot_", collect(0:20:200), ".gadget2", gadget2(), |
42 | 44 | times = collect(0.0:0.01:0.1) * u"Gyr", title = "Direct Sum const", |
| 45 | + savefolder = foldertest, |
43 | 46 | ) |
44 | 47 |
|
45 | 48 | plot_positionslice(joinpath(foldertest, "mosaic/"), "snapshot_", collect(1:9:100), ".gadget2", gadget2(), |
|
49 | 52 | ) |
50 | 53 | plt = mosaicview(joinpath(foldertest, "mosaic/"), "pos_", collect(1:9:100), ".png"; fillvalue = 0.5, npad = 3, ncol = 4, rowmajor = true) |
51 | 54 |
|
52 | | - png2video(joinpath(foldertest, "mosaic/"), "pos_", ".png", "TDE.mp4") |
| 55 | + png2video(joinpath(foldertest, "mosaic/"), "pos_", ".png", joinpath(foldertest, "TDE.mp4")) |
53 | 56 |
|
54 | 57 | unicode_scatter(d, nothing) |
55 | 58 | unicode_density(d, nothing) |
|
0 commit comments