Skip to content

Commit 316a86f

Browse files
update book for release refs/tags/0.14.1
1 parent e2d160f commit 316a86f

9 files changed

Lines changed: 49 additions & 33 deletions

File tree

content/fundamentals/shapes.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/fundamentals/static_image_export.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h3 id="vector-formats"><a class="header" href="#vector-formats">Vector Formats<
289289
</ul>
290290
<h3 id="deprecated"><a class="header" href="#deprecated">Deprecated</a></h3>
291291
<ul>
292-
<li><strong>EPS</strong>: Encapsulated PostScript (will be removed in version 0.14.0)</li>
292+
<li><strong>EPS</strong>: Encapsulated PostScript (will be removed in version 0.15.0)</li>
293293
</ul>
294294
<h2 id="string-export"><a class="header" href="#string-export">String Export</a></h2>
295295
<p>For web applications or APIs, you can export to strings:</p>

content/print.html

Lines changed: 24 additions & 16 deletions
Large diffs are not rendered by default.

content/recipes/basic_charts/line_charts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ <h2 id="setting-lower-or-upper-bounds-on-axis"><a class="header" href="#setting-
622622
<span class="boring">}</span></code></pre></pre>
623623
<div id="set_lower_or_upper_bound_on_axis" class="plotly-graph-div" style="height:100%; width:100%;"></div>
624624
<script type="text/javascript">
625-
Plotly.newPlot("set_lower_or_upper_bound_on_axis", {"data":[{"type":"scatter","name":"versicolor","mode":"markers","x":[3.2,3.2,3.1,2.3,2.8,2.8,3.3,2.4,2.9,2.7,2.0,3.0,2.2,2.9,2.9,3.1,3.0,2.7,2.2,2.5,3.2,2.8,2.5,2.8,2.9,3.0,2.8,3.0,2.9,2.6,2.4,2.4,2.7,2.7,3.0,3.4,3.1,2.3,3.0,2.5,2.6,3.0,2.6,2.3,2.7,3.0,2.9,2.9,2.5,2.8],"y":[7.0,6.4,6.9,5.5,6.5,5.7,6.3,4.9,6.6,5.2,5.0,5.9,6.0,6.1,5.6,6.7,5.6,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6.2,5.9],"xaxis":"x3","yaxis":"y3"}],"layout":{"title":{"text":"Iris Dataset - Subplots by Species"},"grid":{"rows":1,"columns":3,"pattern":"independent"},"xaxis":{"title":{"text":"sepal_width"},"range":[null,4.5]},"yaxis":{"title":{"text":"sepal_length"},"range":[3.0,null]},"xaxis2":{"title":{"text":"sepal_width"},"range":[null,4.5]},"yaxis2":{"title":{"text":"sepal_length"},"range":[3.0,null]},"xaxis3":{"title":{"text":"sepal_width"},"range":[null,4.5]},"yaxis3":{"title":{"text":"sepal_length"},"range":[3.0,null]}},"config":{},"frames":null});
625+
Plotly.newPlot("set_lower_or_upper_bound_on_axis", {"data":[{"type":"scatter","name":"virginica","mode":"markers","x":[3.3,2.7,3.0,2.9,3.0,3.0,2.5,2.9,2.5,3.6,3.2,2.7,3.0,2.5,2.8,3.2,3.0,3.8,2.6,2.2,3.2,2.8,2.8,2.7,3.3,3.2,2.8,3.0,2.8,3.0,2.8,3.8,2.8,2.8,2.6,3.0,3.4,3.1,3.0,3.1,3.1,3.1,2.7,3.2,3.3,3.0,2.5,3.0,3.4,3.0],"y":[6.3,5.8,7.1,6.3,6.5,7.6,4.9,7.3,6.7,7.2,6.5,6.4,6.8,5.7,5.8,6.4,6.5,7.7,7.7,6.0,6.9,5.6,7.7,6.3,6.7,7.2,6.2,6.1,6.4,7.2,7.4,7.9,6.4,6.3,6.1,7.7,6.3,6.4,6.0,6.9,6.7,6.9,5.8,6.8,6.7,6.7,6.3,6.5,6.2,5.9],"xaxis":"x1","yaxis":"y1"},{"type":"scatter","name":"setosa","mode":"markers","x":[3.5,3.0,3.2,3.1,3.6,3.9,3.4,3.4,2.9,3.1,3.7,3.4,3.0,3.0,4.0,4.4,3.9,3.5,3.8,3.8,3.4,3.7,3.6,3.3,3.4,3.0,3.4,3.5,3.4,3.2,3.1,3.4,4.1,4.2,3.1,3.2,3.5,3.6,3.0,3.4,3.5,2.3,3.2,3.5,3.8,3.0,3.8,3.2,3.7,3.3],"y":[5.1,4.9,4.7,4.6,5.0,5.4,4.6,5.0,4.4,4.9,5.4,4.8,4.8,4.3,5.8,5.7,5.4,5.1,5.7,5.1,5.4,5.1,4.6,5.1,4.8,5.0,5.0,5.2,5.2,4.7,4.8,5.4,5.2,5.5,4.9,5.0,5.5,4.9,4.4,5.1,5.0,4.5,4.4,5.0,5.1,4.8,5.1,4.6,5.3,5.0],"xaxis":"x2","yaxis":"y2"},{"type":"scatter","name":"versicolor","mode":"markers","x":[3.2,3.2,3.1,2.3,2.8,2.8,3.3,2.4,2.9,2.7,2.0,3.0,2.2,2.9,2.9,3.1,3.0,2.7,2.2,2.5,3.2,2.8,2.5,2.8,2.9,3.0,2.8,3.0,2.9,2.6,2.4,2.4,2.7,2.7,3.0,3.4,3.1,2.3,3.0,2.5,2.6,3.0,2.6,2.3,2.7,3.0,2.9,2.9,2.5,2.8],"y":[7.0,6.4,6.9,5.5,6.5,5.7,6.3,4.9,6.6,5.2,5.0,5.9,6.0,6.1,5.6,6.7,5.6,5.8,6.2,5.6,5.9,6.1,6.3,6.1,6.4,6.6,6.8,6.7,6.0,5.7,5.5,5.5,5.8,6.0,5.4,6.0,6.7,6.3,5.6,5.5,5.5,6.1,5.8,5.0,5.6,5.7,5.7,6.2,5.1,5.7],"xaxis":"x3","yaxis":"y3"}],"layout":{"title":{"text":"Iris Dataset - Subplots by Species"},"grid":{"rows":1,"columns":3,"pattern":"independent"},"xaxis":{"title":{"text":"sepal_width"},"range":[null,4.5]},"yaxis":{"title":{"text":"sepal_length"},"range":[3.0,null]},"xaxis2":{"title":{"text":"sepal_width"},"range":[null,4.5]},"yaxis2":{"title":{"text":"sepal_length"},"range":[3.0,null]},"xaxis3":{"title":{"text":"sepal_width"},"range":[null,4.5]},"yaxis3":{"title":{"text":"sepal_length"},"range":[3.0,null]}},"config":{},"frames":null});
626626
</script>
627627
</main>
628628

