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

    Mar 27, 2015 · 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: Picking a arbitrary index pair from …

  2. matplotlib - How to plot a 2d matrix in python with colorbar? (like ...

    I already know how to plot a 2d matrix (numpy array): from matplotlib.pyplot import imshow import numpy as np data = np.random.random((10,10)) imshow(np.asarray(img)) but I don't know …

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

    May 11, 2013 · Basically I want to make phase plots, so assuming I have a 2d array, how can I get matplotlib to convert this to a plot that I can attach titles, axes, and legends (color bars) to. …

  4. python - display matrix values and colormap - Stack Overflow

    Nov 30, 2016 · I need to display values of my matrix using matshow. However, with the code I have now I just get two matrices - one with values and other colored. How do I impose them? …

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

    Oct 16, 2022 · 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 …

  6. 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 …

  7. python - Make a 2D pixel plot with matplotlib - Stack Overflow

    I would like to prepare kind of a 2D plot with matplotlib, with 100x100 pixels, where each pixel gets a colour (rainbow colors going from red to violet, from the minimum to the maximum values of …

  8. numpy - plotting a 2D matrix in python, code and most useful ...

    Apr 5, 2011 · The key thing to consider is whether you have important structure along both dimensions in the matrix. If you do then it's worth trying a colored matrix plot (e.g., imshow), …

  9. python - How do I convert a numpy array to (and display) an …

    The Python Imaging Library can display images using Numpy arrays. Take a look at this page for sample code: Convert Between Numerical Arrays and PIL Image Objects; EDIT: As the note …

  10. Python: Creating a 2D histogram from a numpy matrix

    I'm new to python. I have a numpy matrix, of dimensions 42x42, with values in the range 0-996. I want to create a 2D histogram using this data. I've been looking at tutorials, but they all seem …

Refresh