Skip to content

Commit

Permalink
Update publication_plot.jl (#376)
Browse files Browse the repository at this point in the history
* Update publication_plot.jl

* Update Project.toml
  • Loading branch information
odow authored Feb 22, 2021
1 parent bda2800 commit 6819d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SDDP"
uuid = "f4570300-c277-11e8-125c-4912f86ce65d"
authors = ["Oscar Dowson <[email protected]"]
version = "0.3.9"
version = "0.3.10"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
8 changes: 4 additions & 4 deletions src/visualization/publication_plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ RecipesBase.@recipe function f(
size --> (500, 300)
data_matrix = publication_data(dataset, sort(quantile), stage_function)
for i = 1:floor(Int, size(data_matrix, 1) / 2)
μ = 0.5 * (data_matrix[i, :] + data_matrix[end-i+1, :])
r = data_matrix[end-i+1, :] - μ
RecipesBase.@series begin
x := 1:size(data_matrix, 2)
μ = 0.5 * (data_matrix[i, :] + data_matrix[end-i+1, :])
r = data_matrix[end-i+1, :] - μ
ribbon := r
y := μ
fillalpha --> 0.2
seriesalpha --> 0.0
c --> "#00467F"
seriescolor --> "#00467F"
label := ""
()
end
Expand All @@ -73,7 +73,7 @@ RecipesBase.@recipe function f(
RecipesBase.@series begin
x := 1:size(data_matrix, 2)
y := data_matrix[qi, :]
c --> "#00467F"
seriescolor --> "#00467F"
label := ""
()
end
Expand Down

2 comments on commit 6819d06

@odow
Copy link
Owner Author

@odow odow commented on 6819d06 Feb 22, 2021

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.

Registration pull request created: JuliaRegistries/General/30637

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.10 -m "<description of version>" 6819d06f5a05f2004ff6556f837aca9516bebdc3
git push origin v0.3.10

Please sign in to comment.