Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document undocumented behaviour(s) of the 3D plotting functions #24331

Open
EmmanuelCharpentier mannequin opened this issue Dec 7, 2017 · 3 comments
Open

Document undocumented behaviour(s) of the 3D plotting functions #24331

EmmanuelCharpentier mannequin opened this issue Dec 7, 2017 · 3 comments

Comments

@EmmanuelCharpentier
Copy link
Mannequin

EmmanuelCharpentier mannequin commented Dec 7, 2017

It turns out that our 3D plotting infrastructures has some nice, but undocumented features :

  • plot3d and friends accept float("NaN") values as value of a plotted function, and leave the corresponding face(s) unplotted : this gives a rectangular hole un the surface ;

  • the same functions accept a2-element list (or tuple ?) [<point function>, <colormap>]as a value for the color keyword argument ; this allows to compute a color value as a function of the point.

As far as I know, this latter point is documented only for parametric surfaces ; the first one is not documented at all.

The point of this ticket is to document these abilities, thus (hopefully) avoiding to lose them in any future upgrade (somewhat needed...) of our 3D infrastructure, and allowing to write new utilities explicitly using them.

Depends on #23696

CC: @egourgoulhon

Component: graphics

Issue created by migration from https://trac.sagemath.org/ticket/24331

@EmmanuelCharpentier EmmanuelCharpentier mannequin added this to the sage-8.2 milestone Dec 7, 2017
@fchapoton
Copy link
Contributor

comment:1

Some documentation for color functions was added after 8.0. Please wait for the doc of 8.1 to see where. This is still very minimal.

@EmmanuelCharpentier
Copy link
Mannequin Author

EmmanuelCharpentier mannequin commented Dec 21, 2017

Dependencies: #23696

@EmmanuelCharpentier
Copy link
Mannequin Author

EmmanuelCharpentier mannequin commented Dec 21, 2017

comment:3

We'll wait on a probable upgrade of matplotlib : the undocumented features might change ;-).

@mkoeppe mkoeppe removed this from the sage-8.2 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants