diff --git a/src/ParallelPlots.jl b/src/ParallelPlots.jl index c0879a5..ea617d2 100644 --- a/src/ParallelPlots.jl +++ b/src/ParallelPlots.jl @@ -1,7 +1,8 @@ module ParallelPlots -using CairoMakie -using DataFrames +using CairoMakie: Makie, Axis, Colorbar, Point2f, Point2, text!, lines!, empty!, current_figure, hidespines!, size, Observable, lift, @recipe, Attributes, hidedecorations!, on +using DataFrames: DataFrame, names, eachcol, size, minimum, maximum + function normalize_DF(data::DataFrame) diff --git a/test/runtests.jl b/test/runtests.jl index 8454a75..78ea12c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -9,6 +9,4 @@ include("test_custom_dimensions.jl") include("test_default_call.jl") include("test_recipe_observable.jl") include("test_lines_count.jl") - -# Watson include("watson_example.jl") \ No newline at end of file diff --git a/test/test_argument_errors.jl b/test/test_argument_errors.jl index 4ddd958..cd7151e 100644 --- a/test/test_argument_errors.jl +++ b/test/test_argument_errors.jl @@ -1,6 +1,7 @@ using ParallelPlots: parallelplot using Test: @testset, @test_throws using DataFrames: DataFrame +using CairoMakie: save @testset "ArgumentError Tests" begin df_missing = DataFrame(Name=["Alice", "Bob", "Charlie"], diff --git a/test/test_call_with_color_feature.jl b/test/test_call_with_color_feature.jl index aabf037..ac8b8dd 100644 --- a/test/test_call_with_color_feature.jl +++ b/test/test_call_with_color_feature.jl @@ -1,5 +1,6 @@ using ParallelPlots: parallelplot using Test: @testset, @test, @test_throws +using CairoMakie: save @testset "call with color feature Axis" begin diff --git a/test/test_call_with_feature_labels.jl b/test/test_call_with_feature_labels.jl index dfbf98e..c55fb61 100644 --- a/test/test_call_with_feature_labels.jl +++ b/test/test_call_with_feature_labels.jl @@ -1,5 +1,6 @@ using ParallelPlots: parallelplot using Test: @testset, @test, @test_throws +using CairoMakie: save @testset "call with feature_labels" begin # Generate sample multivariate data df = create_person_df(3) diff --git a/test/test_call_with_normalize.jl b/test/test_call_with_normalize.jl index 4658137..2132cbd 100644 --- a/test/test_call_with_normalize.jl +++ b/test/test_call_with_normalize.jl @@ -1,5 +1,6 @@ using ParallelPlots: parallelplot using Test: @testset, @test +using CairoMakie: save @testset "call with normalize" begin diff --git a/test/test_curved.jl b/test/test_curved.jl index 662b61d..573936e 100644 --- a/test/test_curved.jl +++ b/test/test_curved.jl @@ -1,7 +1,6 @@ using ParallelPlots:parallelplot -using Test: @test - -using DataFrames: DataFrame +using Test: @test, @testset +using CairoMakie: save @testset "default call curved" begin diff --git a/test/test_custom_dimensions.jl b/test/test_custom_dimensions.jl index 04954a3..44abf71 100644 --- a/test/test_custom_dimensions.jl +++ b/test/test_custom_dimensions.jl @@ -1,5 +1,6 @@ using ParallelPlots: parallelplot -using Test:@test +using Test:@test, @testset +using CairoMakie: save @testset "call with scene width & height" begin diff --git a/test/test_default_call.jl b/test/test_default_call.jl index aa69511..0829289 100644 --- a/test/test_default_call.jl +++ b/test/test_default_call.jl @@ -1,7 +1,6 @@ using ParallelPlots: parallelplot -using Test: @test - -using DataFrames +using Test: @test, @testset +using CairoMakie: save @testset "default call" begin diff --git a/test/test_lines_count.jl b/test/test_lines_count.jl index 49b3cde..9cd7617 100644 --- a/test/test_lines_count.jl +++ b/test/test_lines_count.jl @@ -1,5 +1,6 @@ using ParallelPlots: parallelplot -using Test: @test +using Test: @test, @testset +using DataFrames: size @testset "Lines Count" begin df=create_person_df() diff --git a/test/test_recipe_observable.jl b/test/test_recipe_observable.jl index a6a58af..93cc8df 100644 --- a/test/test_recipe_observable.jl +++ b/test/test_recipe_observable.jl @@ -1,9 +1,7 @@ using ParallelPlots: parallelplot -using CairoMakie:Observable, record # for Record Video +using CairoMakie:Observable, record, save # for Record Video using Test: @testset -using DataFrames - @testset "Use a Observable DataFrame" begin # create the Data diff --git a/test/test_utils.jl b/test/test_utils.jl index 9a6e4d8..845259d 100644 --- a/test/test_utils.jl +++ b/test/test_utils.jl @@ -1,6 +1,6 @@ using Random: seed!, rand using DataFrames: DataFrame -using CairoMakie: LineSegments, save, Lines +using CairoMakie: LineSegments, Lines #generate Data diff --git a/test/watson_example.jl b/test/watson_example.jl index 8c12061..a049cde 100644 --- a/test/watson_example.jl +++ b/test/watson_example.jl @@ -1,5 +1,5 @@ using DrWatson: display, @unpack, push!, first, Dict, dict_list -using DataFrames: DataFrame, nrow +using DataFrames: nrow using ParallelPlots: parallelplot using CairoMakie: save, Observable, record