Skip to content

How to update ui.plot? #55

Closed Answered by falkoschindler
korenmolcho asked this question in Q&A
Discussion options

You must be logged in to vote

You need to change two things:

  1. Modify the axes within a with plot: context.
  2. Don't forget to add plot as an argument to ui.update.
def changeChart():
    with plot:
        ax.set_ylabel('abc')
    ui.update(plot)

I have to admit: That's not very intuitive. At least step 2 could be done automatically when leaving the plot context. We might change that in a future release.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@korenmolcho
Comment options

Answer selected by korenmolcho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants