Is it possible to turn off "corner rounding" when using plot in matplotlib?
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-1, 1, 1001)
y = abs(x)
plt.plot(x, y, linewidth=10)
plt.show()
produces the image:

x does not resolve this issue.x=0 is included in the plot.The plotted curve above appears rounded at x=0 when the function is not.
You can specify a JoinStyle:
plt.plot(x, y, linewidth=10, solid_joinstyle='miter')

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With