Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
project3_omw
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wouter Kessels
project3_omw
Commits
f1892ea6
Commit
f1892ea6
authored
May 22, 2019
by
Olaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create energy plot
parent
283d1b9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
plotf.py
plotf.py
+4
-0
No files found.
plotf.py
View file @
f1892ea6
...
...
@@ -31,6 +31,9 @@ def plots(file, settings_passed):
# Trajectories
trajectory
(
bodies
,
settings_passed
,
inds
=
settings_passed
.
plot
.
inds
)
# Energies
plot_energy
(
bodies
,
settings_passed
)
# plot_eccentricity(semi_major_axis, e)
...
...
@@ -140,6 +143,7 @@ def plot_energy(bodies, settings):
plt
.
xlabel
(
'time $[y_J]$'
,
fontsize
=
settings
.
plot
.
fontsize_title
)
plt
.
ylabel
(
'Energy'
,
fontsize
=
settings
.
plot
.
fontsize_title
)
plt
.
title
(
'Energy'
)
plt
.
legend
(
loc
=
'upper right'
,
fontsize
=
settings
.
plot
.
fontsize_legend
)
plt
.
show
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment