piccolbo/altair_recipes

View on GitHub
docs/test_scatterplot.html

Summary

Maintainability
Test Coverage

<div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">altair_recipes</span> <span class="kn">as</span> <span class="nn">ar</span>
<span class="kn">from</span> <span class="nn">altair_recipes.common</span> <span class="kn">import</span> <span class="n">viz_reg_test</span>
<span class="kn">from</span> <span class="nn">altair_recipes.display_pweave</span> <span class="kn">import</span> <span class="n">show_test</span>
<span class="kn">from</span> <span class="nn">hypothesis</span> <span class="kn">import</span> <span class="n">given</span>
<span class="kn">from</span> <span class="nn">hypothesis.extra.pandas</span> <span class="kn">import</span> <span class="n">columns</span><span class="p">,</span> <span class="n">data_frames</span>
<span class="kn">from</span> <span class="nn">vega_datasets</span> <span class="kn">import</span> <span class="n">data</span>
</pre></div>

<h2>Scatterplot</h2>




<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_scatterplot</span><span class="p">():</span>
    <span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">scatterplot</span><span class="p">(</span>
        <span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">(),</span>
        <span class="n">x</span><span class="o">=</span><span class="s2">&quot;petalWidth&quot;</span><span class="p">,</span>
        <span class="n">y</span><span class="o">=</span><span class="s2">&quot;petalLength&quot;</span><span class="p">,</span>
        <span class="n">color</span><span class="o">=</span><span class="s2">&quot;sepalWidth&quot;</span><span class="p">,</span>
        <span class="n">tooltip</span><span class="o">=</span><span class="s2">&quot;species&quot;</span><span class="p">,</span>
    <span class="p">)</span>


<span class="n">show_test</span><span class="p">(</span><span class="n">test_scatterplot</span><span class="p">)</span>
</pre></div>


<script src="https://cdn.jsdelivr.net/npm/vega@3"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@2"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@3"></script>
 <div id="A99f162a1b8a729e09ea76921a408c030cc29ea55993c168020f0b06ad4a218cc"></div>
  <script type="text/javascript">
    var spec = {
  "$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 400
    }
  },
  "data": {
    "name": "data-a264acbd6e539a8b3afc0cb5f240fb57"
  },
  "datasets": {
    "data-a264acbd6e539a8b3afc0cb5f240fb57": [
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.9,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.6,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 2.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.4,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.1,
        "petalWidth": 0.1,
        "sepalLength": 4.3,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalLength": 5.8,
        "sepalWidth": 4.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.7,
        "sepalWidth": 4.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.7,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.2,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.0,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.5,
        "sepalLength": 5.1,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.4,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.2,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalLength": 5.2,
        "sepalWidth": 4.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.5,
        "sepalWidth": 4.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 5.5,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalLength": 4.9,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.5,
        "sepalWidth": 2.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.6000000000000001,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.3,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalLength": 7.0,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 5.5,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.5,
        "sepalLength": 6.5,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.6,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalLength": 4.9,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.3,
        "sepalLength": 6.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.4,
        "sepalLength": 5.2,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalLength": 5.0,
        "sepalWidth": 2.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.5,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.0,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.6,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.0,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.2,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.1,
        "sepalLength": 5.6,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 5.9,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.2,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalLength": 6.4,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalLength": 6.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.4,
        "sepalLength": 6.8,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.7000000000000002,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.0,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalLength": 5.7,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.8,
        "petalWidth": 1.1,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.7,
        "petalWidth": 1.0,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.2,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.6,
        "sepalLength": 6.0,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 5.4,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.6,
        "sepalLength": 6.0,
        "sepalWidth": 3.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.5,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.3,
        "sepalLength": 6.3,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 5.5,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.2,
        "sepalLength": 5.5,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.2,
        "sepalLength": 5.8,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalLength": 5.0,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.2,
        "sepalLength": 5.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalLength": 6.2,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.0,
        "petalWidth": 1.1,
        "sepalLength": 5.1,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 2.5,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.1,
        "sepalLength": 7.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.8,
        "sepalLength": 6.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 2.2,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.6,
        "petalWidth": 2.1,
        "sepalLength": 7.6,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.7000000000000002,
        "sepalLength": 4.9,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.3,
        "petalWidth": 1.8,
        "sepalLength": 7.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.8,
        "sepalLength": 6.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.5,
        "sepalLength": 7.2,
        "sepalWidth": 3.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.0,
        "sepalLength": 6.5,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 1.9,
        "sepalLength": 6.4,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 2.1,
        "sepalLength": 6.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 2.0,
        "sepalLength": 5.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.4,
        "sepalLength": 5.8,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 2.3,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.2,
        "sepalLength": 7.7,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.9,
        "petalWidth": 2.3,
        "sepalLength": 7.7,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.5,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.3,
        "sepalLength": 6.9,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 2.0,
        "sepalLength": 5.6,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.0,
        "sepalLength": 7.7,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalLength": 6.3,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.1,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 1.8,
        "sepalLength": 7.2,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 6.2,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.1,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.6,
        "sepalLength": 7.2,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 1.9,
        "sepalLength": 7.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.4,
        "petalWidth": 2.0,
        "sepalLength": 7.9,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.2,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.5,
        "sepalLength": 6.3,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.3,
        "sepalLength": 7.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalLength": 6.3,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalLength": 6.4,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 6.0,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.1,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.3,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.3,
        "sepalLength": 6.8,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.5,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.3,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.9,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.0,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.3,
        "sepalLength": 6.2,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.8,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "virginica"
      }
    ]
  },
  "encoding": {
    "color": {
      "field": "sepalWidth",
      "scale": {
        "range": [
          "#F271B8",
          "#00B4D7"
        ],
        "type": "linear"
      },
      "type": "quantitative"
    },
    "tooltip": {
      "field": "species",
      "type": "nominal"
    },
    "x": {
      "field": "petalWidth",
      "type": "quantitative"
    },
    "y": {
      "field": "petalLength",
      "type": "quantitative"
    }
  },
  "height": 600,
  "mark": {
    "opacity": 1.0,
    "type": "point"
  },
  "width": 800
};
    var opt = {"renderer": "canvas", "actions": false};
    vegaEmbed("#A99f162a1b8a729e09ea76921a408c030cc29ea55993c168020f0b06ad4a218cc", spec, opt);
  </script>
  

<h2>Scatterplot alternate data syntax</h2>




<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_scatterplot_alternate_data</span><span class="p">():</span>
    <span class="n">d</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">()</span>
    <span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">scatterplot</span><span class="p">(</span>
        <span class="n">x</span><span class="o">=</span><span class="n">d</span><span class="p">[</span><span class="s2">&quot;petalWidth&quot;</span><span class="p">],</span>
        <span class="n">y</span><span class="o">=</span><span class="n">d</span><span class="p">[</span><span class="s2">&quot;petalLength&quot;</span><span class="p">],</span>
        <span class="n">color</span><span class="o">=</span><span class="n">d</span><span class="p">[</span><span class="s2">&quot;sepalWidth&quot;</span><span class="p">],</span>
        <span class="n">tooltip</span><span class="o">=</span><span class="n">d</span><span class="p">[</span><span class="s2">&quot;species&quot;</span><span class="p">],</span>
    <span class="p">)</span>


<span class="n">show_test</span><span class="p">(</span><span class="n">test_scatterplot_alternate_data</span><span class="p">)</span>
</pre></div>

<div id="Aeca37b775ca9e2fcbaec505cff8043859c597cfa4bbd48fbfb77f51f4626e82f"></div>
  <script type="text/javascript">
    var spec = {
  "$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 400
    }
  },
  "data": {
    "name": "data-8af06816acba2f2d5d409dc4e2f00df2"
  },
  "datasets": {
    "data-8af06816acba2f2d5d409dc4e2f00df2": [
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 2.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.1,
        "petalWidth": 0.1,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalWidth": 4.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalWidth": 4.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.30000000000000004,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.30000000000000004,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.0,
        "petalWidth": 0.2,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.5,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalWidth": 4.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 4.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalWidth": 2.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.6000000000000001,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.4,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.5,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.3,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.6,
        "sepalWidth": 3.3,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.3,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.4,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalWidth": 2.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.5,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.0,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.6,
        "petalWidth": 1.3,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.0,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.1,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.2,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.4,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.7000000000000002,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.8,
        "petalWidth": 1.1,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.7,
        "petalWidth": 1.0,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.2,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.6,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.6,
        "sepalWidth": 3.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.5,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.3,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.2,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.4,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.2,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.2,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.0,
        "petalWidth": 1.1,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 2.5,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.8,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 2.2,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.6,
        "petalWidth": 2.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.7000000000000002,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.3,
        "petalWidth": 1.8,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.8,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.5,
        "sepalWidth": 3.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.0,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 1.9,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 2.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 2.0,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 2.3,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.2,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.9,
        "petalWidth": 2.3,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.5,
        "sepalWidth": 2.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.3,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 2.0,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.0,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.1,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 1.8,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.1,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.6,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 1.9,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.4,
        "petalWidth": 2.0,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.2,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.5,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.4,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.3,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.1,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.3,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.3,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.5,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.3,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.9,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.0,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.3,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      }
    ]
  },
  "encoding": {
    "color": {
      "field": "sepalWidth",
      "scale": {
        "range": [
          "#F271B8",
          "#00B4D7"
        ],
        "type": "linear"
      },
      "type": "quantitative"
    },
    "tooltip": {
      "field": "species",
      "type": "nominal"
    },
    "x": {
      "field": "petalWidth",
      "type": "quantitative"
    },
    "y": {
      "field": "petalLength",
      "type": "quantitative"
    }
  },
  "height": 600,
  "mark": {
    "opacity": 1.0,
    "type": "point"
  },
  "width": 800
};
    var opt = {"renderer": "canvas", "actions": false};
    vegaEmbed("#Aeca37b775ca9e2fcbaec505cff8043859c597cfa4bbd48fbfb77f51f4626e82f", spec, opt);
  </script>
  

