ObjectProfile / Roassal3

The Roassal Visualization Engine
MIT License
97 stars 52 forks source link

Multiple calls to show after modifications #558

Open DurieuxPol opened 1 year ago

DurieuxPol commented 1 year ago

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:

akevalion commented 1 year ago

moved to pharo-graphics/Roassal