Skip to content

Additional plotly 3D graph type (topographical) #29

@AdityaSavara

Description

@AdityaSavara

In plotly, we already have the 3D mesh type (which uses x,y,z inputs).
There is also the "surface" plot, which requires a z-matrix.
https://plotly.com/python/3d-surface-plots/ <-- we don't have this one implemented
https://plotly.com/python/3d-mesh/ <-- we have this one implemented already

We have the capability to support it. Just need to add an optional argument to get back the Z-matrix with the 3D equation if it's requested. THis would be preceded by JSONGrapher calling the "type" in the data dict before calling the equation.

Currently we have this line of code in JSONGrapher:
if data_series["type"] == "surface":
if "z_matrix" in data_series: #for this one, we want the z_matrix so we pop z if we have the z_matrix..
data_series.pop("z")
print(" The Surface type of 3D plot has not been implemented yet. It requires replacing z with the z_matrix after the equation has been evaluated.")

To implement this feature one would modify the below function, and would also delete the above print statement.

def evaluate_equation_for_data_series_by_index

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions