Skip to content

Commit 03979d2

Browse files
committed
updated the Plotly.rs book
Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent af7ce7e commit 03979d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6819
-4300
lines changed

content/.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This file makes sure that Github Pages doesn't process mdBook's output.
1+
This file makes sure that Github Pages doesn't process mdBook's output.

content/404.html

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en" class="ayu" dir="ltr">
3+
<head>
4+
<!-- Book generated using mdBook -->
5+
<meta charset="UTF-8">
6+
<title>Page not found - Plotly.rs Book</title>
7+
<base href="/">
8+
9+
10+
<!-- Custom HTML head -->
11+
12+
<meta name="description" content="Plotly.rs documentation">
13+
<meta name="viewport" content="width=device-width, initial-scale=1">
14+
<meta name="theme-color" content="#ffffff">
15+
16+
<link rel="icon" href="favicon.svg">
17+
<link rel="shortcut icon" href="favicon.png">
18+
<link rel="stylesheet" href="css/variables.css">
19+
<link rel="stylesheet" href="css/general.css">
20+
<link rel="stylesheet" href="css/chrome.css">
21+
<link rel="stylesheet" href="css/print.css" media="print">
22+
23+
<!-- Fonts -->
24+
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
25+
<link rel="stylesheet" href="fonts/fonts.css">
26+
27+
<!-- Highlight.js Stylesheets -->
28+
<link rel="stylesheet" href="highlight.css">
29+
<link rel="stylesheet" href="tomorrow-night.css">
30+
<link rel="stylesheet" href="ayu-highlight.css">
31+
32+
<!-- Custom theme stylesheets -->
33+
<link rel="stylesheet" href="ferris.css">
34+
35+
<!-- MathJax -->
36+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
37+
</head>
38+
<body class="sidebar-visible no-js">
39+
<div id="body-container">
40+
<!-- Provide site root to javascript -->
41+
<script>
42+
var path_to_root = "";
43+
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "ayu";
44+
</script>
45+
46+
<!-- Work around some values being stored in localStorage wrapped in quotes -->
47+
<script>
48+
try {
49+
var theme = localStorage.getItem('mdbook-theme');
50+
var sidebar = localStorage.getItem('mdbook-sidebar');
51+
52+
if (theme.startsWith('"') && theme.endsWith('"')) {
53+
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
54+
}
55+
56+
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
57+
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
58+
}
59+
} catch (e) { }
60+
</script>
61+
62+
<!-- Set the theme before any content is loaded, prevents flash -->
63+
<script>
64+
var theme;
65+
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
66+
if (theme === null || theme === undefined) { theme = default_theme; }
67+
var html = document.querySelector('html');
68+
html.classList.remove('ayu')
69+
html.classList.add(theme);
70+
var body = document.querySelector('body');
71+
body.classList.remove('no-js')
72+
body.classList.add('js');
73+
</script>
74+
75+
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">
76+
77+
<!-- Hide / unhide sidebar before it is displayed -->
78+
<script>
79+
var body = document.querySelector('body');
80+
var sidebar = null;
81+
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
82+
if (document.body.clientWidth >= 1080) {
83+
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
84+
sidebar = sidebar || 'visible';
85+
} else {
86+
sidebar = 'hidden';
87+
}
88+
sidebar_toggle.checked = sidebar === 'visible';
89+
body.classList.remove('sidebar-visible');
90+
body.classList.add("sidebar-" + sidebar);
91+
</script>
92+
93+
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
94+
<div class="sidebar-scrollbox">
95+
<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"><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><li class="chapter-item "><a href="recipes/basic_charts/sankey_diagrams.html"><strong aria-hidden="true">3.1.4.</strong> Sankey Diagrams</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/3dcharts.html"><strong aria-hidden="true">3.5.</strong> 3D Charts</a><a class="toggle"><div></div></a></li><li><ol class="section"><li class="chapter-item "><a href="recipes/3dcharts/3dcharts.html"><strong aria-hidden="true">3.5.1.</strong> Scatter 3D</a></li></ol></li><li class="chapter-item "><a href="recipes/subplots.html"><strong aria-hidden="true">3.6.</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.6.1.</strong> Subplots</a></li><li class="chapter-item "><a href="recipes/subplots/multiple_axes.html"><strong aria-hidden="true">3.6.2.</strong> Multiple Axes</a></li></ol></li></ol></li></ol>
96+
</div>
97+
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
98+
<div class="sidebar-resize-indicator"></div>
99+
</div>
100+
</nav>
101+
102+
<!-- Track and set sidebar scroll position -->
103+
<script>
104+
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
105+
sidebarScrollbox.addEventListener('click', function(e) {
106+
if (e.target.tagName === 'A') {
107+
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
108+
}
109+
}, { passive: true });
110+
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
111+
sessionStorage.removeItem('sidebar-scroll');
112+
if (sidebarScrollTop) {
113+
// preserve sidebar scroll position when navigating via links within sidebar
114+
sidebarScrollbox.scrollTop = sidebarScrollTop;
115+
} else {
116+
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
117+
var activeSection = document.querySelector('#sidebar .active');
118+
if (activeSection) {
119+
activeSection.scrollIntoView({ block: 'center' });
120+
}
121+
}
122+
</script>
123+
124+
<div id="page-wrapper" class="page-wrapper">
125+
126+
<div class="page">
127+
<script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script> <div id="menu-bar-hover-placeholder"></div>
128+
<div id="menu-bar" class="menu-bar sticky">
129+
<div class="left-buttons">
130+
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
131+
<i class="fa fa-bars"></i>
132+
</label>
133+
<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">
134+
<i class="fa fa-paint-brush"></i>
135+
</button>
136+
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
137+
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
138+
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
139+
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
140+
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
141+
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
142+
</ul>
143+
<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">
144+
<i class="fa fa-search"></i>
145+
</button>
146+
</div>
147+
148+
<h1 class="menu-title">Plotly.rs Book</h1>
149+
150+
<div class="right-buttons">
151+
<a href="print.html" title="Print this book" aria-label="Print this book">
152+
<i id="print-button" class="fa fa-print"></i>
153+
</a>
154+
155+
</div>
156+
</div>
157+
158+
<div id="search-wrapper" class="hidden">
159+
<form id="searchbar-outer" class="searchbar-outer">
160+
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
161+
</form>
162+
<div id="searchresults-outer" class="searchresults-outer hidden">
163+
<div id="searchresults-header" class="searchresults-header"></div>
164+
<ul id="searchresults">
165+
</ul>
166+
</div>
167+
</div>
168+
169+
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
170+
<script>
171+
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
172+
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
173+
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
174+
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
175+
});
176+
</script>
177+
178+
<div id="content" class="content">
179+
<main>
180+
<h1 id="document-not-found-404"><a class="header" href="#document-not-found-404">Document not found (404)</a></h1>
181+
<p>This URL is invalid, sorry. Please use the navigation bar or search to continue.</p>
182+
183+
</main>
184+
185+
<nav class="nav-wrapper" aria-label="Page navigation">
186+
<!-- Mobile navigation buttons -->
187+
188+
189+
<div style="clear: both"></div>
190+
</nav>
191+
</div>
192+
</div>
193+
194+
<nav class="nav-wide-wrapper" aria-label="Page navigation">
195+
196+
</nav>
197+
198+
</div>
199+
200+
201+
202+
203+
<script>
204+
window.playground_copyable = true;
205+
</script>
206+
207+
208+
<script src="elasticlunr.min.js"></script>
209+
<script src="mark.min.js"></script>
210+
<script src="searcher.js"></script>
211+
212+
<script src="clipboard.min.js"></script>
213+
<script src="highlight.js"></script>
214+
<script src="book.js"></script>
215+
216+
<!-- Custom JS scripts -->
217+
<script src="ferris.js"></script>
218+
<script src="plotly.min.js"></script>
219+
220+
221+
</div>
222+
</body>
223+
</html>

content/ayu-highlight.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
88
overflow-x: auto;
99
background: #191f26;
1010
color: #e6e1cf;
11-
padding: 0.5em;
1211
}
1312

1413
.hljs-comment,

0 commit comments

Comments
 (0)