Reputation:
I want to set coordinate axes limits in the plotlyjs.jl. The code is as follows:
plot(scattergl(x = MatPointCoords[:,1,40], y = MatPointCoords[:,2,40], mode="markers") )
I cannot find any thing in the julia documentation related to this. Any help is appreciated.
Also, I want to animate the plot for last index in MatPointCoords. How can I do it? Julia plots documentation is not being very helpful in this too.
Upvotes: 0
Views: 807
Reputation: 820
The axes limits are set in layout:
plot(scattergl(x = MatPointCoords[:,1,40], y = MatPointCoords[:,2,40],
mode="markers"),
Layout(xaxis_range=[a, b], yaxis_range=[c,d])
For animation see this example: https://discourse.julialang.org/t/plotlyjs-jl-animation/70058/3
Upvotes: 1