Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop grid from auto scaling with Julia plots

I'm making a gif using Julia Plots, however, as the frames progress the grid autoscales making it seem very jittery, if anyone knows if I can simply set the exact size of the grid such that it remains stagnant that would be a great help.

 scatter(planex, planey, markersize=1.2, aspect_ratio=:equal, xlims=(-2.5,2.5))

^ this is the line that plots x and y the values (planex and planey)

This is the gif generated, notice how its slightly resizing during certain frames

I tried setting the x-limits and aspect ratio expecting it to keep the frames from resizing. What resulted is that after a large amount of frames the image stops deforming but in earlier parts it still jitters.

like image 746
NaiDoeShacks Avatar asked Sep 12 '25 17:09

NaiDoeShacks


1 Answers

Have you tried also setting ylims?

like image 122
Benoit Pasquier Avatar answered Sep 14 '25 12:09

Benoit Pasquier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!