Giter Club home page Giter Club logo

html-figure-pager's Introduction

HTML Figure Pager

An active example of this Javascript library can be found here.

This package provides a small, self-contained Javascript library which allows one to easily create "figure pagers" in their HTML documents. In my graduate research group, we often had to generate many plots (numbering anywhere from a handful to many thousands) that showed data in various combinations or processing options.

Beyond a few figures, it is impractical to show all combinations linearly on a page, so we used the so-called figure pagers to allow interactive selection of a single image to show at a time from a collection. For instance, the following screenshot is one simple example where there are two types of options ("Mode" and "Color map") which can both take on a variety of values. By clicking on an option, the figure to the right is updated according to a user-defined mapping from option values to image file name.

screenshot

Cloning

The demo linked above is contained within the gh-pages branch of this repository, and it contains a large number of images. With a normal git clone, all of these images are downloaded as part of the git history, increasing the download and storage size significantly beyond the small size of the pager script itself.

To avoid downloading the unnecessary demo, you may instead use a shallow clone to obtain a copy of only the latest commit, and then "unshallow" the branch to obtain the full history of the master branch while completely ignoring the gh-pages branch.

git clone --depth 1 https://github.com/jmert/html-figure-pager
cd html-figure-pager
git pull --unshallow

html-figure-pager's People

Contributors

jmert avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

html-figure-pager's Issues

git repo is really big

I just cloned this and it was a ~500 MB download. I think this is because you committed all the spherical harmonic images for the demo site? Any way to remove this from the git history to slim down the repo? In the meantime, I will just copy the .css and .js files and delete the rest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.