Created
December 10, 2025 18:23
-
-
Save j-fu/11c0e0673f2bcbf7142d92d6a3c9b36b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### A Pluto.jl notebook ### | |
| # v0.20.21 | |
| using Markdown | |
| using InteractiveUtils | |
| # ╔═╡ 74b77b64-3123-4a55-86b9-71d2af2448d9 | |
| md""" | |
| f: ``x^3`` | |
| """ | |
| # ╔═╡ a70cef7d-2a2f-4155-bdf3-fec9df94c63f | |
| html"""<head> | |
| <title>Plotly.js Simple Example</title> | |
| <!-- Include Plotly.js library from a CDN --> | |
| <script src="https://cdn.plot.ly/plotly-3.3.0.min.js"> </script> | |
| </head> | |
| <body> | |
| <!-- Div element where the plot will be rendered --> | |
| <div id="myPlot" style="width:600px;height:400px;"></div> | |
| <script> | |
| // Define the data for the plot | |
| const data = [{ | |
| x: [1, 2, 3, 4, 5], | |
| y: [10, 15, 13, 17, 12], | |
| mode: 'markers', // Display points as markers | |
| type: 'scatter' // Type of chart is scatter | |
| }]; | |
| // Define the layout for the plot (optional) | |
| const layout = { | |
| title: {text: '\$ f: x^3$'}, | |
| xaxis: { | |
| title: {text: 'X-axis Label'}, | |
| }, | |
| yaxis: { | |
| title: {text: 'Y-axis Label'}, | |
| } | |
| }; | |
| // Render the plot in the 'myPlot' div | |
| Plotly.newPlot('myPlot', data, layout); | |
| </script> | |
| </body> | |
| """ | |
| # ╔═╡ Cell order: | |
| # ╠═74b77b64-3123-4a55-86b9-71d2af2448d9 | |
| # ╠═a70cef7d-2a2f-4155-bdf3-fec9df94c63f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment