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

Look at plotattr(framestyle)

Thanks!

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

1 Like

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

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.

1 Like

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

1 Like