I've been trying to place this plot to up left corner but it doesn't work.
p.s pos variable doesn't work.
how to add that to the top-left corner?
my code :
value = objective([pt[0], pt[1]])
function_values.append(value)
if arrow:
plt.remove(arrow)
if len(Xi) > 1:
arrow = vd.Arrow(Xi[-2,:], Xi[-1,:], s=0.001, c='orange5')
plt.add(arrow)
if graph_plot is None:
graph_plot = plot(function_values, '-o',pos=(0.05, 0.9), c='red')
plt.add(graph_plot)
else:
# Remove the existing plot
if old_graph:
plt.remove(old_graph)
new_graph = plot(function_values,pos=(0.05, 0.9), c='red')
old_graph = new_graph.clone2d() # maybe manage the clone separately
# plt.add(new_graph)
plt.add(old_graph)