About 311 results
Open links in new tab
  1. Plotting a 3d cube, a sphere and a vector - Stack Overflow

    I search how to plot something with less instruction as possible with Matplotlib but I don't find any help for this in the documentation. I want to plot the following things: a wireframe cube centered in 0 with a side length of 2; a "wireframe" sphere centered in 0 with a radius of 1; a point at coordinates [0, 0, 0]

  2. 3D plottingMatplotlib 3.10.3 documentation

    Plot contour (level) curves in 3D using the extend3d option. Project contour profiles onto a graph. Project contour profiles onto a graph. Filled contours. ... Michael Droettboom and the Matplotlib development team; 2012–2025 The Matplotlib development team. Created using Sphinx 8.2.3. Built from v3.10.3-2-g3b85ba4365.

  3. Plot 3D Sphere in Python Using Matplotlib - likegeeks.com

    Oct 20, 2024 · To create a 3D plot of the sphere, you can use Matplotlib plot_surface function: import matplotlib.pyplot as plt fig = plt.figure(figsize=(10, 10)) ax = fig.add_subplot(111, projection='3d') ax.plot_surface(x, y, z, cmap='viridis', alpha=0.8) ax.set_xlabel('X') ax.set_ylabel('Y') ax.set_zlabel('Z') ax.set_title('3D Sphere') ax.set_box_aspect((1 ...

  4. python - Plotting a sphere mesh with Matplotlib - Stack Overflow

    In Matplotlib, I want to draw a sphere with a mesh on its surface, divided into 30 degrees steps in spherical coordinates. The code: Produces the figure: However, I want the contours on the sphere to be smooth, rather than drawn directly between the plotted points.

  5. Plotting points on the surface of a sphere - Stack Overflow

    Aug 2, 2015 · I'm trying to generate a plot of a sphere, with some points plotted on the surface of the sphere. (Specifically the points are the Lebedev quadrature points) I want my plot to look similar to this one that I found online:

  6. 5 Best Ways to Plot Points on the Surface of a Sphere in ... - Finxter

    Mar 6, 2024 · When plotting on a sphere’s surface, the input includes spherical coordinates or Cartesian coordinates, and the desired output is a graphical representation of those points on the sphere. This article guides you through different methods …

  7. Rendering 3D Surfaces Using Parametric Equations in Python

    Jun 3, 2024 · To render 3D surfaces in Python we will use the following libraries: Matplotlib: A plotting library that provides tools for creating static, animated, and interactive visualizations. NumPy: A fundamental package for scientific computing in Python that is useful for creating and manipulating arrays. First, ensure you have these libraries installed.

  8. Plotting Points on the Surface of a Sphere in Python's Matplotlib

    May 15, 2021 · Learn how to plot points on the surface of a sphere using Python's Matplotlib library with this comprehensive guide.

  9. Visualizing 3D Spherical Data Using Matplotlib's plot_surface …

    Mar 23, 2025 · In this blog post, we'll explore how to generate a 3D plot of a spherical shell using Python's Matplotlib library. Suppose you have spherical coordinate data characterized by radial distances (r_sphere), polar angles (theta), and azimuthal angles (phi).

  10. python - Good-looking sphere in Matplotlib - Stack Overflow

    Dec 22, 2021 · I've been trying to plot a (3d) sphere with some curves on it using Matplotlib, but so far the my results are disappointing. I've tried with several RGB colors, opacities and colormaps, but the output is similar.

  11. Some results have been removed