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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6db41d30d7f51a3209bd6c17e805c7dd6bcaf68db325ffb2d23b95850837d8d4
4
- data.tar.gz: 1580e5501a9b635cc871c9d572549e4d33cc46e265ffe7befcd0a9d51285673a
3
+ metadata.gz: 04d898a5d15b1a38a92bf3823b6c1a971d17acf6000740867c09f35fa78a2a06
4
+ data.tar.gz: 9c5353687b33c75e953458fc824b1fa7386f980fbd9b11994f94bb8f06e6a387
5
5
  SHA512:
6
- metadata.gz: 4a60bbfd3edf64151c20a23bb3e13b7f528e7a313030d8e1134bb5cac7918aff2cc604fca301c2a86c3f8e8a8a6b411bb0e28fbb15b179ff4528559ded890cc7
7
- data.tar.gz: b76603426970dc8d7c019bb394374d9c1e851a216a0d6607f5adcd9532649a25a6fd56113bce037d92a3eb66fdcab533f58391d8db93aa5091020c15c0043b16
6
+ metadata.gz: 5677d91bdd78e7de332557434fe377d316e302abb7476ee99fef0fab3dee03a40c702c10d7e1b70cc1cb22e8c5049236408849cc3f208c8372c70ce2dcb251d6
7
+ data.tar.gz: a5948c77d03ec831357c9774e8ef3346b7684944b606b5598620e4723fd233160af6a32377436d1ef4271655cbd3078572cb5f88c14de4ddd63043778dc99c00
data/README.md CHANGED
@@ -1,16 +1,19 @@
1
- <p align="center">
2
- <img src="logo.svg" width="60%" height="60%" />
3
- </p>
4
-
5
- ![Build Status](https://github.com/kojix2/youplot/workflows/test/badge.svg)
6
- [![Gem Version](https://badge.fury.io/rb/youplot.svg)](https://badge.fury.io/rb/youplot)
7
- [![Docs Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://rubydoc.info/gems/youplot)
8
- [![The MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.txt)
9
- [![DOI](https://zenodo.org/badge/283230219.svg)](https://zenodo.org/badge/latestdoi/283230219)
10
-
11
- YouPlot is a command line tool for Unicode Plotting working with data from standard stream.
12
-
13
- :bar_chart: Powered by [UnicodePlot](https://github.com/red-data-tools/unicode_plot.rb)
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/kojix2/youplot/issues)
234
- * Fix bugs and [submit pull requests](https://github.com/kojix2/youplot/pulls)
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
 
@@ -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', Integer, 'number of characters per row') do |v|
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/kojix2/youplot
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YouPlot
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
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.1
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-03 00:00:00.000000000 Z
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/kojix2/youplot
119
+ homepage: https://github.com/red-data-tools/YouPlot
120
120
  licenses:
121
121
  - MIT
122
122
  metadata: {}