> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# visualize_isochrone

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.visualize_isochrone"> <span className="sig-name descname"><span className="pre">visualize\_isochrone</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">graph\_name</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">source\_node</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">max\_solution\_radius</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">-1.0</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">weights\_on\_edges</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">restrictions</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">\[]</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">num\_levels</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">1</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">generate\_image</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">True</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">levels\_table</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">''</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">style\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">solve\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">contour\_options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L42253"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>Generate an image containing isolines for travel results using an existing graph. Isolines represent curves of equal cost, with cost typically referring to the time or distance assigned as the weights of the underlying graph. See <a className="reference external" href="/content/graph_solver/network_graph_solver/">Graphs and Solvers</a> for more information on graphs.</p>
      <p><strong>Parameters</strong></p>

      <div className="blockquote">
        <div>
          <div className="dl">
            <div className="dt">graph\_name (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Name of the graph on which the isochrone is to be computed.</p>
            </div>

            <div className="dt">source\_node (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Starting vertex on the underlying graph from/to which the isochrones are created.</p>
            </div>

            <div className="dt">max\_solution\_radius (<span className="em">float</span>) –</div>

            <div className="dd">
              <p>Extent of the search radius around input parameter <span className="em">source\_node</span>. Set to ‘-1.0’ for unrestricted search radius. The default value is -1.0.</p>
            </div>

            <div className="dt">weights\_on\_edges (<span className="em">list of str</span>) –</div>

            <div className="dd">
              <p>Additional weights to apply to the edges of an existing graph. Weights must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS WEIGHTS\_EDGE\_ID’, or expressions, e.g., ‘ST\_LENGTH(wkt) AS WEIGHTS\_VALUESPECIFIED’. Any provided weights will be added (in the case of ‘WEIGHTS\_VALUESPECIFIED’) to or multiplied with (in the case of ‘WEIGHTS\_FACTORSPECIFIED’) the existing weight(s). The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
            </div>

            <div className="dt">restrictions (<span className="em">list of str</span>) –</div>

            <div className="dd">
              <p>Additional restrictions to apply to the nodes/edges of an existing graph. Restrictions must be specified using <a className="reference external" href="/content/graph_solver/network_graph_solver/#identifiers">identifiers</a>; identifiers are grouped as <a className="reference external" href="/content/graph_solver/network_graph_solver/#id-combos">combinations</a>. Identifiers can be used with existing column names, e.g., ‘table.column AS RESTRICTIONS\_EDGE\_ID’, or expressions, e.g., ‘column/2 AS RESTRICTIONS\_VALUECOMPARED’. If <span className="em">remove\_previous\_restrictions</span> is set to <span className="em">true</span>, any provided restrictions will replace the existing restrictions. If <span className="em">remove\_previous\_restrictions</span> is set to <span className="em">false</span>, any provided restrictions will be added (in the case of ‘RESTRICTIONS\_VALUECOMPARED’) to or replaced (in the case of ‘RESTRICTIONS\_ONOFFCOMPARED’). The default value is an empty list ( \[] ). The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
            </div>

            <div className="dt">num\_levels (<span className="em">int</span>) –</div>

            <div className="dd">
              <p>Number of equally-separated isochrones to compute. The default value is 1.</p>
            </div>

            <div className="dt">generate\_image (<span className="em">bool</span>) –</div>

            <div className="dd">
              <p>If set to <span className="em">true</span>, generates a PNG image of the isochrones in the response. Allowed values are:</p>

              <ul className="simple">
                <li>
                  <p>True</p>
                </li>

                <li>
                  <p>False</p>
                </li>
              </ul>

              <p>The default value is True.</p>
            </div>

            <div className="dt">levels\_table (<span className="em">str</span>) –</div>

            <div className="dd">
              <p>Name of the table to output the isochrones to, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. The table will contain levels and their corresponding WKT geometry. If no value is provided, the table is not generated. The default value is ‘’.</p>
            </div>

            <div className="dt">style\_options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Various style related options of the isochrone image. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>line\_size</strong> – The width of the contour lines in pixels. The default value is ‘3’. The minimum allowed value is ‘0’. The maximum allowed value is ‘20’.</p>
                </li>

                <li>
                  <p><strong>color</strong> – Color of generated isolines. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). If alpha is specified and flooded contours are enabled, it will be used for as the transparency of the latter. The default value is ‘FF696969’.</p>
                </li>

                <li>
                  <p><strong>bg\_color</strong> – When input parameter <span className="em">generate\_image</span> is set to <span className="em">true</span>, background color of the generated image. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). The default value is ‘00000000’.</p>
                </li>

                <li>
                  <p><strong>text\_color</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, color for the labels. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). The default value is ‘FF000000’.</p>
                </li>

                <li>
                  <p><strong>colormap</strong> – Colormap for contours or fill-in regions when applicable. All color values must be in the format RRGGBB or AARRGGBB (to specify the alpha value). Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>jet</p>
                    </li>

                    <li>
                      <p>accent</p>
                    </li>

                    <li>
                      <p>afmhot</p>
                    </li>

                    <li>
                      <p>autumn</p>
                    </li>

                    <li>
                      <p>binary</p>
                    </li>

                    <li>
                      <p>blues</p>
                    </li>

                    <li>
                      <p>bone</p>
                    </li>

                    <li>
                      <p>brbg</p>
                    </li>

                    <li>
                      <p>brg</p>
                    </li>

                    <li>
                      <p>bugn</p>
                    </li>

                    <li>
                      <p>bupu</p>
                    </li>

                    <li>
                      <p>bwr</p>
                    </li>

                    <li>
                      <p>cmrmap</p>
                    </li>

                    <li>
                      <p>cool</p>
                    </li>

                    <li>
                      <p>coolwarm</p>
                    </li>

                    <li>
                      <p>copper</p>
                    </li>

                    <li>
                      <p>cubehelix</p>
                    </li>

                    <li>
                      <p>dark2</p>
                    </li>

                    <li>
                      <p>flag</p>
                    </li>

                    <li>
                      <p>gist\_earth</p>
                    </li>

                    <li>
                      <p>gist\_gray</p>
                    </li>

                    <li>
                      <p>gist\_heat</p>
                    </li>

                    <li>
                      <p>gist\_ncar</p>
                    </li>

                    <li>
                      <p>gist\_rainbow</p>
                    </li>

                    <li>
                      <p>gist\_stern</p>
                    </li>

                    <li>
                      <p>gist\_yarg</p>
                    </li>

                    <li>
                      <p>gnbu</p>
                    </li>

                    <li>
                      <p>gnuplot2</p>
                    </li>

                    <li>
                      <p>gnuplot</p>
                    </li>

                    <li>
                      <p>gray</p>
                    </li>

                    <li>
                      <p>greens</p>
                    </li>

                    <li>
                      <p>greys</p>
                    </li>

                    <li>
                      <p>hot</p>
                    </li>

                    <li>
                      <p>hsv</p>
                    </li>

                    <li>
                      <p>inferno</p>
                    </li>

                    <li>
                      <p>magma</p>
                    </li>

                    <li>
                      <p>nipy\_spectral</p>
                    </li>

                    <li>
                      <p>ocean</p>
                    </li>

                    <li>
                      <p>oranges</p>
                    </li>

                    <li>
                      <p>orrd</p>
                    </li>

                    <li>
                      <p>paired</p>
                    </li>

                    <li>
                      <p>pastel1</p>
                    </li>

                    <li>
                      <p>pastel2</p>
                    </li>

                    <li>
                      <p>pink</p>
                    </li>

                    <li>
                      <p>piyg</p>
                    </li>

                    <li>
                      <p>plasma</p>
                    </li>

                    <li>
                      <p>prgn</p>
                    </li>

                    <li>
                      <p>prism</p>
                    </li>

                    <li>
                      <p>pubu</p>
                    </li>

                    <li>
                      <p>pubugn</p>
                    </li>

                    <li>
                      <p>puor</p>
                    </li>

                    <li>
                      <p>purd</p>
                    </li>

                    <li>
                      <p>purples</p>
                    </li>

                    <li>
                      <p>rainbow</p>
                    </li>

                    <li>
                      <p>rdbu</p>
                    </li>

                    <li>
                      <p>rdgy</p>
                    </li>

                    <li>
                      <p>rdpu</p>
                    </li>

                    <li>
                      <p>rdylbu</p>
                    </li>

                    <li>
                      <p>rdylgn</p>
                    </li>

                    <li>
                      <p>reds</p>
                    </li>

                    <li>
                      <p>seismic</p>
                    </li>

                    <li>
                      <p>set1</p>
                    </li>

                    <li>
                      <p>set2</p>
                    </li>

                    <li>
                      <p>set3</p>
                    </li>

                    <li>
                      <p>spectral</p>
                    </li>

                    <li>
                      <p>spring</p>
                    </li>

                    <li>
                      <p>summer</p>
                    </li>

                    <li>
                      <p>terrain</p>
                    </li>

                    <li>
                      <p>viridis</p>
                    </li>

                    <li>
                      <p>winter</p>
                    </li>

                    <li>
                      <p>wistia</p>
                    </li>

                    <li>
                      <p>ylgn</p>
                    </li>

                    <li>
                      <p>ylgnbu</p>
                    </li>

                    <li>
                      <p>ylorbr</p>
                    </li>

                    <li>
                      <p>ylorrd</p>
                    </li>
                  </ul>

                  <p>The default value is ‘jet’.</p>
                </li>
              </ul>
            </div>

            <div className="dt">solve\_options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Solver specific parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>remove\_previous\_restrictions</strong> – Ignore the restrictions applied to the graph during the creation stage and only use the restrictions specified in this request if set to <span className="em">true</span>. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>restriction\_threshold\_value</strong> – Value-based restriction comparison. Any node or edge with a ‘RESTRICTIONS\_VALUECOMPARED’ value greater than the <span className="em">restriction\_threshold\_value</span> will not be included in the solution.</p>
                </li>

                <li>
                  <p><strong>uniform\_weights</strong> – When specified, assigns the given value to all the edges in the graph. Note that weights provided in input parameter <span className="em">weights\_on\_edges</span> will override this value.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>

            <div className="dt">contour\_options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Contour specific parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>projection</strong> – Spatial Reference System (i.e. EPSG Code). Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>3857</p>
                    </li>

                    <li>
                      <p>102100</p>
                    </li>

                    <li>
                      <p>900913</p>
                    </li>

                    <li>
                      <p>EPSG:4326</p>
                    </li>

                    <li>
                      <p>PLATE\_CARREE</p>
                    </li>

                    <li>
                      <p>EPSG:900913</p>
                    </li>

                    <li>
                      <p>EPSG:102100</p>
                    </li>

                    <li>
                      <p>EPSG:3857</p>
                    </li>

                    <li>
                      <p>WEB\_MERCATOR</p>
                    </li>
                  </ul>

                  <p>The default value is ‘PLATE\_CARREE’.</p>
                </li>

                <li>
                  <p><strong>width</strong> – When input parameter <span className="em">generate\_image</span> is set to <span className="em">true</span>, width of the generated image. The default value is ‘512’.</p>
                </li>

                <li>
                  <p><strong>height</strong> – When input parameter <span className="em">generate\_image</span> is set to <span className="em">true</span>, height of the generated image. If the default value is used, the <span className="em">height</span> is set to the value resulting from multiplying the aspect ratio by the <span className="em">width</span>. The default value is ‘-1’.</p>
                </li>

                <li>
                  <p><strong>search\_radius</strong> – When interpolating the graph solution to generate the isochrone, neighborhood of influence of sample data (in percent of the image/grid). The default value is ‘20’.</p>
                </li>

                <li>
                  <p><strong>grid\_size</strong> – When interpolating the graph solution to generate the isochrone, number of subdivisions along the x axis when building the grid (the y is computed using the aspect ratio of the output image). The default value is ‘100’.</p>
                </li>

                <li>
                  <p><strong>color\_isolines</strong> – Color each isoline according to the colormap; otherwise, use the foreground color. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘true’.</p>
                </li>

                <li>
                  <p><strong>add\_labels</strong> – If set to <span className="em">true</span>, add labels to the isolines. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>labels\_font\_size</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, size of the font (in pixels) to use for labels. The default value is ‘12’.</p>
                </li>

                <li>
                  <p><strong>labels\_font\_family</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, font name to be used when adding labels. The default value is ‘arial’.</p>
                </li>

                <li>
                  <p><strong>labels\_search\_window</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, a search window is used to rate the local quality of each isoline. Smooth, continuous, long stretches with relatively flat angles are favored. The provided value is multiplied by the <span className="em">labels\_font\_size</span> to calculate the final window size. The default value is ‘4’.</p>
                </li>

                <li>
                  <p><strong>labels\_intralevel\_separation</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, this value determines the distance (in multiples of the <span className="em">labels\_font\_size</span>) to use when separating labels of different values. The default value is ‘4’.</p>
                </li>

                <li>
                  <p><strong>labels\_interlevel\_separation</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, this value determines the distance (in percent of the total window size) to use when separating labels of the same value. The default value is ‘20’.</p>
                </li>

                <li>
                  <p><strong>labels\_max\_angle</strong> – When <span className="em">add\_labels</span> is set to <span className="em">true</span>, maximum angle (in degrees) from the vertical to use when adding labels. The default value is ‘60’.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>

            <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>solve\_table</strong> – Name of the table to host intermediate solve results, in \[schema\_name.]table\_name format, using standard <a className="reference external" href="/content/concepts/tables/#table-name-resolution">name resolution rules</a> and meeting <a className="reference external" href="/content/concepts/tables/#table-naming-criteria">table naming criteria</a>. This table will contain the position and cost for each vertex in the graph. If the default value is used, a temporary table is created and deleted once the solution is calculated. The default value is ‘’.</p>
                </li>

                <li>
                  <p><strong>is\_replicated</strong> – If set to <span className="em">true</span>, replicate the <span className="em">solve\_table</span>. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘true’.</p>
                </li>

                <li>
                  <p><strong>data\_min\_x</strong> – Lower bound for the x values. If not provided, it will be computed from the bounds of the input data.</p>
                </li>

                <li>
                  <p><strong>data\_max\_x</strong> – Upper bound for the x values. If not provided, it will be computed from the bounds of the input data.</p>
                </li>

                <li>
                  <p><strong>data\_min\_y</strong> – Lower bound for the y values. If not provided, it will be computed from the bounds of the input data.</p>
                </li>

                <li>
                  <p><strong>data\_max\_y</strong> – Upper bound for the y values. If not provided, it will be computed from the bounds of the input data.</p>
                </li>

                <li>
                  <p><strong>concavity\_level</strong> – Factor to qualify the concavity of the isochrone curves. The lower the value, the more convex (with ‘0’ being completely convex and ‘1’ being the most concave). The default value is ‘0.5’. The minimum allowed value is ‘0’. The maximum allowed value is ‘1’.</p>
                </li>

                <li>
                  <p><strong>use\_priority\_queue\_solvers</strong> – Sets the solver methods explicitly if true. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p><strong>true</strong> – Uses the solvers scheduled for ‘shortest\_path’ and ‘inverse\_shortest\_path’ based on <span className="em">solve\_direction</span>.</p>
                    </li>

                    <li>
                      <p><strong>false</strong> – Uses the solvers ‘priority\_queue’ and ‘inverse\_priority\_queue’ based on <span className="em">solve\_direction</span>.</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>

                <li>
                  <p><strong>solve\_direction</strong> – Specify whether we are going to the source node, or starting from it. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p><strong>from\_source</strong> – Shortest path to get to the source (inverse Dijkstra).</p>
                    </li>

                    <li>
                      <p><strong>to\_source</strong> – Shortest path to source (Dijkstra).</p>
                    </li>
                  </ul>

                  <p>The default value is ‘from\_source’.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>
          </div>
        </div>
      </div>

      <p><strong>Returns</strong></p>

      <div className="blockquote">
        <div>
          <p>A dict with the following entries–</p>

          <div className="dl simple">
            <div className="dt">width (<span className="em">int</span>) –</div>

            <div className="dd">
              <p>Width of the image as provided in <span className="em">width</span>.</p>
            </div>

            <div className="dt">height (<span className="em">int</span>) –</div>

            <div className="dd">
              <p>Height of the image as provided in <span className="em">height</span>.</p>
            </div>

            <div className="dt">bg\_color (<span className="em">long</span>) –</div>

            <div className="dd">
              <p>Background color of the image as provided in <span className="em">bg\_color</span>.</p>
            </div>

            <div className="dt">image\_data (<span className="em">bytes</span>) –</div>

            <div className="dd">
              <p>Generated contour image data.</p>
            </div>

            <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional information.</p>
            </div>

            <div className="dt">solve\_info (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional information.</p>
            </div>

            <div className="dt">contour\_info (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Additional information.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
