I want to put a marker on the numbers 1, 2, 3, 4 , 5, 6 which I repeat from numpy arrange. Here, and here it is already there for learning materials, but it doesn't work as well as I want.
Can anyone help me with this problem, any kind of help will be highly appreciated.
This is my code
import numpy as np
from sympy import symbols, plot
from sympy.plotting import plot
from sympy import *
x = symbols("x")
init_printing(use_unicode=True)
ekpr = x**2
a = np.arange(1, 7, 1)
for sol in a:
if sol <= 6:
print(sol)
plot(
ekpr.rewrite(Add), xlim=[0, 8],
markers=[{
"args": [sol, [0], a], # coordinates of the point
"marker": "o" # the type of marker to use
}]
)
Why is it that only one coordinate point is all blue? And I expect the coordinates to be all blue following the number 6