Skip to content

Commit af7ce7e

Browse files
author
Ioannis Giagkiozis
committed
added examples for jupyter and ndarray
1 parent f31e744 commit af7ce7e

29 files changed

+3526
-67
lines changed

content/fundamentals.html

Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en" class="sidebar-visible no-js ayu">
3+
<head>
4+
<!-- Book generated using mdBook -->
5+
<meta charset="UTF-8">
6+
<title>Fundamentals - Plotly.rs Book</title>
7+
8+
9+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
10+
<meta name="description" content="Plotly.rs documentation">
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
<meta name="theme-color" content="#ffffff" />
13+
14+
<link rel="shortcut icon" href="favicon.png">
15+
<link rel="stylesheet" href="css/variables.css">
16+
<link rel="stylesheet" href="css/general.css">
17+
<link rel="stylesheet" href="css/chrome.css">
18+
<link rel="stylesheet" href="css/print.css" media="print">
19+
20+
<!-- Fonts -->
21+
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
22+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" rel="stylesheet" type="text/css">
23+
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500" rel="stylesheet" type="text/css">
24+
25+
<!-- Highlight.js Stylesheets -->
26+
<link rel="stylesheet" href="highlight.css">
27+
<link rel="stylesheet" href="tomorrow-night.css">
28+
<link rel="stylesheet" href="ayu-highlight.css">
29+
30+
<!-- Custom theme stylesheets -->
31+
32+
<link rel="stylesheet" href="ferris.css">
33+
34+
35+
36+
<!-- MathJax -->
37+
<script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
38+
39+
</head>
40+
<body>
41+
<!-- Provide site root to javascript -->
42+
<script type="text/javascript">
43+
var path_to_root = "";
44+
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "ayu" : "ayu";
45+
</script>
46+
47+
<!-- Work around some values being stored in localStorage wrapped in quotes -->
48+
<script type="text/javascript">
49+
try {
50+
var theme = localStorage.getItem('mdbook-theme');
51+
var sidebar = localStorage.getItem('mdbook-sidebar');
52+
53+
if (theme.startsWith('"') && theme.endsWith('"')) {
54+
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
55+
}
56+
57+
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
58+
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
59+
}
60+
} catch (e) { }
61+
</script>
62+
63+
<!-- Set the theme before any content is loaded, prevents flash -->
64+
<script type="text/javascript">
65+
var theme;
66+
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
67+
if (theme === null || theme === undefined) { theme = default_theme; }
68+
var html = document.querySelector('html');
69+
html.classList.remove('no-js')
70+
html.classList.remove('ayu')
71+
html.classList.add(theme);
72+
html.classList.add('js');
73+
</script>
74+
75+
<!-- Hide / unhide sidebar before it is displayed -->
76+
<script type="text/javascript">
77+
var html = document.querySelector('html');
78+
var sidebar = 'hidden';
79+
if (document.body.clientWidth >= 1080) {
80+
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
81+
sidebar = sidebar || 'visible';
82+
}
83+
html.classList.remove('sidebar-visible');
84+
html.classList.add("sidebar-" + sidebar);
85+
</script>
86+
87+
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
88+
<div class="sidebar-scrollbox">
89+
<ol class="chapter"><li class="chapter-item expanded "><a href="plotly_rs.html"><strong aria-hidden="true">1.</strong> Plotly.rs</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="getting_started.html"><strong aria-hidden="true">1.1.</strong> Getting Started</a></li></ol></li><li class="chapter-item expanded "><a href="fundamentals.html" class="active"><strong aria-hidden="true">2.</strong> Fundamentals</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="fundamentals/jupyter_support.html"><strong aria-hidden="true">2.1.</strong> Jupyter Support</a></li><li class="chapter-item "><a href="fundamentals/ndarray_support.html"><strong aria-hidden="true">2.2.</strong> ndarray Support</a></li><li class="chapter-item "><a href="fundamentals/shapes.html"><strong aria-hidden="true">2.3.</strong> Shapes</a></li></ol></li><li class="chapter-item expanded "><a href="recipes.html"><strong aria-hidden="true">3.</strong> Recipes</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/basic_charts.html"><strong aria-hidden="true">3.1.</strong> Basic Charts</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/basic_charts/scatter_plots.html"><strong aria-hidden="true">3.1.1.</strong> Scatter Plots</a></li><li class="chapter-item "><a href="recipes/basic_charts/line_charts.html"><strong aria-hidden="true">3.1.2.</strong> Line Charts</a></li><li class="chapter-item "><a href="recipes/basic_charts/bar_charts.html"><strong aria-hidden="true">3.1.3.</strong> Bar Charts</a></li></ol></li><li class="chapter-item "><a href="recipes/statistical_charts.html"><strong aria-hidden="true">3.2.</strong> Statistical Charts</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/statistical_charts/error_bars.html"><strong aria-hidden="true">3.2.1.</strong> Error Bars</a></li><li class="chapter-item "><a href="recipes/statistical_charts/box_plots.html"><strong aria-hidden="true">3.2.2.</strong> Box Plots</a></li><li class="chapter-item "><a href="recipes/statistical_charts/histograms.html"><strong aria-hidden="true">3.2.3.</strong> Histograms</a></li></ol></li><li class="chapter-item "><a href="recipes/scientific_charts.html"><strong aria-hidden="true">3.3.</strong> Scientific Charts</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/scientific_charts/contour_plots.html"><strong aria-hidden="true">3.3.1.</strong> Contour Plots</a></li><li class="chapter-item "><a href="recipes/scientific_charts/heatmaps.html"><strong aria-hidden="true">3.3.2.</strong> Heatmaps</a></li></ol></li><li class="chapter-item "><a href="recipes/financial_charts.html"><strong aria-hidden="true">3.4.</strong> Financial Charts</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/financial_charts/time_series_and_date_axes.html"><strong aria-hidden="true">3.4.1.</strong> Time Series and Date Axes</a></li><li class="chapter-item "><a href="recipes/financial_charts/candlestick_charts.html"><strong aria-hidden="true">3.4.2.</strong> Candlestick Charts</a></li><li class="chapter-item "><a href="recipes/financial_charts/ohlc_charts.html"><strong aria-hidden="true">3.4.3.</strong> OHLC Charts</a></li></ol></li><li class="chapter-item "><a href="recipes/subplots.html"><strong aria-hidden="true">3.5.</strong> Subplots</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/subplots/subplots.html"><strong aria-hidden="true">3.5.1.</strong> Subplots</a></li><li class="chapter-item "><a href="recipes/subplots/multiple_axes.html"><strong aria-hidden="true">3.5.2.</strong> Multiple Axes</a></li></ol></li></ol></li></ol>
90+
</div>
91+
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
92+
</nav>
93+
94+
<div id="page-wrapper" class="page-wrapper">
95+
96+
<div class="page">
97+
<script src="https://cdn.plot.ly/plotly-1.54.6.min.js"></script>
98+
<div id="menu-bar-hover-placeholder"></div>
99+
<div id="menu-bar" class="menu-bar sticky bordered">
100+
<div class="left-buttons">
101+
<button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
102+
<i class="fa fa-bars"></i>
103+
</button>
104+
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
105+
<i class="fa fa-paint-brush"></i>
106+
</button>
107+
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
108+
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
109+
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
110+
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
111+
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
112+
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu (default)</button></li>
113+
</ul>
114+
115+
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
116+
<i class="fa fa-search"></i>
117+
</button>
118+
119+
</div>
120+
121+
<h1 class="menu-title">Plotly.rs Book</h1>
122+
123+
<div class="right-buttons">
124+
<a href="print.html" title="Print this book" aria-label="Print this book">
125+
<i id="print-button" class="fa fa-print"></i>
126+
</a>
127+
128+
</div>
129+
</div>
130+
131+
132+
<div id="search-wrapper" class="hidden">
133+
<form id="searchbar-outer" class="searchbar-outer">
134+
<input type="search" name="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
135+
</form>
136+
<div id="searchresults-outer" class="searchresults-outer hidden">
137+
<div id="searchresults-header" class="searchresults-header"></div>
138+
<ul id="searchresults">
139+
</ul>
140+
</div>
141+
</div>
142+
143+
144+
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
145+
<script type="text/javascript">
146+
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
147+
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
148+
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
149+
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
150+
});
151+
</script>
152+
153+
<div id="content" class="content">
154+
<main>
155+
<div align="center">
156+
<a href="https://github.com/igiagkiozis/plotly/tree/master">
157+
<img src="https://img.shields.io/badge/Plotly.rs-master-brightgreen" alt="build status">
158+
</a>
159+
<a href="https://github.com/igiagkiozis/plotly/actions">
160+
<img src="https://github.com/igiagkiozis/plotly/workflows/build/badge.svg" alt="build status">
161+
</a>
162+
<a href="https://crates.io/crates/plotly">
163+
<img src="https://img.shields.io/crates/v/plotly.svg" alt="Crates.io">
164+
</a>
165+
<a href="https://docs.rs/plotly">
166+
<img src="https://docs.rs/plotly/badge.svg" alt="Documentation">
167+
</a>
168+
<a href="">
169+
<img src="https://img.shields.io/badge/Minimum%20Rust%20Version-1.31-brightgreen.svg" alt="Minimum Version">
170+
</a>
171+
</div>
172+
<h1><a class="header" href="#fundamentals" id="fundamentals">Fundamentals</a></h1>
173+
<p>Functionality that applies to the library as a whole is described in the next sections. </p>
174+
175+
</main>
176+
177+
<nav class="nav-wrapper" aria-label="Page navigation">
178+
<!-- Mobile navigation buttons -->
179+
180+
<a rel="prev" href="getting_started.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
181+
<i class="fa fa-angle-left"></i>
182+
</a>
183+
184+
185+
186+
<a rel="next" href="fundamentals/jupyter_support.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
187+
<i class="fa fa-angle-right"></i>
188+
</a>
189+
190+
191+
<div style="clear: both"></div>
192+
</nav>
193+
</div>
194+
</div>
195+
196+
<nav class="nav-wide-wrapper" aria-label="Page navigation">
197+
198+
<a rel="prev" href="getting_started.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left">
199+
<i class="fa fa-angle-left"></i>
200+
</a>
201+
202+
203+
204+
<a rel="next" href="fundamentals/jupyter_support.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
205+
<i class="fa fa-angle-right"></i>
206+
</a>
207+
208+
</nav>
209+
210+
</div>
211+
212+
213+
214+
215+
216+
217+
218+
219+
<script type="text/javascript">
220+
window.playpen_copyable = true;
221+
</script>
222+
223+
224+
225+
226+
227+
<script src="elasticlunr.min.js" type="text/javascript" charset="utf-8"></script>
228+
<script src="mark.min.js" type="text/javascript" charset="utf-8"></script>
229+
<script src="searcher.js" type="text/javascript" charset="utf-8"></script>
230+
231+
232+
<script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
233+
<script src="highlight.js" type="text/javascript" charset="utf-8"></script>
234+
<script src="book.js" type="text/javascript" charset="utf-8"></script>
235+
236+
<!-- Custom JS scripts -->
237+
238+
<script type="text/javascript" src="ferris.js"></script>
239+
240+
<script type="text/javascript" src="plotly-1.54.6.min.js"></script>
241+
242+
243+
244+
245+
</body>
246+
</html>

0 commit comments

Comments
 (0)