I am trying to understand how the camera attribute of plots works? The documentation says
Sets the view angle (azimuthal, elevation) for 3D plots
but I fail to visualize how I can set the view angle by specifying two numbers (rather than specifying the location of the camera and the angle at which it points).
My specific use case is to visualize the trajectories of replicator dynamics, which like on the 3D simplex. I want to view the plot from a camera angle so that the 3D simplex appears like a triangle but cannot figure out which coordinates to use for the camera attribute.
Here is the code:
juia> using DifferentialEquations, Plots
julia> pyplot()
julia> V(x,A,t) = x .* ( A*x .- x'*A*x)
V (generic function with 1 method)
julia> RPS = [0 -1. 1; 1 0 -1; -1 1 0]
3×3 Array{Float64,2}:
0.0 -1.0 1.0
1.0 0.0 -1.0
-1.0 1.0 0.0
julia> tspan = (0,50.)
(0, 50.0)
julia> prob = ODEProblem(V,x0,tspan,RPS)
ODEProblem with uType Array{Float64,1} and tType Float64. In-place: false
timespan: (0.0, 50.0)
u0: [0.2, 0.2, 0.6]
julia> sol = solve(prob);
julia> plot(sol, vars=(1,2,3))
julia> plot(sol, vars=(1,2,3), camera=(1,1)))