A randomized test of equivalence between the two data syntaxes:




<div class="highlight"><pre><span></span><span class="nd">@given</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">data_frames</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="n">columns</span><span class="p">([</span><span class="s2">&quot;a&quot;</span><span class="p">,</span> <span class="s2">&quot;b&quot;</span><span class="p">,</span> <span class="s2">&quot;c&quot;</span><span class="p">],</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">)))</span>
<span class="k">def</span> <span class="nf">test_scatterplot_series</span><span class="p">(</span><span class="n">data</span><span class="p">):</span>
    <span class="n">chart1</span> <span class="o">=</span> <span class="n">ar</span><span class="o">.</span><span class="n">scatterplot</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">data</span><span class="p">[[</span><span class="s2">&quot;a&quot;</span><span class="p">,</span> <span class="s2">&quot;c&quot;</span><span class="p">]])</span>
    <span class="n">chart2</span> <span class="o">=</span> <span class="n">ar</span><span class="o">.</span><span class="n">scatterplot</span><span class="p">(</span><span class="n">x</span><span class="o">=</span><span class="n">data</span><span class="p">[</span><span class="s2">&quot;a&quot;</span><span class="p">],</span> <span class="n">y</span><span class="o">=</span><span class="n">data</span><span class="p">[</span><span class="s2">&quot;c&quot;</span><span class="p">])</span>
    <span class="k">assert</span> <span class="n">chart1</span><span class="o">.</span><span class="n">to_dict</span><span class="p">()</span> <span class="o">==</span> <span class="n">chart2</span><span class="o">.</span><span class="n">to_dict</span><span class="p">()</span>
</pre></div>


<h2>Multiscatterplot at defaults</h2>




<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_multiscatterplot_defaults</span><span class="p">():</span>
    <span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">multiscatterplot</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">())</span>


<span class="n">show_test</span><span class="p">(</span><span class="n">test_multiscatterplot_defaults</span><span class="p">)</span>
</pre></div>

