# my curves are ugly

George Sturr shared this idea 14 years ago
Under Consideration

I am creating tools to draw curves that geogebra cannot draw, such as a student-t curve. To draw a custom curve I create a list of points using a custom function tool and then use sequence to connect the points with line segments. This works, but my curve does not have the smooth look of the curves geogebra draws by using (I'm guessing) Java's anti-aliasing path command. They especially look bad when drawn with a geogebra curve in the same window (for example, my student-t vs geogebra's normal). If anyone knows how to fix this ... please help.

Otherwise, I have a feature request: A Path command that takes a list of points as an argument and then connects them with a smooth path by invoking the same path command used to draw function curves.

## Comments (8)

1

I have some more thoughts about this. Could there be a path object constructed out of a list of points? This object would be like the boundary of a polygon but without the overhead of line segments or the need to be closed. A sliding point could be attached to it (this would be helpful with my student-t curve). Geometric transformations could also be applied. Length could be calculated. It might be useful in creating graph theory demonstrations .... and, since this is geogebra, it wouldn't be ragged and ugly!

1

Please post your ggb file (for testing if we do add this :) )

Also, if you use the existing Polygon[] command, does this do a smooth curve if you hide the points and set the filling to zero?

1

Here's the file.

I did try a polygon but saw the same thing ... a polygon boundary is also a set of connected line segments. The join points of the segments are not smoothed out.

p.s... I had some trouble creating a polygon with a list of points and resorted to a spreadsheet. What's the trick? I will need this to display area under my curve. (consider: a path object that can be integrated)

1

We will need to introduce a PolyLine[] command to get the benefits of special general-path antialiasing. We cannot turn this on for all lists as it makes horizontal and vertical segments look ugly.

I suggest a workaround: locus lines use the nice special general-path antialiasing too. You could have a point C on a segment on the xAxis. Draw the locus of (x(C), Student[x(C), df]), see file attached. This looks much smoother.

cheers,

Markus

https://ggbm.at/534531

1

Yes, that makes a much better curve.... GeoGebra is beautiful!

Thanks for your consideration and patience with my half-baked ideas .... I think it's time for me to head over to the GeoGebra store and buy some of your sporty gear, maybe add a little change to the tip jar. :wink:

1

No. Your curves are beautiful <3

1

But seriously, these curves are real boxy.

1

Please post your .ggb file

Leave a Comment
• GeoGebra
• Help
• Partners
• Contact us
• Feedback & Questions
• This email address is being protected from spambots. You need JavaScript enabled to view it.
• +43 677 6137 2693
© 2023 International GeoGebra Institute