Skip to content

Commit

Permalink
Merge pull request #203 from IBM/plotting_bug
Browse files Browse the repository at this point in the history
fix plotting issue not displaying in notebooks
  • Loading branch information
ppalmes committed Apr 6, 2023
2 parents 07c32ff + dcb96a0 commit 0ad5e73
Show file tree
Hide file tree
Showing 10 changed files with 1,253 additions and 25,936 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CSV = "0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0.10"
DataFrames = "0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 1.0, 1.1, 1.2"
Impute = "0.5, 0.6"
MLDataUtils = "0.2, 0.3, 0.4, 0.5"
MultivariateStats = "0.5, 0.6, 0.7, 0.8, 0.9"
MultivariateStats = "0.5, 0.6, 0.7, 0.8, 0.9, 0.10"
RecipesBase = "1.1"
StatsBase = "0.29, 0.30, 0.31, 0.32, 0.33"
julia = "1"
Expand Down
7,319 changes: 0 additions & 7,319 deletions docs/notebooks/InteractivePlotting.jl.ipynb

This file was deleted.

5,005 changes: 503 additions & 4,502 deletions docs/notebooks/JuliaCon2019.jl.ipynb

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs/notebooks/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
TSML = "198dc43e-9e51-5cd7-9d40-d9794d335912"
7,108 changes: 579 additions & 6,529 deletions docs/notebooks/StaticPlotting.jl.ipynb

Large diffs are not rendered by default.

7,339 changes: 0 additions & 7,339 deletions docs/notebooks/StatifierNotebook.jl.ipynb

This file was deleted.

9 changes: 5 additions & 4 deletions docs/notebooks/TSMLClassifiers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,15 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [],
"source": [
"@everywhere using TSML\n",
"@everywhere using TSMLextra\n",
"@everywhere using TSMLExtra\n",
"@everywhere using DataFrames\n",
"@everywhere using Random\n",
"@everywhere using Statistics\n",
Expand Down Expand Up @@ -275,15 +276,15 @@
},
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Julia 1.2.0",
"display_name": "Julia 1.8.5",
"language": "julia",
"name": "julia-1.2"
"name": "julia-1.8"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.2.0"
"version": "1.8.5"
}
},
"nbformat": 4,
Expand Down
391 changes: 153 additions & 238 deletions docs/notebooks/TSML_Demo.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/plotter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export Plotter
# return nothing
#end

struct DateVal{D<:DateTime,V<:Union{Missing,Real}}
struct DateVal{D<:DateTime,V<:Union{Missing,<:Number}}
dtime::Vector{D}
values::Vector{V}
end

@recipe function plot(dt::DateVal,sz=(390,200))
@recipe function plot(dt::DateVal,sz=(390,200))
marker := :none
markertype --> :none
seriestype := :path
Expand Down Expand Up @@ -127,7 +127,7 @@ function transform!(pltr::Plotter, features::DataFrame)::DataFrame
sz = (390,200)
end
dtval = DateVal(df.Date,df.Value)
RecipesBase.plot(dtval,sz)
display(RecipesBase.plot(dtval,sz))
return features
end

Expand Down
2 changes: 1 addition & 1 deletion src/valdatefilters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using DataFrames: DataFrame,rename!,ncol,groupby,combine,leftjoin,innerjoin
using MLDataUtils: slidingwindow

using Impute
using Impute: impute, impute!, interp, interp!, locf, nocb
using Impute: impute, impute!, interp, interp!, locf, nocb, knn
export impute, impute!, interp, interp!, locf, nocb

using ..AbsTypes
Expand Down

2 comments on commit 0ad5e73

@ppalmes
Copy link
Collaborator Author

@ppalmes ppalmes commented on 0ad5e73 Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error while trying to register: "Tag with name v2.7.3 already exists and points to a different commit"

Please sign in to comment.