Kernel: Python 3
In [1]:
In [2]:
kilogram
In [3]:
In [4]:
In [5]:
In [6]:
In [7]:
values | |
---|---|
success | True |
message | A termination event occurred. |
In [8]:
In [9]:
d | v | |
---|---|---|
61.000000 | 1219.1143114566005 meter | -74042.58746572041 meter / second |
62.000000 | 993.5263844032074 meter | -84425.25841874613 meter / second |
63.000000 | 731.7937189278599 meter | -101476.43675857506 meter / second |
64.000000 | 405.2796152048905 meter | -140568.79364469112 meter / second |
64.784597 | 6.357828776041667e-14 meter | -564836.071922193 meter / second |
In [10]:
In [11]:
In [12]:
In [13]:
In [14]:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-14-700bebde5cbe> in <module>
----> 1 plot_position_2d(results_2d)
<ipython-input-12-f290e9ab0611> in plot_position_2d(results)
8 ys.index /= 86400
9
---> 10 plt.plot(xs, ys,':', color = "blue")
11 plt.plot(0,0, color="yellow")
12
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/pyplot.py in plot(scalex, scaley, data, *args, **kwargs)
2793 return gca().plot(
2794 *args, scalex=scalex, scaley=scaley, **({"data": data} if data
-> 2795 is not None else {}), **kwargs)
2796
2797
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/axes/_axes.py in plot(self, scalex, scaley, data, *args, **kwargs)
1666 lines = [*self._get_lines(*args, data=data, **kwargs)]
1667 for line in lines:
-> 1668 self.add_line(line)
1669 self.autoscale_view(scalex=scalex, scaley=scaley)
1670 return lines
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/axes/_base.py in add_line(self, line)
1900 line.set_clip_path(self.patch)
1901
-> 1902 self._update_line_limits(line)
1903 if not line.get_label():
1904 line.set_label('_line%d' % len(self.lines))
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/axes/_base.py in _update_line_limits(self, line)
1922 Figures out the data limit of the given line, updating self.dataLim.
1923 """
-> 1924 path = line.get_path()
1925 if path.vertices.size == 0:
1926 return
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/lines.py in get_path(self)
1025 """
1026 if self._invalidy or self._invalidx:
-> 1027 self.recache()
1028 return self._path
1029
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/lines.py in recache(self, always)
668 if always or self._invalidx:
669 xconv = self.convert_xunits(self._xorig)
--> 670 x = _to_unmasked_float_array(xconv).ravel()
671 else:
672 x = self._x
/srv/conda/envs/notebook/lib/python3.7/site-packages/matplotlib/cbook/__init__.py in _to_unmasked_float_array(x)
1388 return np.ma.asarray(x, float).filled(np.nan)
1389 else:
-> 1390 return np.asarray(x, float)
1391
1392
/srv/conda/envs/notebook/lib/python3.7/site-packages/numpy/core/_asarray.py in asarray(a, dtype, order)
83
84 """
---> 85 return array(a, dtype, copy=False, order=order)
86
87
ValueError: setting an array element with a sequence.
In [15]:
File "<ipython-input-15-7bee5f225b63>", line 2
r =
^
SyntaxError: invalid syntax
In [16]:
Help on function plot in module modsim.modsim:
plot(*args, **options)
Makes line plots.
args can be:
plot(y)
plot(y, style_string)
plot(x, y)
plot(x, y, style_string)
options are the same as for pyplot.plot
In [0]: