In [1]:
from xv.km.plotting import SystemOfBodies
In [10]:
s = SystemOfBodies(('A -10 0', 'B 10 0' ))
In [14]:
s.replot()
s.plot('A B', 'AB')
In [15]:
s.replot()
s.plot('A B', 'AB', plotType = 'circle', color = 'red')
In [16]:
s.addPoints('N 0 -10')
In [17]:
s.replot()
s.plot('A B','AB', plotType = 'circle')
s.plot('N','N', plotType = 'circle', radius = 4 )
In [23]:
s.addPoints('C 0 -4', overwrite = True)
In [24]:
s.replot()
s.plot('A B','AB', plotType = 'circle')
s.plot('N','N', plotType = 'circle', radius = 4 )
s.plot('C','C', plotType = 'circle', radius = 15 )
In [25]:
s.addPoints('S 0 -40')
In [27]:
s.replot()
s.plot('A B', plotType = 'circle')
s.plot('N', plotType = 'circle', radius = 4 )
s.plot('C', plotType = 'circle', radius = 15 )
s.plot('S', plotType = 'circle', radius = 22 )
In [33]:
s.addPoints('L -16 8', overwrite = True)
In [34]:
s.replot()
s.plot('A B', plotType = 'circle')
s.plot('N', plotType = 'circle', radius = 4 )
s.plot('C', plotType = 'circle', radius = 15 )
s.plot('S', plotType = 'circle', radius = 22 )
s.plot('L', plotType = 'circle', radius = 4 )
In [35]:
s.addPoints('R 16 8')
In [37]:
s.replot()
s.plot('A B', plotType = 'circle')
s.plot('N', plotType = 'circle', radius = 4 )
s.plot('C', plotType = 'circle', radius = 15 )
s.plot('S', plotType = 'circle', radius = 22 )
s.plot('L', plotType = 'circle', radius = 4 )
s.plot('R', plotType = 'circle', radius = 4 )
In [38]:
s.addPoints('D -20 -60')
In [40]:
s.replot()
s.plot('A B', plotType = 'circle')
s.plot('N', plotType = 'circle', radius = 4 )
s.plot('C', plotType = 'circle', radius = 15 )
s.plot('S', plotType = 'circle', radius = 22 )
s.plot('L', plotType = 'circle', radius = 4 )
s.plot('R', plotType = 'circle', radius = 4 )
s.plot('D', plotType = 'circle', radius = 6 )
In [41]:
s.addPoints('W 20 -60')
In [42]:
s.replot()
s.plot('A B', plotType = 'circle')
s.plot('N', plotType = 'circle', radius = 4 )
s.plot('C', plotType = 'circle', radius = 15 )
s.plot('S', plotType = 'circle', radius = 22 )
s.plot('L', plotType = 'circle', radius = 4 )
s.plot('R', plotType = 'circle', radius = 4 )
s.plot('D', plotType = 'circle', radius = 6 )
s.plot('W', plotType = 'circle', radius = 6 )