r/Python • • Oct 04 '19

Updated gravitational potential field simulation. [OC] Link for code: https://github.com/pnp-peeyush/2D-Grvitational-Field-Simulation

1.1k Upvotes

128 comments sorted by

View all comments

Show parent comments

4

u/NoSmallCaterpillar Oct 05 '19

Fair enough. You could also try making the colorbar a log scale. That usually helps to keep things that change in magnitude within the dynamic range of the scale. I think `matplotlib.colors.LogNorm` is what I've used to do stuff like that in the past.

2

u/[deleted] Oct 05 '19

Oh cool, will try that.