#๐Ÿ”’ Plot Rendering

4 messages ยท Page 1 of 1 (latest)

ancient talon
#

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)
true nimbusBOT
#

@ancient talon

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

true nimbusBOT
#

@ancient talon

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.