About 2,300,000 results
Open links in new tab
  1. python - How to install matplotlib - Stack Overflow

    Matplotlib supports python 3.x as of version 1.2, released in January, 2013. To install it, have a look at the installation instructions. In general, call pip install matplotlib or use your preferred …

  2. 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: import …

  3. How to set the axis limits in Matplotlib? - Stack Overflow

    One thing you can do is to set your axis range by yourself by using matplotlib.pyplot.axis. matplotlib.pyplot.axis. from matplotlib import pyplot as plt plt.axis([0, 10, 0, 20]) 0,10 is for x …

  4. matplotlib - set ticks with logarithmic scale - Stack Overflow

    Mar 20, 2017 · To make a semi-log plot with x-scale logarithmic, there are two options: import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.plot(x,y) ax.set_xscale('log')

  5. python - Importing Matplotlib - Stack Overflow

    Jan 31, 2017 · from matplotlib import pyplot as plt is the same as. import matplotlib.pyplot as plt and means that you are importing the pyplot module of matplotlib into your namespace under …

  6. matplotlib - Python - How to show graph in Visual Studio Code …

    Apr 24, 2018 · import matplotlib.pyplot as plt import matplotlib as mpl import numpy as np x = np.linspace(0, 20, 100) plt.plot(x, np.sin(x)) plt.show() I see the result in a new window. Is …

  7. Matplotlib: Display value next to each point on chart

    Sep 9, 2018 · Matplotlib: how to add a ytick label (or other label that can do the job) at a given point? Hot Network Questions Creepy situation: I'm staying at a hotel, but my hosts …

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

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

  9. matplotlib - Use a loop to plot n charts Python - Stack Overflow

    The above was not remotely what i wanted and it stems from my unfamiliarity with Pandas, MatplotLib etc, looking at some documentation though to me it looks like matplotlib is not even …

  10. matplotlib: colorbars and its text labels - Stack Overflow

    import matplotlib.pyplot as plt import numpy as np from matplotlib.colors import ListedColormap #discrete ...