pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
200 stars 34 forks source link

substitution of the smoothing algorithm with Hobby's one #270

Open pgf-tikz-bot opened 12 years ago

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/36/ Author: *anonymous Timestamp: 2012-09-12 09:07:19

The package hobby has recently been released. It allows to draw in TikZ a Bézier spline through a given set of points, by means of a new syntax. The implemented algorithm is much better than Tikz original smoothing one, which I suppose is used by pgfplots too. Is it possible to substitute the old pgfplots smoothing algorithm with the one provided by the hobby package? Thank you

pgf-tikz-bot commented 12 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/36/#fa77 Author: cfeuersaenger Timestamp: 2012-09-12 16:01:14

In general: yes, sounds good.

Have you tried if tit works? pgfplots has been designed to support any plot handlers which work with TikZ. Perhaps the hobby package defines a new plot handler? If so, I would assume that pgfplots supports it out-of-the-box.

I will take a look when I find time.

Best regards

Christian

pgf-tikz-bot commented 11 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/36/#8803 Author: tentotwo Timestamp: 2012-11-07 15:54:10

Andrew Stacey has now adapted the Hobby package to work with plots: http://bazaar.launchpad.net/~tex-sx/tex-sx/development/revision/152\#hobby.dtx. You'll want to be a bit careful when applying the Hobby smoothing (or any smoothing, really) to very variable data: http://chat.stackexchange.com/transcript/message/6801934\#6801934.

pgf-tikz-bot commented 11 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/feature-requests/36/#bc9b Author: cfeuersaenger Timestamp: 2012-11-07 19:10:24

Thanks for the comment, Jake.

Yes, I discussed implementational details with Andrew; and he mentioned a couple of shortcomings (especially for small mesh widths and regarding the runtime asymptotics).

That leaves me wondering if standard cubic spline interpolation techniques might be a good addition to pgfplots... but they would require a numeric library which is currently out-of-scope.