https://bugs.kde.org/show_bug.cgi?id=431631

--- Comment #3 from Alexander Semke <alexander.se...@web.de> ---
(In reply to H.H. from comment #2)
> Thanks. Yes, for the plot background.
> 
> But also very helpful would be under a math-function:
> - you define percentual gradient offsets for each color
> - then the gradient is plottet below a curve
> - the y-value defines the length of the gradient and the offsets are adapted
> for each y-value
> 
> You understand what I mean? For example I have a biological norm-value-curve
> (y) in dependency of age (x), and like to indicate good and bad with green,
> yellow and red along the curve.
Yes. This would be something similar what is being discussed here
https://stackoverflow.com/a/31699594 for matlab. Here the color is set based on
a third value but in principle it can also be similarly set based on the
y-value.


> I fear, that would be nearly impossible to implement in svg-export? But
> perhaps at least as raster-graphics?
At the moment we're drawing the curve as one single "graphics path" which is
constructed out of many lines - the lines connecting the evaluated data points.
If we want to allow multiple colors for the curve line based on the use
specified color palette (or "gradient"), we'll need to draw the interpolating
lines having separately colors separately. In the SVG export you'll get then
multiple line objects.

I think this feature is kind of trivial and we had already this request in the
past. We should implement it in near feature.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to