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>As of version <code>0.7.0</code>, <ahref="https://github.com/igiagkiozis/plotly">Plotly.rs</a> has native support for the <ahref="https://github.com/google/evcxr/tree/master/evcxr_jupyter">EvCxR Jupyter Kernel</a>.</p>
180
+
<p>As of version <code>0.7.0</code>, <ahref="https://github.com/plotly/plotly.rs">Plotly.rs</a> has native support for the <ahref="https://github.com/google/evcxr/tree/master/evcxr_jupyter">EvCxR Jupyter Kernel</a>.</p>
181
181
<p>Once you've installed the required packages you'll be able to run all the examples shown here as well as all <ahref="../recipes.html">the recipes</a> in Jupyter Lab!</p>
<p>It is assumed that an installation of the <ahref="https://www.anaconda.com/products/individual">Anaconda</a> Python distribution is already present in the system. If that is not the case you can follow these <ahref="https://www.anaconda.com/products/individual">instructions</a> to get up and running with <code>Anaconda</code>.</p>
<p>For Jupyter Lab there are two ways to display a plot in the <code>EvCxR</code> kernel, either have the plot object be in the last line without a semicolon or directly invoke the <code>Plot::lab_display</code> method on it; both have the same result. You can also find an example notebook <ahref="https://github.com/igiagkiozis/plotly/blob/master/examples/jupyter/jupyter_lab.ipynb">here</a> that will periodically be updated with examples.</p>
260
-
<p>The process for Jupyter Notebook is very much the same with one exception; the <code>Plot::notebook_display</code> method must be used to display the plot. You can find an example notebook <ahref="https://github.com/igiagkiozis/plotly/blob/master/examples/jupyter/jupyter_notebook.ipynb">here</a></p>
259
+
<p>For Jupyter Lab there are two ways to display a plot in the <code>EvCxR</code> kernel, either have the plot object be in the last line without a semicolon or directly invoke the <code>Plot::lab_display</code> method on it; both have the same result. You can also find an example notebook <ahref="https://github.com/plotly/plotly.rs/tree/main/examples/jupyter/jupyter_lab.ipynb">here</a> that will periodically be updated with examples.</p>
260
+
<p>The process for Jupyter Notebook is very much the same with one exception; the <code>Plot::notebook_display</code> method must be used to display the plot. You can find an example notebook <ahref="https://github.com/plotly/plotly.rs/tree/main/examples/jupyter/jupyter_notebook.ipynb">here</a></p>
<p>To enable <ahref="https://github.com/rust-ndarray/ndarray">ndarray</a> support in <ahref="https://github.com/igiagkiozis/plotly">Plotly.rs</a> add the following feature to your <code>Cargo.toml</code> file:</p>
180
+
<p>To enable <ahref="https://github.com/rust-ndarray/ndarray">ndarray</a> support in <ahref="https://github.com/plotly/plotly.rs">Plotly.rs</a> add the following feature to your <code>Cargo.toml</code> file:</p>
181
181
<pre><codeclass="language-toml">[dependencies]
182
182
plotly = { version = ">=0.7.0", features = ["plotly_ndarray"] }
183
183
</code></pre>
184
-
<p>This extends the <ahref="https://github.com/igiagkiozis/plotly">Plotly.rs</a> API in two ways:</p>
184
+
<p>This extends the <ahref="https://github.com/plotly/plotly.rs">Plotly.rs</a> API in two ways:</p>
185
185
<ul>
186
186
<li><code>Scatter</code> traces can now be created using the <code>Scatter::from_ndarray</code> constructor,</li>
187
187
<li>and also multiple traces can be created with the <code>Scatter::to_traces</code> method.</li>
188
188
</ul>
189
-
<p>The full source code for the examples below can be found <ahref="https://github.com/igiagkiozis/plotly/blob/master/plotly/examples/ndarray_support.rs">here</a>.</p>
189
+
<p>The full source code for the examples below can be found <ahref="https://github.com/plotly/plotly.rs/tree/main/examples/ndarray_support">here</a>.</p>
<p>To start using <ahref="https://github.com/igiagkiozis/plotly">plotly.rs</a> in your project add the following to your <code>Cargo.toml</code>:</p>
197
+
<p>To start using <ahref="https://github.com/plotly/plotly.rs">plotly.rs</a> in your project add the following to your <code>Cargo.toml</code>:</p>
198
198
<pre><codeclass="language-toml">[dependencies]
199
199
plotly = "0.8.4"
200
200
</code></pre>
201
-
<p><ahref="https://github.com/igiagkiozis/plotly">Plotly.rs</a> is ultimately a thin wrapper around the <code>plotly.js</code> library. The main job of this library is to provide <code>structs</code> and <code>enums</code> which get serialized to <code>json</code> and passed to the <code>plotly.js</code> library to actually do the heavy lifting. As such, if you are familiar with <code>plotly.js</code> or its derivatives (e.g. the equivalent Python library), then you should find <ahref="https://github.com/igiagkiozis/plotly"><code>plotly.rs</code></a> intuitive to use.</p>
201
+
<p><ahref="https://github.com/plotly/plotly.rs">Plotly.rs</a> is ultimately a thin wrapper around the <code>plotly.js</code> library. The main job of this library is to provide <code>structs</code> and <code>enums</code> which get serialized to <code>json</code> and passed to the <code>plotly.js</code> library to actually do the heavy lifting. As such, if you are familiar with <code>plotly.js</code> or its derivatives (e.g. the equivalent Python library), then you should find <ahref="https://github.com/plotly/plotly.rs"><code>plotly.rs</code></a> intuitive to use.</p>
202
202
<p>A <code>Plot</code> struct contains one or more <code>Trace</code> objects which describe the structure of data to be displayed. Optional <code>Layout</code> and <code>Configuration</code> structs can be used to specify the layout and config of the plot, respectively.</p>
203
203
<p>The builder pattern is used extensively throughout the library, which means you only need to specify the attributes and details you desire. Any attributes that are not set will fall back to the default value used by <code>plotly.js</code>.</p>
204
204
<p>All available traces (e.g. <code>Scatter</code>, <code>Bar</code>, <code>Histogram</code>, etc), the <code>Layout</code>, <code>Configuration</code> and <code>Plot</code> have been hoisted in the <code>plotly</code> namespace so that they can be imported simply using the following:</p>
<p>The extension in the file-name path is optional as the appropriate extension (<code>ImageFormat::PNG</code>) will be included. Note that in all functions that save files to disk, both relative and absolute paths are supported.</p>
<p>To add the ability to save plots in the following formats: png, jpeg, webp, svg, pdf and eps, you can use the <code>kaleido</code> feature. This feature depends on <ahref="https://github.com/plotly/Kaleido">plotly/Kaleido</a>: a cross-platform open source library for generating static images. All the necessary binaries have been included with <code>plotly_kaleido</code> for <code>Linux</code>, <code>Windows</code> and <code>MacOS</code>. Previous versions of <ahref="https://github.com/igiagkiozis/plotly">plotly.rs</a> used the <code>orca</code> feature, however, this has been deprecated as it provided the same functionality but required additional installation steps. To enable the <code>kaleido</code> feature add the following to your <code>Cargo.toml</code>:</p>
253
+
<p>To add the ability to save plots in the following formats: png, jpeg, webp, svg, pdf and eps, you can use the <code>kaleido</code> feature. This feature depends on <ahref="https://github.com/plotly/Kaleido">plotly/Kaleido</a>: a cross-platform open source library for generating static images. All the necessary binaries have been included with <code>plotly_kaleido</code> for <code>Linux</code>, <code>Windows</code> and <code>MacOS</code>. Previous versions of <ahref="https://github.com/plotly/plotly.rs">plotly.rs</a> used the <code>orca</code> feature, however, this has been deprecated as it provided the same functionality but required additional installation steps. To enable the <code>kaleido</code> feature add the following to your <code>Cargo.toml</code>:</p>
254
254
<pre><codeclass="language-toml">[dependencies]
255
255
plotly = { version = "0.8.4", features = ["kaleido"] }
<p>As of v0.8.0, <ahref="https://github.com/igiagkiozis/plotly">plotly.rs</a> can now be used in a <code>Wasm</code> environment by enabling the <code>wasm</code> feature in your <code>Cargo.toml</code>:</p>
258
+
<p>As of v0.8.0, <ahref="https://github.com/plotly/plotly.rs">plotly.rs</a> can now be used in a <code>Wasm</code> environment by enabling the <code>wasm</code> feature in your <code>Cargo.toml</code>:</p>
259
259
<pre><codeclass="language-toml">[dependencies]
260
260
plotly = { version = ">=0.8.0" features = ["wasm"] }
<p>Plotly.rs is a plotting library powered by <ahref="https://plot.ly/javascript/">Plotly.js</a>. The aim is to bring over to Rust all the functionality that <code>Python</code> users have come to rely on with the added benefit of type safety and speed.</p>
198
-
<p>Plotly.rs is free and open source. You can find the source on <ahref="https://github.com/igiagkiozis/plotly">GitHub</a>. Issues and feature requests can be posted on the <ahref="https://github.com/igiagkiozis/plotly/issues">issue tracker</a>.</p>
198
+
<p>Plotly.rs is free and open source. You can find the source on <ahref="https://github.com/plotly/plotly.rs">GitHub</a>. Issues and feature requests can be posted on the <ahref="https://github.com/plotly/plotly.rs/issues">issue tracker</a>.</p>
<p>This book is intended to be a recipe index, which closely follows the <ahref="https://plotly.com/javascript/">plotly.js examples</a>, and is complemented by the <ahref="https://docs.rs/plotly">API documentation</a>.</p>
<p>Contributions are always welcomed, no matter how large or small. Refer to the <ahref="https://github.com/igiagkiozis/plotly/blob/master/CONTRIBUTING.md">contributing guidelines</a> for further pointers, and, if in doubt, <ahref="https://github.com/igiagkiozis/plotly/issues">open an issue</a>.</p>
202
+
<p>Contributions are always welcomed, no matter how large or small. Refer to the <ahref="https://github.com/plotly/plotly.rs/tree/main/CONTRIBUTING.md">contributing guidelines</a> for further pointers, and, if in doubt, <ahref="https://github.com/plotly/plotly.rs/issues">open an issue</a>.</p>
<p>Plotly.rs is distributed under the terms of the MIT license.</p>
205
-
<p>See <ahref="https://github.com/igiagkiozis/plotly/blob/master/LICENSE-MIT">LICENSE-MIT</a>, and <ahref="https://github.com/igiagkiozis/plotly/blob/master/COPYRIGHT">COPYRIGHT</a> for details.</p>
205
+
<p>See <ahref="https://github.com/plotly/plotly.rs/tree/main/LICENSE-MIT">LICENSE-MIT</a>, and <ahref="https://github.com/plotly/plotly.rs/tree/main/COPYRIGHT">COPYRIGHT</a> for details.</p>
<p>Plotly.rs is a plotting library powered by <ahref="https://plot.ly/javascript/">Plotly.js</a>. The aim is to bring over to Rust all the functionality that <code>Python</code> users have come to rely on with the added benefit of type safety and speed.</p>
198
-
<p>Plotly.rs is free and open source. You can find the source on <ahref="https://github.com/igiagkiozis/plotly">GitHub</a>. Issues and feature requests can be posted on the <ahref="https://github.com/igiagkiozis/plotly/issues">issue tracker</a>.</p>
198
+
<p>Plotly.rs is free and open source. You can find the source on <ahref="https://github.com/plotly/plotly.rs">GitHub</a>. Issues and feature requests can be posted on the <ahref="https://github.com/plotly/plotly.rs/issues">issue tracker</a>.</p>
<p>This book is intended to be a recipe index, which closely follows the <ahref="https://plotly.com/javascript/">plotly.js examples</a>, and is complemented by the <ahref="https://docs.rs/plotly">API documentation</a>.</p>
<p>Contributions are always welcomed, no matter how large or small. Refer to the <ahref="https://github.com/igiagkiozis/plotly/blob/master/CONTRIBUTING.md">contributing guidelines</a> for further pointers, and, if in doubt, <ahref="https://github.com/igiagkiozis/plotly/issues">open an issue</a>.</p>
202
+
<p>Contributions are always welcomed, no matter how large or small. Refer to the <ahref="https://github.com/plotly/plotly.rs/tree/main/CONTRIBUTING.md">contributing guidelines</a> for further pointers, and, if in doubt, <ahref="https://github.com/plotly/plotly.rs/issues">open an issue</a>.</p>
<p>Plotly.rs is distributed under the terms of the MIT license.</p>
205
-
<p>See <ahref="https://github.com/igiagkiozis/plotly/blob/master/LICENSE-MIT">LICENSE-MIT</a>, and <ahref="https://github.com/igiagkiozis/plotly/blob/master/COPYRIGHT">COPYRIGHT</a> for details.</p>
205
+
<p>See <ahref="https://github.com/plotly/plotly.rs/tree/main/LICENSE-MIT">LICENSE-MIT</a>, and <ahref="https://github.com/plotly/plotly.rs/tree/main/COPYRIGHT">COPYRIGHT</a> for details.</p>
0 commit comments