Problems with ScatterView

I am trying to look at 2d data with ScatterView (or ScatterView2 or ScatterView3D) and getting errors trying the example codes in the help files. I get Class not defined for ScatterView and error about not understanding relativeOrigin_ for the 3D version. I’m running this on linux, fedora. Anyone able to run scatterview ? Any suggestions how I might dynamically graph 2D data ?


I just tried the examples, it works for me on Arch Linux and SuperCollider 3.13-dev. Anyway, I don’t think it works because I’m on the sc-dev version.

Are you sure you have MathLib Quark installed/updated? Just to make sure:


If this doesn’t work, could you please post the errors you get (and perhaps also the exact code you run)?

Oh, and in ScatterView example code, please ignore the first two lines:


These things are deprecated since long time and you shouldn’t run them.

MathLib is installed.
I am running

var data = 1000.collect{ [1.0.rand, exprand(0.01, 1)]};
w = Rect(40, 40, 800, 800)).front;
a = ScatterView(w, Rect(10, 10, 760, 760), data, [0,1].asSpec, [0,1].asSpec);
.symbolColor_(, 0.5)).symbolSize_(5)

and I get the following error:
arg this =
arg this = nil
arg error =
arg this =
arg error =
arg this =
arg this =
arg selector = ‘relativeOrigin_’
arg args = [*1]
arg this =
arg parent =
arg bounds =
arg data = [*1000]
arg argSpecX =
arg argSpecY =
var widthSpec = nil
var heightSpec = nil
var cross =
var possibleMethods = [*4]
< closed FunctionDef >
var data = [*1000]
arg this =
var res = nil
var func =
var code = “(
var data = 1000.collect{ […”
var doc = nil
var ideClass =
arg this =
^^ ERROR: Message ‘relativeOrigin_’ not understood.
Perhaps you misspelled ‘relativeOrigin’, or meant to call ‘relativeOrigin_’ on another receiver?

I see… I get this warning instead:

WARNING: Called from Object:relativeOrigin_, method Meta_AbsLayout:new is deprecated and will be removed.
The definition of 'Meta_AbsLayout:new' is to be found here: '/.../downloaded-quarks/wslib/wslib-classes/GUI/'

Do you have wslib installed? And what SC version are you running?

Thanks. Installing wslib resolved the matter. For future reference, Is there a way I could have identified such missing dependencies ?

Personally, I don’t know if there is any “missing dependencies” check… but Quarks.install("MathLib") should pull required dependencies automatically.

And you can run this script to see if any of your installed Quarks is missing dependencies:

Quarks.installed.collect { |q| -> q.dependencies.reject(_.isInstalled);

you’ll get an IdentityDictionary where keys are “dependent” quarks and values its missing dependencies.

FYI ScatterView has been fixed in MathLib so that wslib shouldn’t be needed anymore IIUC.

1 Like