3D Surface Chart (surface3d_chart)
A calculator function that creates a 3D surface chart based on given values and expressions. Visualize data in a 3D space efficiently.
Simple 3D Surface Chart
Purpose
The Simple 3D Surface Chart function in this web app allows users to visualize a 3D surface chart based on the input values provided.
Use Cases
Users can use this function to plot a 3D surface chart to visualize relationships between two variables and their resulting values.
How to Use
- Enter the x and y values in the respective input fields.
- Define the mathematical expression for the z values.
- Choose labels for the x, y, and z axes.
- Provide a title for the chart.
- Select the type of surface chart you want to generate.
Input Values
- X Values: Enter the x values separated by commas. (default unit is inch)
- Y Values: Enter the y values separated by commas. (default unit is inch)
- Z Expression: Enter a mathematical expression using x and y variables.
- X Label: Label for the x-axis.
- Y Label: Label for the y-axis.
- Z Label: Label for the z-axis.
- Title: Title for the chart.
- Surface Type: Select the type of surface chart.
Output Values
- Chart: The generated 3D surface chart for visualization.
Any other Instruction
Make sure to enter valid numerical values for x and y inputs. The z expression should be a valid mathematical expression using x and y variables.
Analysis of the Code
- The function takes x and y values, calculates z values based on the provided expression, and generates a 3D surface chart.
- The chart is plotted using the x, y, and z values along with the specified labels and title.
Technical Parameters
x_values, y_values, z_expr, x_label, y_label, z_label, title, surface_type
Return Values
chart
Example Expressions
You can use the following expressions to directly evaluate in a non-interactive manner using eval():
surface3d_chart(x_values='1, 2, 3, 4, 5', y_values='10, 20, 30, 40, 50', z_expr='x**2+y**2', x_label='X', y_label='Y', z_label='Z', title='3D Surface Plot', surface_type='Surface')
surface3d_chart(x_values='0.1, 0.2, 0.3, 0.4, 0.5', y_values='1, 2, 3, 4, 5', z_expr='sin(x)+cos(y)', x_label='X-axis', y_label='Y-axis', z_label='Z-axis', title='Surface Plot', surface_type='Contour')
Click on Help icon to open the help page on a separate window.