From f002f66890bf67a46bb8d70b77edc2c6a57a6d5f Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Wed, 12 Oct 2016 09:30:49 -0400 Subject: [PATCH] add PlotThemes to REQUIRE; add warning for DataFrames --- REQUIRE | 1 + src/plot.jl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/REQUIRE b/REQUIRE index 440fa7f5..67e5f781 100644 --- a/REQUIRE +++ b/REQUIRE @@ -2,6 +2,7 @@ julia 0.5 RecipesBase PlotUtils +PlotThemes Reexport FixedSizeArrays Measures diff --git a/src/plot.jl b/src/plot.jl index 6d05ba66..498135f6 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -161,6 +161,11 @@ end function _plot!(plt::Plot, d::KW, args::Tuple) d[:plot_object] = plt + if !isempty(args) && !isdefined(Main, :StatPlots) && + first(split(string(typeof(args[1])), ".")) == "DataFrames" + warn("You're trying to plot a DataFrame, but this functionality is provided by StatPlots") + end + # -------------------------------- # "USER RECIPES" # --------------------------------