About 118,000 results
Open links in new tab
  1. python - Best way to plot a 2d contour plot with a numpy …

    May 20, 2019 · i'm looking for the best way to create a contour plot using a numpy meshgrid. I have excel data in columns simplyfied looking like this: The x and y values define a 2d plane …

  2. matplotlib.pyplot.contour — Matplotlib 3.10.1 documentation

    contour and contourf use a marching squares algorithm to compute contour locations. More information can be found in ContourPy documentation . Examples using …

  3. contour(X, Y, Z) — Matplotlib 3.10.1 documentation

    Plot contour lines. See contour . import matplotlib.pyplot as plt import numpy as np plt . style . use ( '_mpl-gallery-nogrid' ) # make data X , Y = np . meshgrid ( np . linspace ( - 3 , 3 , 256 ), np . …

  4. python - Plotting contours over pcolormesh data - Stack Overflow

    Dec 21, 2015 · hist, X, Y = np.histogram2d(x, y, bins=nbins, weights=weights) x_grid, y_grid = np.meshgrid(X,Y) return hist, x_grid, y_grid. When I plot only the output of pcolormesh, …

  5. python - Most efficient way to plot finite element mesh using ...

    Apr 18, 2019 · Second, use matplotlib.pyplot.triplot(triangulation, linespec) to plot just the mesh (lines only), where: triangulation is the instance created by matplotlib.tri.Triangulation(x, y, …

  6. Creating a Contour Map Using Python PyVista - GeeksforGeeks

    Jul 26, 2024 · In this article, we'll explore how to create a contour map using PyVista, specifically within a Google Colab environment. 3D Visualization: Simple tools for creating complex 3D …

  7. Best way to plot a 2d contour plot with a numpy meshgrid in Python

    Learn the best way to create 2D contour plots in Python using numpy meshgrid. This comprehensive guide covers contour plot basics, customizations, and advanced features.

  8. Contour Plot using Matplotlib – Python | GeeksforGeeks

    Apr 21, 2020 · The matplotlib.pyplot.contour() are usually useful when Z = f(X, Y) i.e Z changes as a function of input X and Y. A contourf() is also available which allows us to draw filled …

  9. Contour plots in Python & matplotlib: Easy as X-Y-Z

    The most difficult part of using the Python/matplotlib implementation of contour plots is formatting your data. In this post, I’ll give you the code to get from a more traditional data structure to the …

  10. Python Plotting Simplified: Understanding Meshgrid and Contourf

    Jan 11, 2024 · Do you know that the X_mesh, Y_mesh = np.meshgrid(X, Y); plt.contourf(X_mesh, Y_mesh, C.T) and Y_mesh, X_mesh = np.meshgrid(Y, X); plt.contourf(X_mesh, Y_mesh, C) …

  11. Some results have been removed
Refresh