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

Multiple calls to show after modifications #558

Open
DurieuxPol opened this issue Jun 15, 2023 · 1 comment
Open

Multiple calls to show after modifications #558

DurieuxPol opened this issue Jun 15, 2023 · 1 comment
Labels

Comments

@DurieuxPol
Copy link
Contributor

DurieuxPol commented Jun 15, 2023

If I set up a chart and show it, then modify it and show it again, there are 2 windows. If I modify the canvas in one of them, like I zoom in, it modifies the other as well. Also the 2 versions of the chart are superposed.

arr := {-1. 0. 1. 4. 6. 7}.
chart := RSChart new.
chart horizontalTick locator: (RSFixedLocator new ticks: arr).
x := 0 to: 6 by: 0.1.
y := x sin.
chart addPlot: (RSLinePlot new x: x y: y).
chart show.
arr2 := { 2. 3. 5 }.
chart horizontalTick locator ticks: arr2.
chart show

image

To my mind, there should either be:

  • one window, and it should show only the lastest version of the chart
  • two windows, with both showing their respective version of the chart
@akevalion
Copy link
Contributor

moved to pharo-graphics/Roassal

@akevalion akevalion reopened this Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants