Plots.jl atrribute for full border

plotting
#1

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

0 Likes

#2

Look at plotattr(framestyle)

0 Likes

#3

Thanks!

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

1 Like

#4

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

0 Likes

#5

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.

0 Likes