Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Feb 21, 2025
1 parent 1bc3117 commit 4ff644e
Show file tree
Hide file tree
Showing 14 changed files with 275 additions and 275 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e65abbd8
29d6a645
2 changes: 1 addition & 1 deletion changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<link href="site_libs/quarto-html/quarto-syntax-highlighting-8e54dfbe729680b42f22c627ac27a053.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap-d0ee546a45abd81f589d1da344d24cd7.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-4c3ee2c6b7981b6f4a3b84a1e9d0b966.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down
4 changes: 2 additions & 2 deletions development.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<link href="site_libs/quarto-html/quarto-syntax-highlighting-8e54dfbe729680b42f22c627ac27a053.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap-d0ee546a45abd81f589d1da344d24cd7.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-4c3ee2c6b7981b6f4a3b84a1e9d0b966.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -331,7 +331,7 @@ <h2 class="anchored" data-anchor-id="tests">Tests</h2>
<h2 class="anchored" data-anchor-id="debug-mode">Debug mode</h2>
<p>“Debug mode” outputs the computed JavaScript plot structure (the one passed to <code>Plot.plot</code>).</p>
<p>To activate it, add <code>debug=True</code> when using <code>Plot.plot()</code> or when creating your plot generator object:</p>
<div id="cd111999" class="cell" data-execution_count="1">
<div id="5b751b18" class="cell" data-execution_count="1">
<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><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<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>
Expand Down
10 changes: 5 additions & 5 deletions gallery_geo.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<link href="site_libs/quarto-html/quarto-syntax-highlighting-8e54dfbe729680b42f22c627ac27a053.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap-d0ee546a45abd81f589d1da344d24cd7.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-4c3ee2c6b7981b6f4a3b84a1e9d0b966.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -280,7 +280,7 @@ <h1 class="title">Mapping and spatial data</h1>
<h2 class="anchored" data-anchor-id="geo-mark">Geo mark</h2>
<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>
<p>This allows to create choropleth maps such as the following:</p>
<div id="9fa65af9" class="cell" data-execution_count="2">
<div id="8feffd21" class="cell" data-execution_count="2">
<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>
<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>
<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>
Expand Down Expand Up @@ -333,7 +333,7 @@ <h2 class="anchored" data-anchor-id="geo-mark">Geo mark</h2>
</div>
</div>
<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>
<div id="d12846dc" class="cell" data-execution_count="3">
<div id="2a2f9b36" class="cell" data-execution_count="3">
<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>
<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>
<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>
Expand Down Expand Up @@ -377,7 +377,7 @@ <h2 class="anchored" data-anchor-id="geo-mark">Geo mark</h2>
<h2 class="anchored" data-anchor-id="raster-mark">Raster mark</h2>
<p>The <a href="https://observablehq.com/@observablehq/plot-raster?collection=@observablehq/plot">Raster mark</a> creates an image from spatial data.</p>
<p>Plot allows to do different type of spatial interpolations, such as <em>nearest</em>, which draws voronoi cells around values:</p>
<div id="f2c57c7f" class="cell" data-execution_count="4">
<div id="1c82fcdc" class="cell" data-execution_count="4">
<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>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a></span>
<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>
Expand Down Expand Up @@ -424,7 +424,7 @@ <h2 class="anchored" data-anchor-id="raster-mark">Raster mark</h2>
</div>
</div>
<p>Or the more recent random walk interpolation:</p>
<div id="ef68a201" class="cell" data-execution_count="5">
<div id="6b6ff260" class="cell" data-execution_count="5">
<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><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display">
<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) {
Expand Down
16 changes: 8 additions & 8 deletions gallery_interaction.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions gallery_marks.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions gallery_themes.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<link href="site_libs/quarto-html/quarto-syntax-highlighting-8e54dfbe729680b42f22c627ac27a053.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap-d0ee546a45abd81f589d1da344d24cd7.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-4c3ee2c6b7981b6f4a3b84a1e9d0b966.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -281,7 +281,7 @@ <h1 class="title">Themes</h1>
<section id="light-theme" class="level2">
<h2 class="anchored" data-anchor-id="light-theme"><code>light</code> theme</h2>
<p>The light theme produces plots with a white background and a black foreground color. This is the default theme:</p>
<div id="302b3833" class="cell" data-execution_count="2">
<div id="225a074a" class="cell" data-execution_count="2">
<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>
<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>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
Expand Down Expand Up @@ -336,7 +336,7 @@ <h2 class="anchored" data-anchor-id="light-theme"><code>light</code> theme</h2>
<section id="dark-theme" class="level2">
<h2 class="anchored" data-anchor-id="dark-theme"><code>dark</code> theme</h2>
<p>The dark theme produces plots with a black background and a white foreground color.</p>
<div id="d4d14d3d" class="cell" data-execution_count="3">
<div id="efa62621" class="cell" data-execution_count="3">
<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>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a> {</span>
<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>
Expand Down Expand Up @@ -387,7 +387,7 @@ <h2 class="anchored" data-anchor-id="dark-theme"><code>dark</code> theme</h2>
<h2 class="anchored" data-anchor-id="current-theme"><code>current</code> theme</h2>
<div style="background-color: #ffeeee; color: #7e0c00; padding: 1em;">
<p>The “current” theme uses a transparent background and a <code>currentColor</code> foreground, so it should keep the current color theme:</p>
<div id="195104b5" class="cell" data-execution_count="4">
<div id="c3241d1d" class="cell" data-execution_count="4">
<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>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> {</span>
<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>
Expand Down
12 changes: 6 additions & 6 deletions gallery_transforms.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<link href="site_libs/quarto-html/quarto-syntax-highlighting-8e54dfbe729680b42f22c627ac27a053.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap-d0ee546a45abd81f589d1da344d24cd7.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-4c3ee2c6b7981b6f4a3b84a1e9d0b966.min.css" rel="stylesheet" append-hash="true" id="quarto-bootstrap" data-mode="light">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
Expand Down Expand Up @@ -283,7 +283,7 @@ <h1 class="title">Transforms</h1>
<section id="group-transform" class="level2">
<h2 class="anchored" data-anchor-id="group-transform">Group transform</h2>
<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>
<div id="fe3d9049" class="cell" data-execution_count="2">
<div id="24fefe40" class="cell" data-execution_count="2">
<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>
<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>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
Expand Down Expand Up @@ -321,7 +321,7 @@ <h2 class="anchored" data-anchor-id="group-transform">Group transform</h2>
<section id="dodge-transform" class="level2">
<h2 class="anchored" data-anchor-id="dodge-transform">Dodge transform</h2>
<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>
<div id="e313c3c0" class="cell" data-execution_count="3">
<div id="ffdc636d" class="cell" data-execution_count="3">
<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>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a></span>
<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>
Expand Down Expand Up @@ -372,7 +372,7 @@ <h2 class="anchored" data-anchor-id="dodge-transform">Dodge transform</h2>
<section id="hexbin-transform" class="level2">
<h2 class="anchored" data-anchor-id="hexbin-transform">Hexbin transform</h2>
<p>The <a href="https://observablehq.com/@observablehq/plot-hexbin?collection=@observablehq/plot">Hexbin transform</a> aggregates two dimensional points into hexagonal bins.</p>
<div id="472e2678" class="cell" data-execution_count="4">
<div id="fb6cec50" class="cell" data-execution_count="4">
<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>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a> {</span>
<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>
Expand Down Expand Up @@ -432,7 +432,7 @@ <h2 class="anchored" data-anchor-id="hexbin-transform">Hexbin transform</h2>
<section id="map-transform" class="level2">
<h2 class="anchored" data-anchor-id="map-transform">Map transform</h2>
<p><a href="https://observablehq.com/@observablehq/plot-map?collection=@observablehq/plot">Map transform</a> family can be used to normalize values.</p>
<div id="34f6a1a3" class="cell" data-execution_count="5">
<div id="5331039a" class="cell" data-execution_count="5">
<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>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a>Plot.plot(</span>
Expand Down Expand Up @@ -485,7 +485,7 @@ <h2 class="anchored" data-anchor-id="map-transform">Map transform</h2>
<section id="transforms-composition" class="level2">
<h2 class="anchored" data-anchor-id="transforms-composition">Transforms composition</h2>
<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>
<div id="be171e05" class="cell" data-execution_count="6">
<div id="0df5b8a6" class="cell" data-execution_count="6">
<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>
<span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a>stateage <span class="op">=</span> (</span>
<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>
Expand Down
Loading

0 comments on commit 4ff644e

Please sign in to comment.