Git Product home page Git Product logo

qviz's Introduction

QViz QViz API reference

QViz is a utility to quickly and interactively visualize data with by evaluating Go source code at runtime. It works by exposing the gonum/plot library to a yaegi interpreter.

ss

Usage

Usage: qviz [OPTIONS] SCRIPT_PATH

Generate plots by writing Go scripts

Arguments:
  SCRIPT_PATH      path to a qviz script file

Options:
  -o, --out        file output path (implies headless)
  -t, --type       file output type [eps,jpg,pdf,png,svg,tiff] (default "jpg")
  -w, --width      output width (pixels) (default 900)
  -h, --height     output height (pixels) (default 800)
      --headless   do not render the UI

Interactive Usage

QViz has a built in native UI for viewing plots that will start automatically when you run the command.

# Monitor the simple.go script file for changes in real time
qviz examples/simple/simple.go
# Now open up the script file in your favorite editor
vim examples/simple/simple.go

Writing Scripts

Valid QViz scripts are normal Go files that import the pkg/stdlib overlay package. Example scripts can be found here.

package main

import qviz "github.com/kevinschoon/qviz/pkg/stdlib"

func main() {
    // qviz.New is a convenience function that returns a
    // new *plot.Plot 
    plt := qviz.New()
    plt.Title.Text = "My New Chart"
    // qviz.Render must be called at the end of your script file and only once,
    // calling it before hand will halt the execution of the program.
    qviz.Render(plt)
}

Roadmap

  • CLI based plotter
  • allow external user defined packages
  • first class integration with qframe
  • finish importing the remaining Gonum packages
  • native UI

qviz's People

Contributors

kevinschoon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.