Skip to content

staadecker/Field-Lines

Repository files navigation

Field Lines

This Python script generates electric or gravitational field lines as shown in the pictures below.

To make your own graph simply edit the ITEMS constant in field_lines.py to include your own charges. You may want to edit some of the other constants like SIZE_OF_GRAPH in helper.py.

Electron and proton field line

Electron with bigger proton field line

Field lines for two protons

Many charges

About

Calculate and graph electric and gravitational field line diagrams

Resources

Stars

Watchers

Forks

Contributors

Languages