About 4,350,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. python - How to remove xticks from a plot - Stack Overflow

    from matplotlib import pyplot as plt plt.xticks([]) This snippet might help in removing the xticks and yticks both.

  3. 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, …

  4. 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

  5. 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:

  6. python - How to plot multiple pandas columns - Stack Overflow

    When using pandas.DataFrame.plot, it's only necessary to specify a column to the x parameter. The caveat is, the rest of the columns with numeric values will be used for y. The following …

  7. Save plot to image file instead of displaying it - Stack Overflow

    This displays the figure in a GUI: import matplotlib.pyplot as plt plt.plot([1, 2, 3], [1, 4, 9]) plt.show() But how do I instead save the figure to a file (e.g. foo.png)?

  8. python - How to draw a line with matplotlib? - Stack Overflow

    Apr 7, 2016 · I cannot find a way to draw an arbitrary line with matplotlib Python library. It allows to draw horizontal and vertical lines (with matplotlib.pyplot.axhline and …

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

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