Skip to content

Commit

Permalink
back to plotly for interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Creel committed Mar 14, 2024
1 parent 0b88d25 commit c32211b
Show file tree
Hide file tree
Showing 8 changed files with 93,179 additions and 11,614 deletions.
82,303 changes: 82,303 additions & 0 deletions #econometrics.lyx#

Large diffs are not rendered by default.

653 changes: 176 additions & 477 deletions Manifest.toml

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions PracticalSummaries/12-Optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ f(x,y) = -(3*(1-x)^2 * exp(-(x^2) - (y+1)^2)

##
# let's explore it:
using GLMakie, Plots
using Plots
plotly()
x = range(-4, step=0.1, stop=4)
y = x
Makie.surface(x, y, (x,y)->f(x,y))
surface(x, y, (x,y)->f(x,y), color=:viridis)
##
Plots.contour(x,y,(x,y)->f(x,y), c=:viridis)
Plots.xlabel!("x")
Plots.ylabel!("y")
contour(x,y,(x,y)->f(x,y), c=:viridis)
xlabel!("x")
ylabel!("y")

##
# This function has 3 local min, and 3 local max.
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ FixedEffectModels = "9d5cd8c9-2029-5cab-9928-427838db53e3"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
GLM = "38e38edf-8417-5370-95a0-9cbb8c7f171a"
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
GR = "28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71"
Glob = "c27321d9-0574-5035-807b-f59d2c89b15c"
KernelDensity = "5ab0869b-81aa-558d-bb23-cbf5423bbe9b"
Expand All @@ -27,6 +26,7 @@ MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d"
NLopt = "76087f3c-5699-56af-9a33-bf431cd00edd"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
PackageCompiler = "9b87118b-4619-50d2-8e1e-99f35a4d4d9d"
Plotly = "58dd65bb-95f3-509e-9936-c39a10fdeae7"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Expand Down
Loading

0 comments on commit c32211b

Please sign in to comment.