About 5,790,000 results
Open links in new tab
  1. 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...

  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. python - Plotting a 2D heatmap - Stack Overflow

    Oct 16, 2022 · Using Matplotlib, I want to plot a 2D heat map. My data is an n-by-n Numpy array, each with a value between 0 and 1. So for the (i, j) element of this array, I want to plot a square at the (i, j)

  4. python - ImportError: No module named matplotlib.pyplot - Stack …

    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 …

  5. python - How to plot multiple bars grouped - Stack Overflow

    How to plot multiple bars in matplotlib, when I tried to call the bar function multiple times, they overlap and as seen the below figure the highest value red can be seen only. How can I plot the

  6. python - Adding a matplotlib legend - Stack Overflow

    How can one create a legend for a line graph in Matplotlib's PyPlot without creating any extra variables? Please consider the graphing script below: if __name__ == '__main__': PyPlot.plot(length,

  7. python - surface plots in matplotlib - Stack Overflow

    I have a list of 3-tuples representing a set of points in 3D space. I want to plot a surface that covers all these points. The plot_surface function in the mplot3d package requires as arguments X,...

  8. python - multiple axis in matplotlib with different scales - Stack Overflow

    How can multiple scales can be implemented in Matplotlib? I am not talking about the primary and secondary axis plotted against the same x-axis, but something like many trends which have different ...

  9. python - how to adjust x axis in matplotlib - Stack Overflow

    Mar 31, 2017 · I have a graph like this The data on the x axis means hours, so I want the x axis to set as 0, 24, 48, 72.....instead of the value now, which is difficult to see the data between [0,100] fig1 = plt.

  10. How to plot vectors in python using matplotlib - Stack Overflow

    How to plot vectors in python using matplotlib Asked 8 years, 10 months ago Modified 1 year, 11 months ago Viewed 282k times