About 178,000 results
Open links in new tab
  1. Matplotlib - Plot Points with Random Values - Python Examples

    Learn how to plot points with randomly generated values using Matplotlib in Python. This step-by-step tutorial covers generating random data, customizing plots, and displaying results.

  2. matplotlib - Python: displaying random dots in coordinate system ...

    Oct 17, 2015 · This is the correct way to do this: import matplotlib.pyplot as plt import numpy as np N = 9 x = np.random.rand(N) y = np.random.rand(N) plt.scatter(x,y) plt.show() Random …

  3. python - How to plot randomly? - Stack Overflow

    Oct 24, 2020 · yes! you just plot your rose at lots of random points as sampled from your linked out question. first I've refactored the method so it returns size points uniformly sampled within …

  4. How to generate random colors in matplotlib? - Stack Overflow

    Feb 6, 2013 · I'm calling scatter inside a loop and want each plot a different color. scatter(X, Y, c=??) c: a color. c can be a single color format string, or a sequence of color specifications of …

  5. matplotlib.pyplot.plotMatplotlib 3.10.3 documentation

    matplotlib.pyplot.plot # matplotlib.pyplot.plot(*args, scalex=True, scaley=True, data=None, **kwargs) [source] # Plot y versus x as lines and/or markers. Call signatures:

  6. Plot Random Points Under Sine Curve in Python Matplotlib

    Jul 25, 2023 · Plotting random points under a sine curve is a fascinating visual exercise that demonstrates the versatility of Matplotlib in Python. By generating random points and …

  7. How to plot dots in matplotlib - Altcademy Blog

    Feb 2, 2024 · To plot a single dot, you need two pieces of information: the horizontal position (x-coordinate) and the vertical position (y-coordinate). In Matplotlib, you can use the plot function …

  8. Draw Dot Plot Using Python and Matplotlib | Proclus Academy

    Nov 25, 2022 · Let's write our own function to sketch dot plots using Python and Matplotlib. We'll also learn how to customize them with various options - the dot shape, size, color, and axes …

  9. Pyplot tutorial — Matplotlib 3.10.3 documentation

    Introduction to pyplot # matplotlib.pyplot is a collection of functions that make matplotlib work like MATLAB. Each pyplot function makes some change to a figure: e.g., creates a figure, creates …

  10. Python/Matplotlib: Randomly select "sample" scatter points for ...

    Apr 4, 2016 · Here is a possible solution to have a subset of your points identified with a different marker: """selects a subset of the data using ... return seq[:size] select_subset(points_y, …

  11. Some results have been removed
Refresh