\n",
+ " \n",
+ " \n",
+ "
\n",
+ " \n",
+ "
"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "h3 = [func(s) for s in path]\n",
+ "trace = go.Scatter3d(\n",
+ " x=h1, # <-- Put your data instead\n",
+ " y=h2, # <-- Put your data instead\n",
+ " z=h3, # <-- Put your data instead\n",
+ " mode='markers',\n",
+ " marker={\n",
+ " 'size': 5,\n",
+ " 'opacity': 0.8,\n",
+ " }\n",
+ ")\n",
+ "\n",
+ "#Configure the layout.\n",
+ "layout = go.Layout(\n",
+ " margin={'l': 0, 'r': 0, 'b': 0, 't': 0}\n",
+ ")\n",
+ "\n",
+ "data = [trace]\n",
+ "\n",
+ "plot_figure = go.Figure(data=data, layout=layout)\n",
+ "\n",
+ "# Render the plot.\n",
+ "plotly.offline.iplot(plot_figure)\n",
+ "\n",
+ "#fig = plt.figure()\n",
+ "#ax = plt.axes(projection='3d')\n",
+ "#ax.scatter3D(h1, h2, h3, c=h3, cmap='Greens');\n",
+ "#plt.show()"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.8.2"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 4
+}