Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display into an existing cell should retain its size #322

Open
kpeeters opened this issue Nov 10, 2024 · 0 comments
Open

Display into an existing cell should retain its size #322

kpeeters opened this issue Nov 10, 2024 · 0 comments
Labels
bug An actual bug enhancement Not strictly a bug but more of a feature enhancement request

Comments

@kpeeters
Copy link
Owner

When updating a plot dynamically, as in the example below, the size of the image should
be kept at the size set by the user. Do not replace with the standard size on every frame.

from cdb.graphics.plot import *
import numpy as np
import time
out=0
for i in np.linspace(1.0, 4.0, 100):
   out=display(plot($\sin( @(i)*x )\cos(2 x)$, ($x$, -6.28, 6.28), samples=300, grid=True), out)
   time.sleep(0.01)
@kpeeters kpeeters added bug An actual bug enhancement Not strictly a bug but more of a feature enhancement request labels Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An actual bug enhancement Not strictly a bug but more of a feature enhancement request
Projects
None yet
Development

No branches or pull requests

1 participant