https://github.com/yohasebe/rubyplb
Command line Pattern Lattice building tool written in Ruby
https://github.com/yohasebe/rubyplb
pattern-lattice ruby visualization
Last synced: about 1 year ago
JSON representation
Command line Pattern Lattice building tool written in Ruby
- Host: GitHub
- URL: https://github.com/yohasebe/rubyplb
- Owner: yohasebe
- License: gpl-3.0
- Created: 2009-09-04T05:42:04.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T09:57:52.000Z (about 9 years ago)
- Last Synced: 2025-04-05T00:46:51.183Z (about 1 year ago)
- Topics: pattern-lattice, ruby, visualization
- Language: Ruby
- Homepage: http://github.com/yohasebe/rubyplb
- Size: 453 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RubyPLB
RubyPLB generates pattern lattice graphics from lists of patterns.
## Features
* Accept a text file with any number of patterns and generate a Graphviz DOT file, or a PNG/JPG/EPS image file.
* Calculate z-scores of pattern nodes and create lattice graphs with temperature colorng applied.
## Installation
Install the gem:
$gem install rubyplb
## How to Use
Usage:
rubyplb [options]
where:
".plb", ".txt"
."dot", ".png", ".jpg", or ".eps"
[options]:
--simple, -s: Use simple labels for pattern nodes
--full, -f: Generate a full pattern lattice without contracting nodes
--vertical, -v: Draw the graph from top to bottom instead of left to right)
--coloring, -c: Color pattern nodes
--straight, -t: Straighten edges (available when output format is either png, jpg, or eps)
--help, -h: Show this message
## Example
Source file (`sample.plb`)
A B C A [navy] (42)
C D E [#FF9900] (23)
A D E (8)
Each line represents a pattern, or an instance of a pattern to be more precise. A color code can be specified in square brackets and pattern weight can be specified by an integer in parentheses after the pattern representation.
rubyplb -s -c 1 -t -v sample.plb sapmple.png
Resulting image

## Copyright
Copyright (c) 2009-2017 Kow Kuroda and Yoichiro Hasebe. See LICENSE for details.