<div id="Ad4f5b1eefef2864ba0156b18d9498b47540c934b9eca9f5d3c6c137f1b413688"></div>
  <script type="text/javascript">
    var spec = {
  "$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 400
    }
  },
  "datasets": {
    "data-a264acbd6e539a8b3afc0cb5f240fb57": [
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.9,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.6,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 2.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.4,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.1,
        "petalWidth": 0.1,
        "sepalLength": 4.3,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalLength": 5.8,
        "sepalWidth": 4.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.7,
        "sepalWidth": 4.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.7,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.2,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.0,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.5,
        "sepalLength": 5.1,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.4,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.2,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalLength": 5.2,
        "sepalWidth": 4.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.5,
        "sepalWidth": 4.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 5.5,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalLength": 4.9,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.5,
        "sepalWidth": 2.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.6000000000000001,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.3,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalLength": 7.0,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 5.5,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.5,
        "sepalLength": 6.5,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.6,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalLength": 4.9,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.3,
        "sepalLength": 6.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.4,
        "sepalLength": 5.2,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalLength": 5.0,
        "sepalWidth": 2.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.5,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.0,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.6,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.0,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.2,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.1,
        "sepalLength": 5.6,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 5.9,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.2,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalLength": 6.4,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalLength": 6.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.4,
        "sepalLength": 6.8,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.7000000000000002,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.0,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalLength": 5.7,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.8,
        "petalWidth": 1.1,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.7,
        "petalWidth": 1.0,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.2,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.6,
        "sepalLength": 6.0,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 5.4,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.6,
        "sepalLength": 6.0,
        "sepalWidth": 3.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.5,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.3,
        "sepalLength": 6.3,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 5.5,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.2,
        "sepalLength": 5.5,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.2,
        "sepalLength": 5.8,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalLength": 5.0,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.2,
        "sepalLength": 5.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalLength": 6.2,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.0,
        "petalWidth": 1.1,
        "sepalLength": 5.1,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 2.5,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.1,
        "sepalLength": 7.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.8,
        "sepalLength": 6.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 2.2,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.6,
        "petalWidth": 2.1,
        "sepalLength": 7.6,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.7000000000000002,
        "sepalLength": 4.9,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.3,
        "petalWidth": 1.8,
        "sepalLength": 7.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.8,
        "sepalLength": 6.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.5,
        "sepalLength": 7.2,
        "sepalWidth": 3.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.0,
        "sepalLength": 6.5,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 1.9,
        "sepalLength": 6.4,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 2.1,
        "sepalLength": 6.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 2.0,
        "sepalLength": 5.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.4,
        "sepalLength": 5.8,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 2.3,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.2,
        "sepalLength": 7.7,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.9,
        "petalWidth": 2.3,
        "sepalLength": 7.7,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.5,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.3,
        "sepalLength": 6.9,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 2.0,
        "sepalLength": 5.6,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.0,
        "sepalLength": 7.7,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalLength": 6.3,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.1,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 1.8,
        "sepalLength": 7.2,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 6.2,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.1,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.6,
        "sepalLength": 7.2,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 1.9,
        "sepalLength": 7.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.4,
        "petalWidth": 2.0,
        "sepalLength": 7.9,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.2,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.5,
        "sepalLength": 6.3,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.3,
        "sepalLength": 7.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalLength": 6.3,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalLength": 6.4,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 6.0,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.1,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.3,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.3,
        "sepalLength": 6.8,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.5,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.3,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.9,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.0,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.3,
        "sepalLength": 6.2,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.8,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "virginica"
      }
    ]
  },
  "repeat": {
    "column": [
      "sepalLength",
      "sepalWidth",
      "petalLength",
      "petalWidth",
      "species"
    ],
    "row": [
      "sepalLength",
      "sepalWidth",
      "petalLength",
      "petalWidth",
      "species"
    ]
  },
  "spec": {
    "data": {
      "name": "data-a264acbd6e539a8b3afc0cb5f240fb57"
    },
    "encoding": {
      "x": {
        "field": {
          "repeat": "column"
        },
        "type": "quantitative"
      },
      "y": {
        "field": {
          "repeat": "row"
        },
        "type": "quantitative"
      }
    },
    "height": 120,
    "mark": {
      "opacity": 1.0,
      "size": 0.2,
      "type": "point"
    },
    "width": 160
  }
};
    var opt = {"renderer": "canvas", "actions": false};
    vegaEmbed("#Ad4f5b1eefef2864ba0156b18d9498b47540c934b9eca9f5d3c6c137f1b413688", spec, opt);
  </script>
  

<h2>Multiscatterplot with explicit parameters</h2>




<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_multiscatterplot_args</span><span class="p">():</span>
    <span class="sd">&quot;&quot;&quot;Test multiscatterplot.&quot;&quot;&quot;</span>
    <span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">multiscatterplot</span><span class="p">(</span>
        <span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">(),</span> <span class="n">columns</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">()</span><span class="o">.</span><span class="n">columns</span><span class="p">[:</span><span class="o">-</span><span class="mi">1</span><span class="p">],</span> <span class="n">color</span><span class="o">=</span><span class="s2">&quot;species&quot;</span>
    <span class="p">)</span>


<span class="n">show_test</span><span class="p">(</span><span class="n">test_multiscatterplot_args</span><span class="p">)</span>
</pre></div>

<div id="Ab6eabfe951f1a573c491f802371341d7f02bea6f4d068c0ea56565d77eb57cc9"></div>
  <script type="text/javascript">
    var spec = {
  "$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 400
    }
  },
  "datasets": {
    "data-a264acbd6e539a8b3afc0cb5f240fb57": [
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.9,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.6,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 2.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.4,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.1,
        "petalWidth": 0.1,
        "sepalLength": 4.3,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalLength": 5.8,
        "sepalWidth": 4.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.7,
        "sepalWidth": 4.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.7,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.2,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.0,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "petalWidth": 0.5,
        "sepalLength": 5.1,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.4,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.2,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 4.8,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.4,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.1,
        "sepalLength": 5.2,
        "sepalWidth": 4.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.5,
        "sepalWidth": 4.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 5.5,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.1,
        "sepalLength": 4.9,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.5,
        "sepalWidth": 2.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "petalWidth": 0.2,
        "sepalLength": 4.4,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.6000000000000001,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "petalWidth": 0.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.30000000000000004,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "petalWidth": 0.2,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 4.6,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "petalWidth": 0.2,
        "sepalLength": 5.3,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "petalWidth": 0.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalLength": 7.0,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 5.5,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.5,
        "sepalLength": 6.5,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.6,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalLength": 4.9,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.3,
        "sepalLength": 6.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.4,
        "sepalLength": 5.2,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalLength": 5.0,
        "sepalWidth": 2.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.5,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.0,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.6,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.0,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.2,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.1,
        "sepalLength": 5.6,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 5.9,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.5,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.2,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalLength": 6.4,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.4,
        "sepalLength": 6.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.4,
        "sepalLength": 6.8,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.7000000000000002,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 6.0,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "petalWidth": 1.0,
        "sepalLength": 5.7,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.8,
        "petalWidth": 1.1,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.7,
        "petalWidth": 1.0,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "petalWidth": 1.2,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.6,
        "sepalLength": 6.0,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.5,
        "sepalLength": 5.4,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.6,
        "sepalLength": 6.0,
        "sepalWidth": 3.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "petalWidth": 1.5,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.3,
        "sepalLength": 6.3,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.3,
        "sepalLength": 5.5,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "petalWidth": 1.2,
        "sepalLength": 5.5,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "petalWidth": 1.2,
        "sepalLength": 5.8,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "petalWidth": 1.0,
        "sepalLength": 5.0,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalLength": 5.6,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.2,
        "sepalLength": 5.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "petalWidth": 1.3,
        "sepalLength": 6.2,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.0,
        "petalWidth": 1.1,
        "sepalLength": 5.1,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "petalWidth": 1.3,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 2.5,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.1,
        "sepalLength": 7.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.8,
        "sepalLength": 6.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 2.2,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.6,
        "petalWidth": 2.1,
        "sepalLength": 7.6,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 4.5,
        "petalWidth": 1.7000000000000002,
        "sepalLength": 4.9,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.3,
        "petalWidth": 1.8,
        "sepalLength": 7.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.8,
        "sepalLength": 6.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.5,
        "sepalLength": 7.2,
        "sepalWidth": 3.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.0,
        "sepalLength": 6.5,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 1.9,
        "sepalLength": 6.4,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 2.1,
        "sepalLength": 6.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 2.0,
        "sepalLength": 5.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.4,
        "sepalLength": 5.8,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "petalWidth": 2.3,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.2,
        "sepalLength": 7.7,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.9,
        "petalWidth": 2.3,
        "sepalLength": 7.7,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.5,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.3,
        "sepalLength": 6.9,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 2.0,
        "sepalLength": 5.6,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "petalWidth": 2.0,
        "sepalLength": 7.7,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalLength": 6.3,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.1,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 6.0,
        "petalWidth": 1.8,
        "sepalLength": 7.2,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 6.2,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "petalWidth": 1.8,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.1,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "petalWidth": 1.6,
        "sepalLength": 7.2,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 1.9,
        "sepalLength": 7.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.4,
        "petalWidth": 2.0,
        "sepalLength": 7.9,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.2,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.5,
        "sepalLength": 6.3,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 1.4,
        "sepalLength": 6.1,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "petalWidth": 2.3,
        "sepalLength": 7.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalLength": 6.3,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "petalWidth": 1.8,
        "sepalLength": 6.4,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "petalWidth": 1.8,
        "sepalLength": 6.0,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.1,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "petalWidth": 2.4,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 2.3,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.9,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "petalWidth": 2.3,
        "sepalLength": 6.8,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "petalWidth": 2.5,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.3,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "petalWidth": 1.9,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "petalWidth": 2.0,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "petalWidth": 2.3,
        "sepalLength": 6.2,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "petalWidth": 1.8,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "virginica"
      }
    ]
  },
  "repeat": {
    "column": [
      "sepalLength",
      "sepalWidth",
      "petalLength",
      "petalWidth"
    ],
    "row": [
      "sepalLength",
      "sepalWidth",
      "petalLength",
      "petalWidth"
    ]
  },
  "spec": {
    "data": {
      "name": "data-a264acbd6e539a8b3afc0cb5f240fb57"
    },
    "encoding": {
      "color": {
        "field": "species",
        "type": "nominal"
      },
      "x": {
        "field": {
          "repeat": "column"
        },
        "type": "quantitative"
      },
      "y": {
        "field": {
          "repeat": "row"
        },
        "type": "quantitative"
      }
    },
    "height": 150,
    "mark": {
      "opacity": 1.0,
      "size": 0.25,
      "type": "point"
    },
    "width": 200
  }
};
    var opt = {"renderer": "canvas", "actions": false};
    vegaEmbed("#Ab6eabfe951f1a573c491f802371341d7f02bea6f4d068c0ea56565d77eb57cc9", spec, opt);
  </script>
  

