Dear Code::Blocks users and developers,

I'm looking for the right platform to ask my question but it turns to be quite difficult. It concerns the koolplot plugin implemented in Code::blocks EP, which enables to print graphs easily from C code. More information >>

here <<.

My question is simple. How to specify to koolplot functions a "spline" function, that is, a function which follows different expressions in different ranges? For example, from x=-6 to x=-4, I want a kind of minus inverse function, then from -4 to -3 I want a linear function, and from -3 to 0 I want a constant function (horizontal line). How to specify such thing to Plotdata or whatever so it displays only one function with these 3 behaviors?

I tried to put several functions and to use breakplot, but I couldn't specify the range in which each function is defined, so for example I had the minus inverse function, the linear function and the horizontal line superimposed from -6 to 0.

Any help would be greatly appreciated.