About 121,000 results
Open links in new tab
  1. how to plot two-dimension array in python? - Stack Overflow

    Mar 27, 2015 · A few things: 1) Python does not have the 2D, f[i,j], index notation, but to get that you can use numpy. Picking a arbitrary index pair from your example: import numpy as np f = …

  2. python - Colorplot of 2D array matplotlib - Stack Overflow

    May 11, 2013 · Here is the simplest example that has the key lines of code: import numpy as np import matplotlib.pyplot as plt H = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11 ...

  3. Plot 2-dimensional NumPy array using specific columns

    Jan 23, 2016 · I have a 2D numpy array that's created like this: data = np.empty((number_of_elements, 7)) Each row with 7 (or whatever) floats represents an …

  4. How to scatter plot 2d array in Python - Stack Overflow

    Feb 23, 2021 · Assuming that the array is X: import matplotlib.pyplot as plt plt.scatter(X[:, 0], X[:, 1]) plt.show() plt.scatter() has many addional options, see the documentation for details. …

  5. python - Plotting a 2D heatmap - Stack Overflow

    Using Matplotlib, I want to plot a 2D heat map. My data is an n-by-n Numpy array, each with a value between 0 and 1. So for the (i, j) element of this array, I want to plot a square at the (i, j)

  6. Plotting a 2D array with matplotlib.imshow - Stack Overflow

    Jan 28, 2016 · The np.array that results from this loop has 4383 rows and 6 columns. I have tried without success to use pylab.imshow() from matplotlib (pylab) to display the array. The …

  7. python - How to plot a smooth 2D color plot for z = f (x, y) - Stack ...

    May 28, 2015 · I am trying to plot 2D field data using matplotlib. So basically I want something similar to this: In my actual case I have data stored in a file on my harddrive. However for …

  8. python - Plotting a 2d Array with mplot3d - Stack Overflow

    Mar 27, 2014 · I have a 2D numpy array and I want to plot it in 3D. I heard about mplot3d but I cant get to work properly Here's an example of what I want to do. I have an array with the …

  9. python - Plotting a 2D Array with Matplotlib - Stack Overflow

    Nov 5, 2012 · Well, basically I want to know the difference in behaviour of those two methods. I stared at the plot for a while and found one grid line that had a distinctive shape. By plotting it, …

  10. How to plot an array in python? - Stack Overflow

    Feb 14, 2017 · I follow this links How to append many numpy files into one numpy file in python to put all my numpy files in one file. Now, I need to plot my file which contains many arrays, each …

Refresh