- #1
- 2,168
- 193
I am have couple of datas and when I plot them I am running out of linestyles. I have found couple of **parametrized linestyles** in this site, but somehow I cannot implement them.
https://matplotlib.org/3.3.1/gallery/lines_bars_and_markers/linestyles.html
Can someone show me what should I do put in this line of code to obtain those linestyles?
plt.plot(x, y, color = "magenta", linestyle = "-")
here is a sample code
https://matplotlib.org/3.3.1/gallery/lines_bars_and_markers/linestyles.html
Can someone show me what should I do put in this line of code to obtain those linestyles?
plt.plot(x, y, color = "magenta", linestyle = "-")
here is a sample code
Python:
import matplotlib.pyplot as plt
from numpy import linspace
x = linspace(0, 10, 100)
y = x**2
plt.plot(x, y, color = "magenta", linestyle = "-")
plt.grid()
plt.show()
Last edited: