In [1]:
from xv.km.plotting import SystemOfBodies
In [2]:
s = SystemOfBodies(('A -10 0', 'B 10 0' ))
In [3]:
s.replot()
s.plot('A B', 'AB')
In [4]:
s.replot()
s.plot('A B', 'AB', plotType = 'circle', color = 'red')
In [5]:
s.addPoints('N 0 -10')
In [6]:
s.replot()
s.plot('A B','AB', plotType = 'circle')
s.plot('N','N', plotType = 'circle', radius = 4 )
In [7]:
s.addPoints('C 0 -4', overwrite = True)
In [8]:
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 [9]:
s.addPoints('S 0 -40')
In [10]:
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 [11]:
s.addPoints('L -16 8', overwrite = True)
In [12]:
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 [13]:
s.addPoints('R 16 8')
In [14]:
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 [15]:
s.addPoints('D -20 -60')
In [16]:
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 [17]:
s.addPoints('W 20 -60')
In [18]:
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 )
In [19]:
s.addPoints(('A1 45 0', 'B1 55 0'))
In [20]:
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 )
s.plot('A1 B1', plotType = 'circle')
In [21]:
s.addPoints(('N1 50 -10'))
In [22]:
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 )
s.plot('A1 B1', plotType = 'circle')
s.plot('N1', plotType = 'circle', radius = 4 )
In [23]:
s.addPoints('F1 50 -4')
In [25]:
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 )
s.plot('A1 B1', plotType = 'circle')
s.plot('N1', plotType = 'circle', radius = 4 )
s.plot('F1', plotType = 'circle', radius = 12 )
In [29]:
s.addPoints('S1 50 -35', overwrite = True)
In [30]:
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 )
s.plot('A1 B1', plotType = 'circle')
s.plot('N1', plotType = 'circle', radius = 4 )
s.plot('F1', plotType = 'circle', radius = 12 )
s.plot('S1', plotType = 'circle', radius = 18 )
In [33]:
s.addPoints(('E1 35 0','E2 65 0') , 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 )
s.plot('R', plotType = 'circle', radius = 4 )
s.plot('D', plotType = 'circle', radius = 6 )
s.plot('W', plotType = 'circle', radius = 6 )
s.plot('A1 B1', plotType = 'circle')
s.plot('N1', plotType = 'circle', radius = 4 )
s.plot('F1', plotType = 'circle', radius = 12 )
s.plot('S1', plotType = 'circle', radius = 18 )
s.plot('E1', plotType = 'circle', radius = 3 )
s.plot('E2', plotType = 'circle', radius = 3 )
In [35]:
s.addPoints(('L1 35 -50','L2 65 -50') , overwrite = True)
In [36]:
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 )
s.plot('A1 B1', plotType = 'circle')
s.plot('N1', plotType = 'circle', radius = 4 )
s.plot('F1', plotType = 'circle', radius = 12 )
s.plot('S1', plotType = 'circle', radius = 18 )
s.plot('E1', plotType = 'circle', radius = 3 )
s.plot('E2', plotType = 'circle', radius = 3 )
s.plot('L1', plotType = 'circle', radius = 6 )
s.plot('L2', plotType = 'circle', radius = 6 )
In [45]:
s.addPoints(('H1 20 40', 'H2 -50 0', 'H3 90 0'), overwrite = True)
In [46]:
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 )
s.plot('A1 B1', plotType = 'circle')
s.plot('N1', plotType = 'circle', radius = 4 )
s.plot('F1', plotType = 'circle', radius = 12 )
s.plot('S1', plotType = 'circle', radius = 18 )
s.plot('E1', plotType = 'circle', radius = 3 )
s.plot('E2', plotType = 'circle', radius = 3 )
s.plot('L1', plotType = 'circle', radius = 6 )
s.plot('L2', plotType = 'circle', radius = 6 )
s.plot('H1H2', 'H1 H2', plotType = 'line')
s.plot('H1H3', 'H1 H3', plotType = 'line')
In [47]:
s.addPoints(('H4 -50 -90', 'H5 90 -90'), overwrite = True)
In [52]:
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 )
s.plot('A1 B1', plotType = 'circle')
s.plot('N1', plotType = 'circle', radius = 4 )
s.plot('F1', plotType = 'circle', radius = 12 )
s.plot('S1', plotType = 'circle', radius = 18 )
s.plot('E1', plotType = 'circle', radius = 3 )
s.plot('E2', plotType = 'circle', radius = 3 )
s.plot('L1', plotType = 'circle', radius = 6 )
s.plot('L2', plotType = 'circle', radius = 6 )
s.plot('H1', 'H1')
s.plot('H2', 'H2')
s.plot('H3', 'H3')
s.plot('H1H2', 'H1 H2', plotType = 'line')
s.plot('H1H3', 'H1 H3', plotType = 'line')
s.plot('H1H3', 'H1 H3', plotType = 'line')
s.plot('H4', 'H4')
s.plot('H5', 'H5')
s.plot('H2H4', plotType = 'line')
s.plot('H3H5', plotType = 'line')
s.plot('H4H5', plotType = 'line')