mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-19 02:18:08 +08:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4f17579846 | ||
![]() |
81df12a033 | ||
![]() |
a8073bc684 | ||
![]() |
23bb767afe | ||
![]() |
dfc027d972 | ||
![]() |
7a1bacccbc | ||
![]() |
92989eb582 |
28
README.md
28
README.md
@@ -1,16 +1,19 @@
|
||||
<p align="center">
|
||||
<img src="logo.svg" width="60%" height="60%" />
|
||||
</p>
|
||||
<div align="center">
|
||||
<img src="logo.svg" width="66%" height="66%" />
|
||||
|
||||

|
||||
[](https://badge.fury.io/rb/youplot)
|
||||
[](https://rubydoc.info/gems/youplot)
|
||||
[](LICENSE.txt)
|
||||
[](https://zenodo.org/badge/latestdoi/283230219)
|
||||
<hr>
|
||||
|
||||
YouPlot is a command line tool for Unicode Plotting working with data from standard stream.
|
||||

|
||||
[](https://badge.fury.io/rb/youplot)
|
||||
[](https://rubydoc.info/gems/youplot)
|
||||
[](LICENSE.txt)
|
||||
[](https://zenodo.org/badge/latestdoi/283230219)
|
||||
|
||||
:bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
|
||||
YouPlot is a command line tool that draws plots in a terminal.
|
||||
|
||||
:bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
|
||||
|
||||
</div>
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -230,8 +233,8 @@ uplot colors
|
||||
YouPlot is a library under development, so even small improvements like typofix are welcome!
|
||||
Please feel free to send us your pull requests.
|
||||
|
||||
* [Report bugs](https://github.com/kojix2/youplot/issues)
|
||||
* Fix bugs and [submit pull requests](https://github.com/kojix2/youplot/pulls)
|
||||
* [Report bugs](https://github.com/red-data-tools/YouPlot/issues)
|
||||
* Fix bugs and [submit pull requests](https://github.com/red-data-tools/YouPlot/pulls)
|
||||
* Write, clarify, or fix documentation
|
||||
* English corrections by native speakers are welcome.
|
||||
* Suggest or add new features
|
||||
@@ -249,7 +252,6 @@ bundle exec rake install # Installation from source code
|
||||
|
||||
### Acknowledgements
|
||||
|
||||
* [Red Data Tools](https://github.com/red-data-tools) - Technical support
|
||||
* [sampo grafiikka](https://jypg.net/sampo_grafiikka) - Project logo creation
|
||||
* [yutaas](https://github.com/yutaas) - English proofreading
|
||||
|
||||
|
@@ -64,7 +64,7 @@ module YouPlot
|
||||
parser.on('-y', '--ylabel STR', String, 'print string on the far left of the plot') do |v|
|
||||
params.ylabel = v
|
||||
end
|
||||
parser.on('-w', '--width INT', Integer, 'number of characters per row') do |v|
|
||||
parser.on('-w', '--width INT', Numeric, 'number of characters per row') do |v|
|
||||
params.width = v
|
||||
end
|
||||
parser.on('-h', '--height INT', Numeric, 'number of rows') do |v|
|
||||
@@ -118,7 +118,7 @@ module YouPlot
|
||||
|
||||
Program: YouPlot (Tools for plotting on the terminal)
|
||||
Version: #{YouPlot::VERSION} (using UnicodePlot #{UnicodePlot::VERSION})
|
||||
Source: https://github.com/kojix2/youplot
|
||||
Source: https://github.com/red-data-tools/YouPlot
|
||||
|
||||
Usage: uplot <command> [options] <in.tsv>
|
||||
|
||||
@@ -171,13 +171,13 @@ module YouPlot
|
||||
|
||||
def sub_parser_add_xlim
|
||||
sub_parser.on_head('--xlim FLOAT,FLOAT', Array, 'plotting range for the x coordinate') do |v|
|
||||
params.xlim = v
|
||||
params.xlim = v.map(&:to_f)
|
||||
end
|
||||
end
|
||||
|
||||
def sub_parser_add_ylim
|
||||
sub_parser.on_head('--ylim FLOAT,FLOAT', Array, 'plotting range for the y coordinate') do |v|
|
||||
params.ylim = v
|
||||
params.ylim = v.map(&:to_f)
|
||||
end
|
||||
end
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module YouPlot
|
||||
VERSION = '0.4.1'
|
||||
VERSION = '0.4.2'
|
||||
end
|
||||
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
||||
|
||||
spec.summary = 'A command line tool for Unicode Plotting'
|
||||
spec.description = 'A command line tool for Unicode Plotting'
|
||||
spec.homepage = 'https://github.com/kojix2/youplot'
|
||||
spec.homepage = 'https://github.com/red-data-tools/YouPlot'
|
||||
spec.license = 'MIT'
|
||||
spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0')
|
||||
|
||||
|
Reference in New Issue
Block a user