<h2>Multiscatterplot alternate data syntax</h2>




<div class="highlight"><pre><span></span><span class="nd">@viz_reg_test</span>
<span class="k">def</span> <span class="nf">test_multiscatterplot_args_alternate</span><span class="p">():</span>
    <span class="sd">&quot;&quot;&quot;Test multiscatterplot.&quot;&quot;&quot;</span>
    <span class="n">d</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">iris</span><span class="p">()</span>
    <span class="k">return</span> <span class="n">ar</span><span class="o">.</span><span class="n">multiscatterplot</span><span class="p">(</span>
        <span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="n">d</span><span class="p">[</span><span class="s2">&quot;sepalLength&quot;</span><span class="p">],</span> <span class="n">d</span><span class="p">[</span><span class="s2">&quot;sepalWidth&quot;</span><span class="p">],</span> <span class="n">d</span><span class="p">[</span><span class="s2">&quot;petalLength&quot;</span><span class="p">]],</span>
        <span class="n">color</span><span class="o">=</span><span class="n">d</span><span class="p">[</span><span class="s2">&quot;species&quot;</span><span class="p">],</span>
    <span class="p">)</span>


<span class="n">show_test</span><span class="p">(</span><span class="n">test_multiscatterplot_args_alternate</span><span class="p">)</span>
</pre></div>

<div id="A5d247543477cee2863b99873e54366ac3b29d023eaf063fb82d3d83c81a062df"></div>
  <script type="text/javascript">
    var spec = {
  "$schema": "https://vega.github.io/schema/vega-lite/v4.0.0.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 400
    }
  },
  "datasets": {
    "data-be83bbcc7107b1ac8b5182fa819888fe": [
      {
        "petalLength": 1.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 4.9,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 4.6,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 5.0,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 4.6,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 4.4,
        "sepalWidth": 2.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.4,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.1,
        "sepalLength": 4.3,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "sepalLength": 5.8,
        "sepalWidth": 4.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.7,
        "sepalWidth": 4.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "sepalLength": 5.4,
        "sepalWidth": 3.9,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 5.1,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "sepalLength": 5.7,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.1,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.0,
        "sepalLength": 4.6,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.7000000000000002,
        "sepalLength": 5.1,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "sepalLength": 4.8,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "sepalLength": 5.0,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "sepalLength": 5.0,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.2,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 5.2,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "sepalLength": 4.7,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "sepalLength": 4.8,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.4,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.2,
        "sepalWidth": 4.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 5.5,
        "sepalWidth": 4.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 4.9,
        "sepalWidth": 3.1,
        "species": "setosa"
      },
      {
        "petalLength": 1.2,
        "sepalLength": 5.0,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "sepalLength": 5.5,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 4.9,
        "sepalWidth": 3.6,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "sepalLength": 4.4,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.1,
        "sepalWidth": 3.4,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "sepalLength": 4.5,
        "sepalWidth": 2.3,
        "species": "setosa"
      },
      {
        "petalLength": 1.3,
        "sepalLength": 4.4,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "sepalLength": 5.0,
        "sepalWidth": 3.5,
        "species": "setosa"
      },
      {
        "petalLength": 1.9,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 4.8,
        "sepalWidth": 3.0,
        "species": "setosa"
      },
      {
        "petalLength": 1.6,
        "sepalLength": 5.1,
        "sepalWidth": 3.8,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 4.6,
        "sepalWidth": 3.2,
        "species": "setosa"
      },
      {
        "petalLength": 1.5,
        "sepalLength": 5.3,
        "sepalWidth": 3.7,
        "species": "setosa"
      },
      {
        "petalLength": 1.4,
        "sepalLength": 5.0,
        "sepalWidth": 3.3,
        "species": "setosa"
      },
      {
        "petalLength": 4.7,
        "sepalLength": 7.0,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "sepalLength": 5.5,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "sepalLength": 6.5,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "sepalLength": 4.9,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "sepalLength": 6.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "sepalLength": 5.2,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "sepalLength": 5.0,
        "sepalWidth": 2.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "sepalLength": 6.1,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.6,
        "sepalLength": 5.6,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 6.2,
        "sepalWidth": 2.2,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "sepalLength": 5.6,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "sepalLength": 5.9,
        "sepalWidth": 3.2,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.9,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "sepalLength": 6.1,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "sepalLength": 6.4,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "sepalLength": 6.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.8,
        "sepalLength": 6.8,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 5.0,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 6.0,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.5,
        "sepalLength": 5.7,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.8,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.7,
        "sepalLength": 5.5,
        "sepalWidth": 2.4,
        "species": "versicolor"
      },
      {
        "petalLength": 3.9,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 6.0,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 5.4,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 6.0,
        "sepalWidth": 3.4,
        "species": "versicolor"
      },
      {
        "petalLength": 4.7,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "sepalLength": 6.3,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "sepalLength": 5.6,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "sepalLength": 5.5,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.4,
        "sepalLength": 5.5,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 4.6,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.0,
        "sepalLength": 5.8,
        "sepalWidth": 2.6,
        "species": "versicolor"
      },
      {
        "petalLength": 3.3,
        "sepalLength": 5.0,
        "sepalWidth": 2.3,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "sepalLength": 5.6,
        "sepalWidth": 2.7,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "sepalLength": 5.7,
        "sepalWidth": 3.0,
        "species": "versicolor"
      },
      {
        "petalLength": 4.2,
        "sepalLength": 5.7,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 4.3,
        "sepalLength": 6.2,
        "sepalWidth": 2.9,
        "species": "versicolor"
      },
      {
        "petalLength": 3.0,
        "sepalLength": 5.1,
        "sepalWidth": 2.5,
        "species": "versicolor"
      },
      {
        "petalLength": 4.1,
        "sepalLength": 5.7,
        "sepalWidth": 2.8,
        "species": "versicolor"
      },
      {
        "petalLength": 6.0,
        "sepalLength": 6.3,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "sepalLength": 7.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "sepalLength": 6.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.6,
        "sepalLength": 7.6,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 4.5,
        "sepalLength": 4.9,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.3,
        "sepalLength": 7.3,
        "sepalWidth": 2.9,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "sepalLength": 6.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "sepalLength": 7.2,
        "sepalWidth": 3.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 6.5,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "sepalLength": 6.4,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "sepalLength": 6.8,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "sepalLength": 5.7,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 5.8,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.3,
        "sepalLength": 6.4,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "sepalLength": 7.7,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.9,
        "sepalLength": 7.7,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "sepalLength": 6.0,
        "sepalWidth": 2.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "sepalLength": 6.9,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "sepalLength": 5.6,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.7,
        "sepalLength": 7.7,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "sepalLength": 6.3,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 6.0,
        "sepalLength": 7.2,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "sepalLength": 6.2,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 4.9,
        "sepalLength": 6.1,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.8,
        "sepalLength": 7.2,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "sepalLength": 7.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 6.4,
        "sepalLength": 7.9,
        "sepalWidth": 3.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "sepalLength": 6.4,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 6.3,
        "sepalWidth": 2.8,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "sepalLength": 6.1,
        "sepalWidth": 2.6,
        "species": "virginica"
      },
      {
        "petalLength": 6.1,
        "sepalLength": 7.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "sepalLength": 6.3,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.5,
        "sepalLength": 6.4,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 4.8,
        "sepalLength": 6.0,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.6,
        "sepalLength": 6.7,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 6.9,
        "sepalWidth": 3.1,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 5.8,
        "sepalWidth": 2.7,
        "species": "virginica"
      },
      {
        "petalLength": 5.9,
        "sepalLength": 6.8,
        "sepalWidth": 3.2,
        "species": "virginica"
      },
      {
        "petalLength": 5.7,
        "sepalLength": 6.7,
        "sepalWidth": 3.3,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "sepalLength": 6.7,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.0,
        "sepalLength": 6.3,
        "sepalWidth": 2.5,
        "species": "virginica"
      },
      {
        "petalLength": 5.2,
        "sepalLength": 6.5,
        "sepalWidth": 3.0,
        "species": "virginica"
      },
      {
        "petalLength": 5.4,
        "sepalLength": 6.2,
        "sepalWidth": 3.4,
        "species": "virginica"
      },
      {
        "petalLength": 5.1,
        "sepalLength": 5.9,
        "sepalWidth": 3.0,
        "species": "virginica"
      }
    ]
  },
  "repeat": {
    "column": [
      "sepalLength",
      "sepalWidth",
      "petalLength"
    ],
    "row": [
      "sepalLength",
      "sepalWidth",
      "petalLength"
    ]
  },
  "spec": {
    "data": {
      "name": "data-be83bbcc7107b1ac8b5182fa819888fe"
    },
    "encoding": {
      "color": {
        "field": "species",
        "type": "nominal"
      },
      "x": {
        "field": {
          "repeat": "column"
        },
        "type": "quantitative"
      },
      "y": {
        "field": {
          "repeat": "row"
        },
        "type": "quantitative"
      }
    },
    "height": 200,
    "mark": {
      "opacity": 1.0,
      "size": 0.3333333333333333,
      "type": "point"
    },
    "width": 266
  }
};
    var opt = {"renderer": "canvas", "actions": false};
    vegaEmbed("#A5d247543477cee2863b99873e54366ac3b29d023eaf063fb82d3d83c81a062df", spec, opt);
  </script>
  

