[kde-edu]: KPlotWidget stuff

Jason Harris kstars at 30doradus.org
Wed Oct 25 04:22:35 CEST 2006


Another option, which may make more sense, is to change KPlotObject so
that it represents a single point in the plot, rather than a series of
points.

This would make a lot of things simpler.

On 10/24/06, Jason Harris <kstars at 30doradus.org> wrote:
> Hello,
>
> I'm looking at implementing the non-overlapping label feature from
> KmPlot in our KPlotWidget.  However, I think it may be a good idea to
> change the internals of KPlotObject a bit first.
>
> Right now, KPlotObject defines the following Types:
>
> POINTS, CURVE, LABEL, and POLYGON.  In each case, the KPlotObject
> consists of a set of points, *except* for LABEL.  A KPlotObject of
> type LABEL only has one point in the plot: the position of a single
> label.  So if you want a set of labels in the plot, it requires a set
> of KPlotObjects (whereas if you want a set of points, that only needs
> one KPlotObject).
>
> I was thinking that it would make more sense to omit the LABEL type,
> and just make it possible to attach a name to each point in the
> KPlotObject.  That way, if you wanted a set of points with labels, you
> could do this with a single KPlotObject, rather than having a
> KPlotObject for the points, and another set of N KPlotObjects (one for
> each label).
>
> Any feedback on this idea?
>
> Jason
>
> PS- the reason I designed it this way originally (IIRC) is that I
> wanted the flexibility of having a different pen color for each label.
>  But of course, this would still be possible under my proposed system,
> if you simply do things the old way and create a single-point
> KPlotObject for each label.
> _______________________________________________
> kde-edu mailing list
> kde-edu at mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu
>


More information about the kde-edu mailing list