Skip to content

Commit bbf2be0

Browse files
committed
Built site for gh-pages
1 parent 0f2c27f commit bbf2be0

12 files changed

Lines changed: 74 additions & 74 deletions

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d78c194d
1+
0a84b59e

development.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h2 class="anchored" data-anchor-id="tests">Tests</h2>
340340
<h2 class="anchored" data-anchor-id="debug-mode">Debug mode</h2>
341341
<p>“Debug mode” outputs the computed JavaScript plot structure (the one passed to <code>Plot.plot</code>).</p>
342342
<p>To activate it, add <code>debug=True</code> when using <code>Plot.plot()</code> or when creating your plot generator object:</p>
343-
<div id="5dc6c6dd" class="cell" data-execution_count="1">
343+
<div id="2df24974" class="cell" data-execution_count="1">
344344
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>op <span class="op">=</span> Obsplot(debug<span class="op">=</span><span class="va">True</span>)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
345345
</div>
346346
<p>If using the <code>widget</code> renderer, debug output will be displayed in JavaScript console. With the <code>jsdom</code> renderer, it will be displayed directly in the notebook.</p>

gallery_geo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h1 class="title">Mapping and spatial data</h1>
289289
<h2 class="anchored" data-anchor-id="geo-mark">Geo mark</h2>
290290
<p>The <a href="https://observablehq.com/@observablehq/plot-geo?collection=@observablehq/plot">Geo mark</a> allows to draw geographic features such as points, lines and polygons. These marks data are passed as GeoJSON.</p>
291291
<p>This allows to create choropleth maps such as the following:</p>
292-
<div id="3c41228b" class="cell" data-execution_count="2">
292+
<div id="6f8ed075" class="cell" data-execution_count="2">
293293
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> pyobsplot <span class="im">import</span> Obsplot, Plot</span>
294294
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> geopandas <span class="im">as</span> gpd</span>
295295
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pandas <span class="im">as</span> pd</span>
@@ -342,7 +342,7 @@ <h2 class="anchored" data-anchor-id="geo-mark">Geo mark</h2>
342342
</div>
343343
</div>
344344
<p>Of course other marks can be used in conjunction with geo marks. This example represents the density of Walmarts supermarkets and is taken from the <a href="https://observablehq.com/@observablehq/plot-mapping?collection=@observablehq/plot">Mapping notebook</a>.</p>
345-
<div id="9f8b1d6f" class="cell" data-execution_count="3">
345+
<div id="048be5a0" class="cell" data-execution_count="3">
346346
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Load US states from TopoJson with geopandas and convert to GeoJson</span></span>
347347
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>states <span class="op">=</span> gpd.read_file(<span class="st">"data/us-counties-10m.json"</span>, layer<span class="op">=</span><span class="st">"states"</span>).to_json()</span>
348348
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>nation <span class="op">=</span> gpd.read_file(<span class="st">"data/us-counties-10m.json"</span>, layer<span class="op">=</span><span class="st">"nation"</span>).to_json()</span>
@@ -386,7 +386,7 @@ <h2 class="anchored" data-anchor-id="geo-mark">Geo mark</h2>
386386
<h2 class="anchored" data-anchor-id="raster-mark">Raster mark</h2>
387387
<p>The <a href="https://observablehq.com/@observablehq/plot-raster?collection=@observablehq/plot">Raster mark</a> creates an image from spatial data.</p>
388388
<p>Plot allows to do different type of spatial interpolations, such as <em>nearest</em>, which draws voronoi cells around values:</p>
389-
<div id="2437e591" class="cell" data-execution_count="4">
389+
<div id="0976ee85" class="cell" data-execution_count="4">
390390
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> polars <span class="im">as</span> pl</span>
391391
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
392392
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>ca55 <span class="op">=</span> pl.read_csv(<span class="st">"data/ca55-south.csv"</span>)</span>
@@ -433,7 +433,7 @@ <h2 class="anchored" data-anchor-id="raster-mark">Raster mark</h2>
433433
</div>
434434
</div>
435435
<p>Or the more recent random walk interpolation:</p>
436-
<div id="7945c973" class="cell" data-execution_count="5">
436+
<div id="aad70b57" class="cell" data-execution_count="5">
437437
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>flare_map(<span class="st">"random-walk"</span>)</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
438438
<div class="cell-output cell-output-display">
439439
<figure class="plot-d6a7b5-figure figure" style="max-width: initial; padding: 0px 5px 5px 5px; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" typstbg="#FFFFFF" typstfg="#000000" typstcaption="#777777"><svg class="plot-d6a7b5" fill="currentColor" font-family="system-ui, sans-serif" font-size="10" text-anchor="middle" width="640" height="500" viewbox="0 0 640 500" xmlns="http://www.w3.org/2000/svg" xlink="http://www.w3.org/1999/xlink" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><style>:where(.plot-d6a7b5) {

gallery_interaction.html

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

gallery_marks.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ <h1 class="title">Marks</h1>
291291
<section id="cell-mark" class="level2">
292292
<h2 class="anchored" data-anchor-id="cell-mark">Cell mark</h2>
293293
<p>The following chart, taken from the <a href="https://observablehq.com/@observablehq/plot-cell?collection=@observablehq/plot">Cell Mark notebook</a>, shows the rating of every episode of <em>The Simpsons</em>.</p>
294-
<div id="3e8503ba" class="cell" data-execution_count="2">
294+
<div id="a85f66fe" class="cell" data-execution_count="2">
295295
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> polars <span class="im">as</span> pl</span>
296296
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> pyobsplot <span class="im">import</span> Plot, d3, Math, js</span>
297297
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
@@ -340,7 +340,7 @@ <h2 class="anchored" data-anchor-id="cell-mark">Cell mark</h2>
340340
<section id="faceting" class="level2">
341341
<h2 class="anchored" data-anchor-id="faceting">Faceting</h2>
342342
<p><em>Faceting</em> allows to easily produce multiple plots by partitioning data. The following facet plot is taken from the <a href="https://observablehq.com/@observablehq/plot-facets?collection=@observablehq/plot">Facets notebook</a>.</p>
343-
<div id="9992baac" class="cell" data-execution_count="3">
343+
<div id="892d6e02" class="cell" data-execution_count="3">
344344
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>penguins <span class="op">=</span> pl.read_csv(<span class="st">"data/penguins.csv"</span>)</span>
345345
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
346346
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>Plot.plot(</span>
@@ -392,7 +392,7 @@ <h2 class="anchored" data-anchor-id="faceting">Faceting</h2>
392392
<section id="arrow-mark" class="level2">
393393
<h2 class="anchored" data-anchor-id="arrow-mark">Arrow mark</h2>
394394
<p>Some marks allow for nice representation of complex data. The following plot, taken from the <a href="https://observablehq.com/@observablehq/plot-arrow?collection=@observablehq/plot">Arrow mark notebook</a>, shows the evolution of inequality and population in various U.S. cities.</p>
395-
<div id="b61eaf94" class="cell" data-execution_count="4">
395+
<div id="6729774c" class="cell" data-execution_count="4">
396396
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>metros <span class="op">=</span> pl.read_csv(<span class="st">"data/metros.csv"</span>)</span>
397397
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
398398
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>Plot.plot(</span>
@@ -464,7 +464,7 @@ <h2 class="anchored" data-anchor-id="arrow-mark">Arrow mark</h2>
464464
<section id="contour-mark" class="level2">
465465
<h2 class="anchored" data-anchor-id="contour-mark">Contour mark</h2>
466466
<p>The contour mark allows for nice representations of spatial data. The following example taken from the <a href="https://observablehq.com/@observablehq/plot-contour?collection=@observablehq/plot">Contour mark notebook</a> shows water vapor data from november 2022 (note that data processing and plot code are slightly modified to adapt to <code>pyobsplot</code> specificities).</p>
467-
<div id="74cfd700" class="cell" data-execution_count="5">
467+
<div id="bf1a0eb0" class="cell" data-execution_count="5">
468468
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>vapor <span class="op">=</span> (</span>
469469
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a> pl.read_csv(<span class="st">"data/vapor.csv"</span>, has_header<span class="op">=</span><span class="va">False</span>, null_values<span class="op">=</span><span class="st">"99999.0"</span>)</span>
470470
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a> .transpose()</span>

gallery_themes.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ <h1 class="title">Themes</h1>
290290
<section id="light-theme" class="level2">
291291
<h2 class="anchored" data-anchor-id="light-theme"><code>light</code> theme</h2>
292292
<p>The light theme produces plots with a white background and a black foreground color. This is the default theme:</p>
293-
<div id="f9d20f8f" class="cell" data-execution_count="2">
293+
<div id="de57a3a2" class="cell" data-execution_count="2">
294294
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> polars <span class="im">as</span> pl</span>
295295
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> pyobsplot <span class="im">import</span> Obsplot, Plot, d3, js</span>
296296
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
@@ -345,7 +345,7 @@ <h2 class="anchored" data-anchor-id="light-theme"><code>light</code> theme</h2>
345345
<section id="dark-theme" class="level2">
346346
<h2 class="anchored" data-anchor-id="dark-theme"><code>dark</code> theme</h2>
347347
<p>The dark theme produces plots with a black background and a white foreground color.</p>
348-
<div id="b17125ba" class="cell" data-execution_count="3">
348+
<div id="9b453172" class="cell" data-execution_count="3">
349349
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>Plot.plot(</span>
350350
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> {</span>
351351
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"y"</span>: {<span class="st">"grid"</span>: <span class="va">True</span>},</span>
@@ -396,7 +396,7 @@ <h2 class="anchored" data-anchor-id="dark-theme"><code>dark</code> theme</h2>
396396
<h2 class="anchored" data-anchor-id="current-theme"><code>current</code> theme</h2>
397397
<div style="background-color: #ffeeee; color: #7e0c00; padding: 1em;">
398398
<p>The “current” theme uses a transparent background and a <code>currentColor</code> foreground, so it should keep the current color theme:</p>
399-
<div id="5a6624c1" class="cell" data-execution_count="4">
399+
<div id="bf303233" class="cell" data-execution_count="4">
400400
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>Plot.plot(</span>
401401
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> {</span>
402402
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"y"</span>: {<span class="st">"grid"</span>: <span class="va">True</span>},</span>

gallery_transforms.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ <h1 class="title">Transforms</h1>
292292
<section id="group-transform" class="level2">
293293
<h2 class="anchored" data-anchor-id="group-transform">Group transform</h2>
294294
<p><a href="https://observablehq.com/@observablehq/plot-group?collection=@observablehq/plot">Group transform</a> allows to compute summary values before plotting them. It is often used to make bar charts.</p>
295-
<div id="f2d7125a" class="cell" data-execution_count="2">
295+
<div id="d4069616" class="cell" data-execution_count="2">
296296
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> polars <span class="im">as</span> pl</span>
297297
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> pyobsplot <span class="im">import</span> Plot, d3, Math, js</span>
298298
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
@@ -330,7 +330,7 @@ <h2 class="anchored" data-anchor-id="group-transform">Group transform</h2>
330330
<section id="dodge-transform" class="level2">
331331
<h2 class="anchored" data-anchor-id="dodge-transform">Dodge transform</h2>
332332
<p>The <a href="https://observablehq.com/@observablehq/plot-dodge?collection=@observablehq/plot">Dodge transform</a> allows to pack marks without overlapping. The following chart shows data about IPO offerings in the US.</p>
333-
<div id="6d5e02e9" class="cell" data-execution_count="3">
333+
<div id="bda0d178" class="cell" data-execution_count="3">
334334
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> datetime <span class="im">import</span> datetime</span>
335335
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
336336
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>ipos <span class="op">=</span> pl.read_csv(<span class="st">"data/ipos.csv"</span>, try_parse_dates<span class="op">=</span><span class="va">True</span>).<span class="bu">filter</span>(</span>
@@ -381,7 +381,7 @@ <h2 class="anchored" data-anchor-id="dodge-transform">Dodge transform</h2>
381381
<section id="hexbin-transform" class="level2">
382382
<h2 class="anchored" data-anchor-id="hexbin-transform">Hexbin transform</h2>
383383
<p>The <a href="https://observablehq.com/@observablehq/plot-hexbin?collection=@observablehq/plot">Hexbin transform</a> aggregates two dimensional points into hexagonal bins.</p>
384-
<div id="8deea5c7" class="cell" data-execution_count="4">
384+
<div id="73e9e23f" class="cell" data-execution_count="4">
385385
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>Plot.plot(</span>
386386
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> {</span>
387387
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a> <span class="st">"inset"</span>: <span class="dv">10</span>,</span>
@@ -441,7 +441,7 @@ <h2 class="anchored" data-anchor-id="hexbin-transform">Hexbin transform</h2>
441441
<section id="map-transform" class="level2">
442442
<h2 class="anchored" data-anchor-id="map-transform">Map transform</h2>
443443
<p><a href="https://observablehq.com/@observablehq/plot-map?collection=@observablehq/plot">Map transform</a> family can be used to normalize values.</p>
444-
<div id="f54c52a5" class="cell" data-execution_count="5">
444+
<div id="d85951a5" class="cell" data-execution_count="5">
445445
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>stocks <span class="op">=</span> pl.read_csv(<span class="st">"data/stocks.csv"</span>, try_parse_dates<span class="op">=</span><span class="va">True</span>)</span>
446446
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a></span>
447447
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a>Plot.plot(</span>
@@ -494,7 +494,7 @@ <h2 class="anchored" data-anchor-id="map-transform">Map transform</h2>
494494
<section id="transforms-composition" class="level2">
495495
<h2 class="anchored" data-anchor-id="transforms-composition">Transforms composition</h2>
496496
<p>Several group and map transforms can be applied and composed to create complex representations, such as this distribution of group ages by US states adapted from the <a href="https://observablehq.com/@observablehq/plot-map?collection=@observablehq/plot">Map transform</a> notebook.</p>
497-
<div id="4a567d5a" class="cell" data-execution_count="6">
497+
<div id="d0fe97de" class="cell" data-execution_count="6">
498498
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Load and prepare data</span></span>
499499
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a>stateage <span class="op">=</span> (</span>
500500
<span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a> pl.read_csv(<span class="st">"data/us-population-state-age.csv"</span>)</span>

0 commit comments

Comments
 (0)