Flottplot: Quickly arrange and navigate collections of images in the browser.

Overview

Flottplot helps you to quickly build a user interface to navigate a collection of images named with a common pattern. It defines custom HTML tags and converts them into control and other elements that interact with each other. Flottplot does not create new images, it just arranges images already plotted elsewhere.

The project was conceived as tool to view plots of meteorological and climate data with the ability to put multiple images containing different variables next to each other and click through them synchronously.

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>A Page With Flottplot Elements</title>
  <script type="text/javascript" src="flottplot-scan-min.js"></script>
</head>
<body>
  <p>
    Function:
    <fp-select id="func">
      <fp-option name="sin">sine</fp-option>
      <fp-option name="cos">cosine</fp-option>
    </fp-select>
    with wavenumber
    <fp-range id="waven" type="slider" min="1" max="3" step="1" init="2" wrap="both"></fp-range>
    <fp-animation target="waven"></fp-animation>
  </p>
  <p>
    <fp-plot src="plot/{func.name}-{waven}x.png"></fp-plot>
  </p>
</body>
</html>

Function: sine cosine with wavenumber

Flottplot is in a usable state, but also under active development. Some features (e.g. error reporting) are still a little rough around the edges. If you run into a problem, please open an issue on GitHub.

Downloads

Choose the files that are right for you:

Script Files

  • flottplot-scan-min.js (recommended)
    Flottplot module with automatic page scan on load.
  • flottplot-min.js
    The Flottplot module only, in case you want more control over the initialization of Flottplot.

Include JavaScript (.js) files with

<script type="text/javascript" src="path/to/file.js"></script>

in the <head> or <body> of your page.

Style Files

  • flottplot.css
    If you use elements that require additional styling (e.g. fp-cursors), include this CSS file.

Include CSS (.css) files with

<link rel="stylesheet" type="text/css" href="path/to/file.css">

in the <head> of your page.

Python Package

The Flottplot Python package can be installed from PyPI:

pip3 install flottplot

Refer to the Python package documentation for more information.

License

Flottplot is in the public domain.