A randomized test of equivalence bewteen the two


<div class="highlight"><pre><span></span><span class="nd">@given</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">data_frames</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="n">columns</span><span class="p">([</span><span class="s2">&quot;a&quot;</span><span class="p">,</span> <span class="s2">&quot;b&quot;</span><span class="p">,</span> <span class="s2">&quot;c&quot;</span><span class="p">],</span> <span class="n">dtype</span><span class="o">=</span><span class="nb">float</span><span class="p">)))</span>
<span class="k">def</span> <span class="nf">test_multiscatterplot_series</span><span class="p">(</span><span class="n">data</span><span class="p">):</span>
    <span class="n">chart1</span> <span class="o">=</span> <span class="n">ar</span><span class="o">.</span><span class="n">multiscatterplot</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">data</span><span class="p">)</span>
    <span class="n">chart2</span> <span class="o">=</span> <span class="n">ar</span><span class="o">.</span><span class="n">multiscatterplot</span><span class="p">(</span><span class="n">columns</span><span class="o">=</span><span class="p">[</span><span class="n">data</span><span class="p">[</span><span class="s2">&quot;a&quot;</span><span class="p">],</span> <span class="n">data</span><span class="p">[</span><span class="s2">&quot;b&quot;</span><span class="p">],</span> <span class="n">data</span><span class="p">[</span><span class="s2">&quot;c&quot;</span><span class="p">]])</span>
    <span class="k">assert</span> <span class="n">chart1</span><span class="o">.</span><span class="n">to_dict</span><span class="p">()</span> <span class="o">==</span> <span class="n">chart2</span><span class="o">.</span><span class="n">to_dict</span><span class="p">()</span>
</pre></div>