ObjectProfile / Roassal3

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

Fixed Locator #556

Closed DurieuxPol closed 1 year ago

DurieuxPol commented 1 year ago

Added a new tick locator: FixedLocator. It places ticks at fixed positions. Example with the horizontal ticks:

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.

image

akevalion commented 1 year ago

Thanks for feedback