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
63
```
53
64
54
65

55
66
56
-
Also, access other Plotly services and graphs programmatically. Like, publication-quality image export:
67
+
The resulting figure is an interactive web chart: pan, zoom, hover, and download from the plotly.js toolbar.
68
+
69
+
## Static export
70
+
71
+
Export figures to publication-quality static images:
72
+
73
+
```matlab
74
+
p = fig2plotly;
75
+
saveplotlyfig(p, 'testimage.svg') % PNG, JPEG, PDF, and SVG supported
76
+
```
77
+
78
+
## Online mode
79
+
80
+
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:
p = getplotlyfig('chris', 1638) % downloads the graph data
60
92
```
61
93
62
-
and Plotly figure retrieval:
63
94
64
-
```MATLAB
65
-
p = getplotlyfig('chris', 1638) % downloads the graph data from https://plot.ly/~chris/1638
95
+
## Gallery
96
+
97
+
Generate a side-by-side comparison of native and converted figures for over 80 plot types:
98
+
99
+
```matlab
100
+
makegallery('OutputFolder', 'gallery')
66
101
```
67
102
68
103
## Documentation
69
104
70
-
This lives here: [https://plot.ly/matlab](https://plot.ly/matlab)
105
+
-[plotly.com/matlab](https://plotly.com/matlab) - official documentation
71
106
72
107
## Questions & troubleshooting
73
108
74
-
Ask on the [Plotly Community Forum](https://community.plotly.com/c/plotly-r-matlab-julia-net)
109
+
Ask on the [Plotly Community Forum](https://community.plotly.com/c/plotly-r-matlab-julia-net).
75
110
76
111
## Contribute
77
112
78
113
Please do! This is an open source project. Check out [the issues](https://github.com/plotly/plotly_matlab/issues) or open a PR!
79
114
80
115
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
116
117
+
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