Plots.jl atrribute for full border

Hello

Does anybody know the plot attribute for creating a border around the entire plot (here I need borders on the top and right without ticks, just the lines)trajectory

3 Likes

Look at plotattr(framestyle)

1 Like

Thanks!

For future reference thats: plot(xp, legend = :none, framestyle = :box)
trajectory

7 Likes

I actually dislike the borders on the left and right within the coordinates. So, xlims=(0, 1000) should remove them.

1 Like

Seeing this looking for something else, but fyi the “widen=false” attribute should also get rid of the extra space at the edges of the plot area.

2 Likes

widen=false saves my day. Thank you @BioTurboNick!

2 Likes