You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
p = fig2plotly; % <-- converts the current figure to an interactive Plotly chart
52
64
```
53
65
54
66

55
67
56
-
Also, access other Plotly services and graphs programmatically. Like, publication-quality image export:
68
+
The resulting figure is an interactive web chart: pan, zoom, hover, and download from the plotly.js toolbar.
69
+
70
+
## Static export
71
+
72
+
Export figures to publication-quality static images:
57
73
58
-
```MATLAB
59
-
saveplotlyfig(p, 'testimage.svg')
74
+
```matlab
75
+
p = fig2plotly;
76
+
saveplotlyfig(p, 'testimage.svg') % PNG, JPEG, PDF, and SVG supported
60
77
```
61
78
62
-
and Plotly figure retrieval:
79
+
## Online mode
63
80
64
-
```MATLAB
65
-
p = getplotlyfig('chris', 1638) % downloads the graph data from https://plot.ly/~chris/1638
81
+
Offline usage is the default and requires nothing. For online features — storing charts on the Plotly cloud, retrieving figures with `getplotlyfig`, and streaming — configure your Plotly credentials:
Generate a side-by-side comparison of native and converted figures for over 80 plot types:
107
+
108
+
```matlab
109
+
makegallery('OutputFolder', 'gallery')
66
110
```
67
111
68
112
## Documentation
69
113
70
-
This lives here: [https://plot.ly/matlab](https://plot.ly/matlab)
114
+
-[plotly.com/matlab](https://plotly.com/matlab) - official documentation
71
115
72
116
## Questions & troubleshooting
73
117
74
-
Ask on the [Plotly Community Forum](https://community.plotly.com/c/plotly-r-matlab-julia-net)
118
+
Ask on the [Plotly Community Forum](https://community.plotly.com/c/plotly-r-matlab-julia-net).
75
119
76
120
## Contribute
77
121
78
122
Please do! This is an open source project. Check out [the issues](https://github.com/plotly/plotly_matlab/issues) or open a PR!
79
123
80
124
We want to encourage a warm, welcoming, and safe environment for contributing to this project. See the [code of conduct](CODE_OF_CONDUCT.md) for more information.
81
125
126
+
The test suite (`plotly/testing/runplotlytests.m`) runs in both MATLAB and GNU Octave and is executed on every push via GitHub Actions.
0 commit comments