Skip to content

Support for 'fill' attributes in 'scatter3d' #2352

Open

Description

@cpsievert

Originally requested here plotly/plotly.R#1179

Activity

  1. etpinard commented on Feb 9, 2018

    @etpinard
    Contributor

    There's this thing: https://plot.ly/python/3d-filled-line-plots/ in the python docs.

    Could be a nice feature for the R API? 😛

    But yeah, why not, it would be nice to fill attributes that behave more closely to what 2d axes support.

  2. alexcjohnson commented on Feb 11, 2018

    @alexcjohnson
    Collaborator

    FWIW that python example has a bug - looks like the fill is perhaps it's making a convex hull rather than just filling below the line? I haven't looked in enough detail to know whether this is a problem on the python or plotly.js side.
    screen shot 2018-02-10 at 7 21 10 pm

  3. jonmmease commented on Oct 1, 2018

    @jonmmease
    Contributor

    Reported again in plotly/plotly.py#1206

    I don't think this is a Python specific issue. The surface fill here is being turned on by the scatter3d.surfaceaxis and scatter3d.surfacecolor properties.

    The docs for surfaceaxis are

    If "-1", the scatter points are not fill with a surface If 0,
    1, 2, the scatter points are filled with a Delaunay surface
    about the x, y, z respectively.
    

    So I think what's happening here is that Delaunay triangularization doesn't take into account the order of the points and so when all of the points are on a plane you end up with a convex hull. And so it's not really meaningful to compare it with the line. So perhaps we should take down this documentation example.

    I think what this Python example wants is the 3d fill option from the feature request.

  4. MdoubleDash commented on Apr 29, 2019

    @MdoubleDash

    FWIW, I have seen this bug in R as well. Posted an issue in documentation, then realized there is one already opened here, which is the place it should be. I just included the reproducible example in my thread.

  5. Zaesh commented on Apr 28, 2020

    @Zaesh

    Has anyone found a fix for that issue yet?

  6. ak868308 commented on Jan 29, 2021

    @ak868308

    Anybody found the solution for this using plotly-latest.js

  7. positron96 commented on Feb 26, 2024

    @positron96

    So, it's 2024 and the feature is still not usable? Did anyone come up with a workaround? I see one solution to split one N-point polygon into N 4-points polygons, but that would mess with legend, create a lot of extra objects, etc.

  8. self-assigned this
    on Jun 11, 2024
  9. removed their assignment
    on Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions