About 4,910,000 results
Open links in new tab
  1. python - Plotting a list of (x, y) coordinates - Stack Overflow

    192 I have a list of pairs (a, b) that I would like to plot with matplotlib in python as actual x-y coordinates. Currently, it is making two plots, where the index of the list gives the x-coordinate, …

  2. How to plot a single point in matplotlib - Stack Overflow

    31 matplotlib.pyplot.plot and matplotlib.axes.Axes.plot plots y versus x as lines and/or markers. ax.plot(105, 200) attempts to draw a line, but two points are required for a line plt.plot([105, …

  3. Multiple datasets on the same scatter plot - Stack Overflow

    Although accepted answer works good but with matplotlib version 2.1.0, it is pretty straight forward to have two scatter plots in one plot without using a reference to Axes

  4. python - plot a circle with Matplotlib.pyplot - Stack Overflow

    surprisingly I didn't find a straight-forward description on how to draw a circle with matplotlib.pyplot (please no pylab) taking as input center (x,y) and radius r. I tried some variants of this:

  5. How to show labels on matplotlib plots - Stack Overflow

    3 If you want to show the labels next to the lines, there's a matplotlib extension package matplotx (can be installed via pip install matplotx[all]) that has a method that does that.

  6. How to add hovering annotations to a plot - Stack Overflow

    I am using matplotlib to make scatter plots. Each point on the scatter plot is associated with a named object. I would like to be able to see the name of an object when I hover my cursor …

  7. How do I plot in real-time in a while loop? - Stack Overflow

    I am trying to plot some data from a camera in real time using OpenCV. However, the real-time plotting (using matplotlib) doesn't seem to be working. I've isolated the problem into this simple …

  8. Dynamically updating plot in matplotlib - Stack Overflow

    Jun 8, 2012 · Is there a way in which I can update the plot just by adding more point [s] to it... There are a number of ways of animating data in matplotlib, depending on the version you …

  9. python - How to plot in multiple subplots - Stack Overflow

    Create an array of Axes with matplotlib.pyplot.subplots and then pass axes[i, j] or axes[n] to the ax parameter. This option uses pandas.DataFrame.plot, but can use other axes level plot calls as …

  10. Plot a bar plot from a Pandas DataFrame - Stack Overflow

    python pandas dataframe matplotlib plot edited Mar 16, 2023 at 18:37 cottontail 25.7k 25 187 177