youplot 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -16
- data/lib/youplot/parser.rb +4 -4
- data/lib/youplot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04d898a5d15b1a38a92bf3823b6c1a971d17acf6000740867c09f35fa78a2a06
|
4
|
+
data.tar.gz: 9c5353687b33c75e953458fc824b1fa7386f980fbd9b11994f94bb8f06e6a387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5677d91bdd78e7de332557434fe377d316e302abb7476ee99fef0fab3dee03a40c702c10d7e1b70cc1cb22e8c5049236408849cc3f208c8372c70ce2dcb251d6
|
7
|
+
data.tar.gz: a5948c77d03ec831357c9774e8ef3346b7684944b606b5598620e4723fd233160af6a32377436d1ef4271655cbd3078572cb5f88c14de4ddd63043778dc99c00
|
data/README.md
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
<
|
2
|
-
<img src="logo.svg" width="
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
[![
|
8
|
-
[![
|
9
|
-
[![
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
<div align="center">
|
2
|
+
<img src="logo.svg" width="66%" height="66%" />
|
3
|
+
|
4
|
+
<hr>
|
5
|
+
|
6
|
+
![Build Status](https://github.com/red-data-tools/YouPlot/workflows/test/badge.svg)
|
7
|
+
[![Gem Version](https://badge.fury.io/rb/youplot.svg)](https://badge.fury.io/rb/youplot)
|
8
|
+
[![Docs Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://rubydoc.info/gems/youplot)
|
9
|
+
[![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.txt)
|
10
|
+
[![DOI](https://zenodo.org/badge/283230219.svg)](https://zenodo.org/badge/latestdoi/283230219)
|
11
|
+
|
12
|
+
YouPlot is a command line tool that draws plots in a terminal.
|
13
|
+
|
14
|
+
:bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
|
15
|
+
|
16
|
+
</div>
|
14
17
|
|
15
18
|
## Installation
|
16
19
|
|
@@ -230,8 +233,8 @@ uplot colors
|
|
230
233
|
YouPlot is a library under development, so even small improvements like typofix are welcome!
|
231
234
|
Please feel free to send us your pull requests.
|
232
235
|
|
233
|
-
* [Report bugs](https://github.com/
|
234
|
-
* Fix bugs and [submit pull requests](https://github.com/
|
236
|
+
* [Report bugs](https://github.com/red-data-tools/YouPlot/issues)
|
237
|
+
* Fix bugs and [submit pull requests](https://github.com/red-data-tools/YouPlot/pulls)
|
235
238
|
* Write, clarify, or fix documentation
|
236
239
|
* English corrections by native speakers are welcome.
|
237
240
|
* Suggest or add new features
|
@@ -249,7 +252,6 @@ bundle exec rake install # Installation from source code
|
|
249
252
|
|
250
253
|
### Acknowledgements
|
251
254
|
|
252
|
-
* [Red Data Tools](https://github.com/red-data-tools) - Technical support
|
253
255
|
* [sampo grafiikka](https://jypg.net/sampo_grafiikka) - Project logo creation
|
254
256
|
* [yutaas](https://github.com/yutaas) - English proofreading
|
255
257
|
|
data/lib/youplot/parser.rb
CHANGED
@@ -64,7 +64,7 @@ module YouPlot
|
|
64
64
|
parser.on('-y', '--ylabel STR', String, 'print string on the far left of the plot') do |v|
|
65
65
|
params.ylabel = v
|
66
66
|
end
|
67
|
-
parser.on('-w', '--width INT',
|
67
|
+
parser.on('-w', '--width INT', Numeric, 'number of characters per row') do |v|
|
68
68
|
params.width = v
|
69
69
|
end
|
70
70
|
parser.on('-h', '--height INT', Numeric, 'number of rows') do |v|
|
@@ -118,7 +118,7 @@ module YouPlot
|
|
118
118
|
|
119
119
|
Program: YouPlot (Tools for plotting on the terminal)
|
120
120
|
Version: #{YouPlot::VERSION} (using UnicodePlot #{UnicodePlot::VERSION})
|
121
|
-
Source: https://github.com/
|
121
|
+
Source: https://github.com/red-data-tools/YouPlot
|
122
122
|
|
123
123
|
Usage: uplot <command> [options] <in.tsv>
|
124
124
|
|
@@ -171,13 +171,13 @@ module YouPlot
|
|
171
171
|
|
172
172
|
def sub_parser_add_xlim
|
173
173
|
sub_parser.on_head('--xlim FLOAT,FLOAT', Array, 'plotting range for the x coordinate') do |v|
|
174
|
-
params.xlim = v
|
174
|
+
params.xlim = v.map(&:to_f)
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
178
178
|
def sub_parser_add_ylim
|
179
179
|
sub_parser.on_head('--ylim FLOAT,FLOAT', Array, 'plotting range for the y coordinate') do |v|
|
180
|
-
params.ylim = v
|
180
|
+
params.ylim = v.map(&:to_f)
|
181
181
|
end
|
182
182
|
end
|
183
183
|
|
data/lib/youplot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: youplot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode_plot
|
@@ -116,7 +116,7 @@ files:
|
|
116
116
|
- lib/youplot/parameters.rb
|
117
117
|
- lib/youplot/parser.rb
|
118
118
|
- lib/youplot/version.rb
|
119
|
-
homepage: https://github.com/
|
119
|
+
homepage: https://github.com/red-data-tools/YouPlot
|
120
120
|
licenses:
|
121
121
|
- MIT
|
122
122
|
metadata: {}
|