Reputation: 21
I'm trying to plot a random walk in Pluto after following a Julia tutorial but I'm getting a very thin graph (the height is very small).
The code I'm running is Plot(walk, Layout(yaxis_range=[-20,20], width=800, height=800))
and walk is a random walk and so is a list of integers like [0,1,0,1,2,1,0,...,-17,-18,..]
.
I tried looking in many places and followed some recommended solutions for issues with plotly in julia like updating the package and installing the GR
package but it doesn't seem to work.
Upvotes: 1
Views: 207
Reputation: 18217
As explained in the comment, the problem might be that the width=800, height=800
parameters are after Layout
call and in Plot
parameters, instead of being part of Layout
parameters.
So the call should look like:
Plot(walk(100), Layout(yaxis_range=[-20,20], width=800, height=800))
Upvotes: 1