You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the figure content could then be updated later by plotting onto its axes and subsequently calling canvas's draw(). After upgrading to the current version this snippet fails with
TraitError: Element of the 'children' trait of a Box instance must be a Widget, but a value of <matplotlib.backends.backend_agg.FigureCanvasAgg object at ...> <class 'matplotlib.backends.backend_agg.FigureCanvasAgg'> was specified.
Using the %matplotlib ipympl magic command, there is no such error message, but no plot gets rendered. Based on #39 my understanding was that the only difference between importing ipympl and using the magic command would be when the plot gets shown, but now I cannot seem to get either to work.
What is the preferred way to set up an interactive figure and retain control over its positioning?
The text was updated successfully, but these errors were encountered:
Thanks, commits fba1226 and 0b775d1 now demonstrate the use of the canvas as a widget in the example notebook.
The reason that the previous code snippet did not produce a plot remains unclear to me -- maybe similar to #45 -- but it works now after upgrading all the relevant modules.
The following code used to work in previous versions,
and the figure content could then be updated later by plotting onto its axes and subsequently calling canvas's draw(). After upgrading to the current version this snippet fails with
TraitError: Element of the 'children' trait of a Box instance must be a Widget, but a value of <matplotlib.backends.backend_agg.FigureCanvasAgg object at ...> <class 'matplotlib.backends.backend_agg.FigureCanvasAgg'> was specified.
Using the %matplotlib ipympl magic command, there is no such error message, but no plot gets rendered. Based on #39 my understanding was that the only difference between importing ipympl and using the magic command would be when the plot gets shown, but now I cannot seem to get either to work.
What is the preferred way to set up an interactive figure and retain control over its positioning?
The text was updated successfully, but these errors were encountered: