About 51 results
Open links in new tab
  1. python - Purpose of "%matplotlib inline" - Stack Overflow

    Mar 26, 2017 · %matplotlib is a magic function in IPython. I'll quote the relevant documentation here for you to read for convenience: IPython has a set of predefined ‘magic functions’ that you can call with a …

  2. ImportError: No module named matplotlib.pyplot [duplicate]

    Aug 12, 2013 · Traceback (most recent call last): File "./plot_test.py", line 3, in <module> import matplotlib.pyplot as plt ImportError: No module named matplotlib.pyplot Does python look for …

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

  4. python - Named colors in matplotlib - Stack Overflow

    What named colors are available in matplotlib for use in plots? I can find a list on the matplotlib documentation that claims that these are the only names: b: blue g: green r: red c: cyan m: mag...

  5. How to change the font size on a matplotlib plot - Stack Overflow

    How does one change the font size for all elements (ticks, labels, title) on a matplotlib plot? I know how to change the tick label sizes, this is done with: import matplotlib matplotlib.rc ('xti...

  6. How do I change the size of figures drawn with Matplotlib?

    How do I change the size of figure drawn with Matplotlib? import matplotlib.pyplot as plt plt.rcParams["figure.figsize"] = (20,3) This is very useful when you plot inline (e.g., with IPython …

  7. 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 matplotlib.pyplot.axvline, for exa...

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

    Learn how to manage colorbars and their text labels in matplotlib for effective data visualization and customization.

  9. Adding a y-axis label to secondary y-axis in matplotlib

    Apr 26, 2013 · Adding a y-axis label to secondary y-axis in matplotlib Ask Question Asked 13 years, 2 months ago Modified 4 years, 5 months ago

  10. Change y range to start from 0 with matplotlib - Stack Overflow

    import matplotlib.pyplot as plt f, ax = plt.subplots(1) xdata = [1, 4, 8] ydata = [10, 20, 30] ax.plot(xdata, ydata) plt.show(f) This shows a line in a graph with the y axis that goes from 10 to 30. While I am …