I am using PyCharm 2023.2.3 and Python 3.12. The following code
import matplotlib.pyplot as plt
import numpy as np
xs = np.array([100, 500])
ys = np.array([300, 800])
plt.plot(xs, ys)
plt.show()
gives me the following output:
Every time I try to reinstall and run matplotlib again, it keeps showing the same issue.
I am using PyCharm 2023.2.3 and Python 3.12. The following code
import matplotlib.pyplot as plt
import numpy as np
xs = np.array([100, 500])
ys = np.array([300, 800])
plt.plot(xs, ys)
plt.show()
gives me the following output:
Every time I try to reinstall and run matplotlib again, it keeps showing the same issue.
Share Improve this question edited Jan 21 at 9:20 rbaleksandar 9,68110 gold badges94 silver badges180 bronze badges asked Jan 20 at 5:48 Aleksandr ErshovAleksandr Ershov 111 bronze badge 3 |1 Answer
Reset to default 0Perhaps you can try to use Py-Plot's object-oriented environment, by substituting as follows:
import matplotlib.pyplot as plt
import numpy as np
xs = np.array([100, 500])
ys = np.array([300, 800])
fig, ax = plt.subplots() ax.plot(xs,ys)
I dont know if it will help you, but I have also had trouble with my graphs coming out all ascii-art like.
PIL
(Pillow) or similar library? – rbaleksandar Commented Jan 20 at 5:50