{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "\n# stem(x, y, z)\n\nSee `~mpl_toolkits.mplot3d.axes3d.Axes3D.stem`.\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import matplotlib.pyplot as plt\nimport numpy as np\n\nplt.style.use('_mpl-gallery')\n\n# Make data\nn = 20\nx = np.sin(np.linspace(0, 2*np.pi, n))\ny = np.cos(np.linspace(0, 2*np.pi, n))\nz = np.linspace(0, 1, n)\n\n# Plot\nfig, ax = plt.subplots(subplot_kw={\"projection\": \"3d\"})\nax.stem(x, y, z)\n\nax.set(xticklabels=[],\n yticklabels=[],\n zticklabels=[])\n\nplt.show()" ] } ], "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.13.2" } }, "nbformat": 4, "nbformat_minor": 0 }