After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 338626 - Implement B-Splines interpolation.
Implement B-Splines interpolation.
Status: RESOLVED OBSOLETE
Product: libgoffice
Classification: Other
Component: Graphing / Charting
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Jean Bréfort
Jody Goldberg
: 698533 (view as bug list)
Depends on:
Blocks: 698533
 
 
Reported: 2006-04-15 16:58 UTC by Vladimir Chukharev
Modified: 2018-05-22 12:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PNG image of an example graph with different line types (8.58 KB, image/png)
2006-04-22 17:11 UTC, Vladimir Chukharev
  Details
stepwise connected plots (12.43 KB, patch)
2006-05-25 07:22 UTC, Jean Bréfort
reviewed Details | Review
enhanced patch (12.74 KB, patch)
2006-05-25 13:32 UTC, Jean Bréfort
none Details | Review
updated patch with preservation of old properties (12.37 KB, patch)
2006-05-25 15:17 UTC, Jean Bréfort
none Details | Review
patch using a string property to describe the interpolation. (13.55 KB, patch)
2006-05-26 19:33 UTC, Jean Bréfort
committed Details | Review

Description Vladimir Chukharev 2006-04-15 16:58:26 UTC
More XY chart subtypes are needed, at least similar to Stacked area 
(both for linear and spline interpolations) and Stacked columns 
(with 3 alignments of the columns). More general splines are also 
needed, for smoothing the curve. 

I want to repeat: Thank you for a great program!
Comment 1 Emmanuel Pacaud 2006-04-17 17:32:28 UTC
Could you tell us more about what you would like ?

Sample images would be great.
Comment 2 Vladimir Chukharev 2006-04-22 17:11:29 UTC
Created attachment 64113 [details]
PNG image of an example graph with different line types
Comment 3 Vladimir Chukharev 2006-04-22 17:24:13 UTC
Comment on attachment 64113 [details]
PNG image of an example graph with different line types

Sure.
Currently Gnumeric can make two types of XY lines in a plot, a straight line
connecting the points, and a bezier curve. You can also select if you want
the line and/or the points to be shown or not.

Other programs oriented on graphical data presentations
usually give wider range of the line types.
The attached PNG image shows a part of a graph
with 3 stepwise connections
of the data points with
color fill. The difference
between the lines is where the step happens:
on left point, in the middle, or on right point.

Three other lines are different nonlinear curves,
Spline, which goes via each point, and b-spline and Bezier, which do not obligatory go through a given point. Usually, these nonlinear lines can also use color fill.
Comment 4 Jean Bréfort 2006-05-02 11:23:13 UTC
Some comments:

* The stepwise connections are straightforward to implement. Just we need some available developer time (a very precious ingredient).

* The color fix gives a problem. Currently, we never have more than two fields used in styles. In XY plots, they are marker and line. If we add an area, we need a larger property page. The other way round would be to add the filling as a child, just as it was done for droplines.

* The various splines are interesting. IMHO, when they do not go through the points, they are more like trend lines (smoothed curves). There is a framework for that in HEAD. I do not know the maths behind these things, some links (or better, some code) would be welcome. The bezier curves I implemented some times ago are mainly artistic, but not really meaningful.
Comment 5 Jean Bréfort 2006-05-25 07:22:09 UTC
Created attachment 66173 [details] [review]
stepwise connected plots

This patch adds 4 new step plots, the three ones requested in this bug and one extra (using (y[i]+y[i+1])/2 as step height.
The appropriate icons are already on cvs.
Comment 6 Jean Bréfort 2006-05-25 07:31:49 UTC
Comment on attachment 66173 [details] [review]
stepwise connected plots

Hmm, may be the "default-style-has-lines" and "use-spline" properties should remain persistent, otherwise older gnumeric versions will not load properly the new files when there are no lines or for splines
Comment 7 Jean Bréfort 2006-05-25 13:32:51 UTC
Created attachment 66187 [details] [review]
enhanced patch

Now, supports invalid data and blank cells.
Comment 8 Jean Bréfort 2006-05-25 15:17:31 UTC
Created attachment 66197 [details] [review]
updated patch with preservation of old properties

this one should be secure
Comment 9 Jean Bréfort 2006-05-26 19:33:19 UTC
Created attachment 66300 [details] [review]
patch using a string property to describe the interpolation.
Comment 10 Jean Bréfort 2008-11-11 12:33:45 UTC
Only B-splines are still missing for this bug, so I rename to make things clear.
Comment 11 Andreas J. Guelzow 2013-04-22 15:02:35 UTC
*** Bug 698533 has been marked as a duplicate of this bug. ***
Comment 12 GNOME Infrastructure Team 2018-05-22 12:58:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/goffice/issues/6.