content/recipes/basic_charts/scatter_plots.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

content/recipes/scientific_charts/heatmaps.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,15 @@ <h2 id="basic-heatmap"><a class="header" href="#basic-heatmap">Basic Heatmap</a>
193193
</span><span class="boring">fn main() {
194194
</span>fn basic_heat_map(show: bool, file_name: &amp;str) {
195195
let z = vec![vec![1, 20, 30], vec![20, 1, 60], vec![30, 60, 1]];
196-
let trace = HeatMap::new_z(z).zmin(1.0).zmax(60.0);
196+
let trace = HeatMap::new_z(z)
197+
.zmin(1.0)
198+
.zmax(60.0)
199+
.hover_info(HoverInfo::Text)
200+
.hover_text_matrix(vec![
201+
vec!["A", "B", "C"],
202+
vec!["D", "E", "F"],
203+
vec!["G", "H", "I"],
204+
]);
197205
let mut plot = Plot::new();
198206
plot.add_trace(trace);
199207

@@ -205,7 +213,7 @@ <h2 id="basic-heatmap"><a class="header" href="#basic-heatmap">Basic Heatmap</a>
205213
<span class="boring">}</span></code></pre></pre>
206214
<div id="basic_heat_map" class="plotly-graph-div" style="height:100%; width:100%;"></div>
207215
<script type="text/javascript">
208-
Plotly.newPlot("basic_heat_map", {"data":[{"type":"heatmap","z":[[1,20,30],[20,1,60],[30,60,1]],"zmax":60.0,"zmin":1.0}],"layout":{},"config":{},"frames":null});
216+
Plotly.newPlot("basic_heat_map", {"data":[{"type":"heatmap","hoverinfo":"text","hovertext":[["A","B","C"],["D","E","F"],["G","H","I"]],"z":[[1,20,30],[20,1,60],[30,60,1]],"zmax":60.0,"zmin":1.0}],"layout":{},"config":{},"frames":null});
209217
</script>
210218
</main>
211219

content/recipes/statistical_charts/box_plots.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

content/recipes/statistical_charts/histograms.html

Lines changed: 7 additions & 7 deletions
Large diffs are not rendered by default.

content/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)