mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-22 13:08:11 +08:00
Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f596391ad9 | ||
![]() |
cf29934f08 | ||
![]() |
56d00cae31 | ||
![]() |
3093c7b715 | ||
![]() |
7f5f33a999 | ||
![]() |
5ec3d6ca3f | ||
![]() |
0dcfe86c37 | ||
![]() |
5b53b03769 | ||
![]() |
eff998be38 | ||
![]() |
8c3bf4c79a | ||
![]() |
41acac8811 | ||
![]() |
95599fbf4f | ||
![]() |
6ccce30377 | ||
![]() |
75db26da53 | ||
![]() |
b165de43ed | ||
![]() |
f18c72228c | ||
![]() |
c4a726fd08 | ||
![]() |
96d11f8d0e | ||
![]() |
ac0f5d4efa | ||
![]() |
f4f7267ec7 | ||
![]() |
6f8f9275d2 | ||
![]() |
58f6580e3f |
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
@@ -1,2 +1,2 @@
|
|||||||
|
github: kojix2
|
||||||
ko_fi: kojix2
|
ko_fi: kojix2
|
||||||
patreon: kojix2
|
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: ['ubuntu', 'macos']
|
os: ['ubuntu', 'macos']
|
||||||
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
|
ruby: [ '2.6', '2.7', '3.0' ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
|
12
README.md
12
README.md
@@ -1,10 +1,10 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://user-images.githubusercontent.com/5798442/103439598-9e952a00-4c81-11eb-881f-67c593bb7861.png" width="75%" height="75%" />
|
<img src="logo.svg" width="60%" height="60%" />
|
||||||
</p>
|
</7>
|
||||||
|
|
||||||

|

|
||||||
[](https://badge.fury.io/rb/youplot)
|
[](https://badge.fury.io/rb/youplot)
|
||||||
[](https://rubydoc.info/gems/youplot)
|
[](https://rubydoc.info/gems/youplot)
|
||||||
[](LICENSE.txt)
|
[](LICENSE.txt)
|
||||||
[](https://zenodo.org/badge/latestdoi/283230219)
|
[](https://zenodo.org/badge/latestdoi/283230219)
|
||||||
|
|
||||||
@@ -216,6 +216,8 @@ uplot colors
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
|
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)
|
* [Report bugs](https://github.com/kojix2/youplot/issues)
|
||||||
* Fix bugs and [submit pull requests](https://github.com/kojix2/youplot/pulls)
|
* Fix bugs and [submit pull requests](https://github.com/kojix2/youplot/pulls)
|
||||||
* Write, clarify, or fix documentation
|
* Write, clarify, or fix documentation
|
||||||
@@ -226,8 +228,8 @@ uplot colors
|
|||||||
### Development
|
### Development
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/your_name/GR.rb # Clone the Git repo
|
# fork the main repository by clicking the Fork button.
|
||||||
cd GR.rb
|
git clone https://github.com/your_name/YouPlot
|
||||||
bundle install # Install the gem dependencies
|
bundle install # Install the gem dependencies
|
||||||
bundle exec rake test # Run the test
|
bundle exec rake test # Run the test
|
||||||
bundle exec rake install # Installation from source code
|
bundle exec rake install # Installation from source code
|
||||||
|
@@ -39,19 +39,7 @@ module YouPlot
|
|||||||
labels = series[x_col]
|
labels = series[x_col]
|
||||||
values = series[y_col].map(&:to_f)
|
values = series[y_col].map(&:to_f)
|
||||||
end
|
end
|
||||||
begin
|
|
||||||
UnicodePlot.barplot(labels, values, **params.to_hc)
|
UnicodePlot.barplot(labels, values, **params.to_hc)
|
||||||
# UnicodePlot error:
|
|
||||||
# All values have to be positive. Negative bars are not supported.
|
|
||||||
rescue ArgumentError => e
|
|
||||||
if YouPlot.run_as_executable?
|
|
||||||
warn e.backtrace[0]
|
|
||||||
warn "\e[35m#{e}\e[0m"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
raise e
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def histogram(data, params)
|
def histogram(data, params)
|
||||||
@@ -190,18 +178,24 @@ module YouPlot
|
|||||||
def check_series_size(data, fmt)
|
def check_series_size(data, fmt)
|
||||||
series = data.series
|
series = data.series
|
||||||
if series.size == 1
|
if series.size == 1
|
||||||
warn 'youplot: There is only one series of input data. Please check the delimiter.'
|
warn <<~EOS
|
||||||
warn ''
|
youplot: There is only one series of input data. Please check the delimiter.
|
||||||
warn " Headers: \e[35m#{data.headers.inspect}\e[0m"
|
|
||||||
warn " The first item is: \e[35m\"#{series[0][0]}\"\e[0m"
|
Headers: \e[35m#{data.headers.inspect}\e[0m
|
||||||
warn " The last item is : \e[35m\"#{series[0][-1]}\"\e[0m"
|
The first item is: \e[35m\"#{series[0][0]}\"\e[0m
|
||||||
|
The last item is : \e[35m\"#{series[0][-1]}\"\e[0m
|
||||||
|
EOS
|
||||||
|
# NOTE: Error messages cannot be colored.
|
||||||
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
||||||
end
|
end
|
||||||
if fmt == 'xyxy' && series.size.odd?
|
if fmt == 'xyxy' && series.size.odd?
|
||||||
warn 'YouPlot: In the xyxy format, the number of series must be even.'
|
warn <<~EOS
|
||||||
warn ''
|
YouPlot: In the xyxy format, the number of series must be even.
|
||||||
warn " Number of series: \e[35m#{series.size}\e[0m"
|
|
||||||
warn " Headers: \e[35m#{data.headers.inspect}\e[0m"
|
Number of series: \e[35m#{series.size}\e[0m
|
||||||
|
Headers: \e[35m#{data.headers.inspect}\e[0m
|
||||||
|
EOS
|
||||||
|
# NOTE: Error messages cannot be colored.
|
||||||
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
YouPlot.run_as_executable ? exit(1) : raise(Error)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@@ -65,7 +65,17 @@ module YouPlot
|
|||||||
|
|
||||||
pp @data if options[:debug]
|
pp @data if options[:debug]
|
||||||
|
|
||||||
|
if YouPlot.run_as_executable?
|
||||||
|
begin
|
||||||
plot = create_plot
|
plot = create_plot
|
||||||
|
rescue ArgumentError => e
|
||||||
|
warn e.backtrace[0]
|
||||||
|
warn "\e[35m#{e}\e[0m"
|
||||||
|
exit 1
|
||||||
|
end
|
||||||
|
else
|
||||||
|
plot = create_plot
|
||||||
|
end
|
||||||
output_plot(plot)
|
output_plot(plot)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@@ -7,9 +7,9 @@ module YouPlot
|
|||||||
:transpose,
|
:transpose,
|
||||||
:headers,
|
:headers,
|
||||||
:pass,
|
:pass,
|
||||||
:progressive,
|
|
||||||
:output,
|
:output,
|
||||||
:fmt,
|
:fmt,
|
||||||
|
:progressive,
|
||||||
:encoding,
|
:encoding,
|
||||||
:color_names,
|
:color_names,
|
||||||
:debug,
|
:debug,
|
||||||
|
@@ -22,6 +22,7 @@ module YouPlot
|
|||||||
pass: false,
|
pass: false,
|
||||||
output: $stderr,
|
output: $stderr,
|
||||||
fmt: 'xyy',
|
fmt: 'xyy',
|
||||||
|
progressive: false,
|
||||||
encoding: nil,
|
encoding: nil,
|
||||||
color_names: false,
|
color_names: false,
|
||||||
debug: false
|
debug: false
|
||||||
@@ -70,7 +71,8 @@ module YouPlot
|
|||||||
parser.on('-h', '--height INT', Numeric, 'number of rows') do |v|
|
parser.on('-h', '--height INT', Numeric, 'number of rows') do |v|
|
||||||
params.height = v
|
params.height = v
|
||||||
end
|
end
|
||||||
parser.on('-b', '--border STR', String, 'specify the style of the bounding box') do |v|
|
border_options = UnicodePlot::BORDER_MAP.keys.join(', ')
|
||||||
|
parser.on('-b', '--border STR', String, 'specify the style of the bounding box', "(#{border_options})") do |v|
|
||||||
params.border = v.to_sym
|
params.border = v.to_sym
|
||||||
end
|
end
|
||||||
parser.on('-m', '--margin INT', Numeric, 'number of spaces to the left of the plot') do |v|
|
parser.on('-m', '--margin INT', Numeric, 'number of spaces to the left of the plot') do |v|
|
||||||
@@ -88,6 +90,12 @@ module YouPlot
|
|||||||
parser.on('-p', '--progress', TrueClass, 'progressive mode [experimental]') do |v|
|
parser.on('-p', '--progress', TrueClass, 'progressive mode [experimental]') do |v|
|
||||||
options[:progressive] = v
|
options[:progressive] = v
|
||||||
end
|
end
|
||||||
|
parser.on('-C', '--color-output', TrueClass, 'colorize even if writing to a pipe') do |v|
|
||||||
|
UnicodePlot::StyledPrinter.define_method(:color?){ |o| true }
|
||||||
|
end
|
||||||
|
parser.on('-M', '--monochrome', TrueClass, 'no colouring even if writing to a tty') do |v|
|
||||||
|
UnicodePlot::StyledPrinter.define_method(:color?){ |o| false }
|
||||||
|
end
|
||||||
parser.on('--encoding STR', String, 'Specify the input encoding') do |v|
|
parser.on('--encoding STR', String, 'Specify the input encoding') do |v|
|
||||||
options[:encoding] = v
|
options[:encoding] = v
|
||||||
end
|
end
|
||||||
@@ -151,7 +159,7 @@ module YouPlot
|
|||||||
def sub_parser_add_xscale
|
def sub_parser_add_xscale
|
||||||
xscale_options = UnicodePlot::ValueTransformer::PREDEFINED_TRANSFORM_FUNCTIONS.keys.join(', ')
|
xscale_options = UnicodePlot::ValueTransformer::PREDEFINED_TRANSFORM_FUNCTIONS.keys.join(', ')
|
||||||
sub_parser.on_head('--xscale STR', String, "axis scaling (#{xscale_options})") do |v|
|
sub_parser.on_head('--xscale STR', String, "axis scaling (#{xscale_options})") do |v|
|
||||||
params.xscale = v
|
params.xscale = v.to_sym
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -163,13 +171,13 @@ module YouPlot
|
|||||||
|
|
||||||
def sub_parser_add_xlim
|
def sub_parser_add_xlim
|
||||||
sub_parser.on_head('--xlim FLOAT,FLOAT', Array, 'plotting range for the x coordinate') do |v|
|
sub_parser.on_head('--xlim FLOAT,FLOAT', Array, 'plotting range for the x coordinate') do |v|
|
||||||
params.xlim = v.take(2)
|
params.xlim = v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def sub_parser_add_ylim
|
def sub_parser_add_ylim
|
||||||
sub_parser.on_head('--ylim FLOAT,FLOAT', Array, 'plotting range for the y coordinate') do |v|
|
sub_parser.on_head('--ylim FLOAT,FLOAT', Array, 'plotting range for the y coordinate') do |v|
|
||||||
params.ylim = v.take(2)
|
params.ylim = v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module YouPlot
|
module YouPlot
|
||||||
VERSION = '0.3.4'
|
VERSION = '0.3.5'
|
||||||
end
|
end
|
||||||
|
319
logo.svg
Normal file
319
logo.svg
Normal file
@@ -0,0 +1,319 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="162mm" height="56mm" version="1.1" viewBox="0 0 162 56" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<defs>
|
||||||
|
<linearGradient id="linearGradient1606" x2="1" gradientTransform="matrix(0 -72.481 -72.481 0 969.69 413.89)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#93d4f5" offset="0"/>
|
||||||
|
<stop stop-color="#93d4f5" offset=".00021973"/>
|
||||||
|
<stop stop-color="#93d4f5" offset=".69201"/>
|
||||||
|
<stop stop-color="#2f98be" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<clipPath id="clipPath1616">
|
||||||
|
<path d="m0 1481.2h1762.6v-1481.2h-1762.6z"/>
|
||||||
|
</clipPath>
|
||||||
|
<linearGradient id="linearGradient1642" x2="1" gradientTransform="matrix(0 -55.11 -55.11 0 1004 402.52)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#34a2cb" offset="0"/>
|
||||||
|
<stop stop-color="#7acdf4" offset=".4661"/>
|
||||||
|
<stop stop-color="#7acdf4" offset=".65419"/>
|
||||||
|
<stop stop-color="#34a2cb" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<clipPath id="clipPath1652">
|
||||||
|
<path d="m0 1481.2h1762.6v-1481.2h-1762.6z"/>
|
||||||
|
</clipPath>
|
||||||
|
<linearGradient id="linearGradient1694" x2="1" gradientTransform="matrix(0 -72.481 72.481 0 1353.9 413.89)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#93d4f5" offset="0"/>
|
||||||
|
<stop stop-color="#93d4f5" offset=".00021973"/>
|
||||||
|
<stop stop-color="#93d4f5" offset=".69201"/>
|
||||||
|
<stop stop-color="#2f98be" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<clipPath id="clipPath1704">
|
||||||
|
<path d="m0 1481.2h1762.6v-1481.2h-1762.6z"/>
|
||||||
|
</clipPath>
|
||||||
|
<linearGradient id="linearGradient1730" x2="1" gradientTransform="matrix(0 -55.11 55.11 0 1319.6 402.52)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop stop-color="#34a2cb" offset="0"/>
|
||||||
|
<stop stop-color="#7acdf4" offset=".4661"/>
|
||||||
|
<stop stop-color="#7acdf4" offset=".65419"/>
|
||||||
|
<stop stop-color="#34a2cb" offset="1"/>
|
||||||
|
</linearGradient>
|
||||||
|
<clipPath id="clipPath1740">
|
||||||
|
<path d="m0 1481.2h1762.6v-1481.2h-1762.6z"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
<g>
|
||||||
|
<g transform="translate(-25.939 -54.31)">
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 51.305 83.317)">
|
||||||
|
<path d="m0 0c-7.809 0-14.162-16.346-14.162-36.439 0-20.094 6.353-36.44 14.162-36.44 7.81 0 14.163 16.346 14.163 36.44 0 20.093-6.353 36.439-14.163 36.439m0-73.872c-8.498 0-15.155 16.442-15.155 37.433 0 20.99 6.657 37.432 15.155 37.432 8.499 0 15.155-16.442 15.155-37.432 0-20.991-6.656-37.433-15.155-37.433" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 46.133 96.173)">
|
||||||
|
<path d="m0 0c0-20.398 6.563-36.936 14.659-36.936 8.097 0 14.66 16.538 14.66 36.936 0 20.399-6.563 36.937-14.66 36.937-8.096 0-14.659-16.538-14.659-36.937" fill="#71bde1"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 51.305 83.317)">
|
||||||
|
<path d="m0 0c-7.809 0-14.162-16.346-14.162-36.439 0-20.094 6.353-36.44 14.162-36.44 7.81 0 14.163 16.346 14.163 36.44 0 20.093-6.353 36.439-14.163 36.439m0-73.872c-8.498 0-15.155 16.442-15.155 37.433 0 20.99 6.657 37.432 15.155 37.432 8.499 0 15.155-16.442 15.155-37.432 0-20.991-6.656-37.433-15.155-37.433" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 51.305 109.38)">
|
||||||
|
<path d="m0 0h-53.903c-8.499 0-15.156 16.442-15.156 37.433 0 20.64 6.799 37.432 15.156 37.432h53.903v-0.993h-53.903c-7.81 0-14.163-16.346-14.163-36.439 0-20.094 6.353-36.44 14.163-36.44h53.903z" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path d="m950.06 414.45c-8.095 0-14.659-16.538-14.659-36.937s6.564-36.935 14.659-36.935h53.904c-8.096 0-14.659 16.536-14.659 36.935s6.563 36.937 14.659 36.937z" fill="url(#linearGradient1606)"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g clip-path="url(#clipPath1616)">
|
||||||
|
<g transform="translate(950.07 413.95)">
|
||||||
|
<path d="m0 0c-7.81 0-14.163-16.346-14.163-36.439 0-20.094 6.353-36.44 14.163-36.44h50.354c-6.732 3.849-11.606 18.481-11.606 36.44s4.874 32.59 11.606 36.439zm53.903-73.872h-53.903c-8.499 0-15.155 16.442-15.155 37.433 0 20.64 6.799 37.432 15.155 37.432h53.903v-0.993c-7.808 0-14.162-16.346-14.162-36.439 0-20.094 6.354-36.44 14.162-36.44z" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path d="m994.28 377.51c0-16.982 4.34-30.748 9.694-30.748 5.353 0 9.693 13.766 9.693 30.748 0 16.984-4.34 30.75-9.693 30.75-5.354 0-9.694-13.766-9.694-30.75" fill="url(#linearGradient1642)"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g clip-path="url(#clipPath1652)">
|
||||||
|
<g transform="translate(1004 407.77)">
|
||||||
|
<path d="m0 0c-4.985 0-9.196-13.854-9.196-30.253s4.211-30.255 9.196-30.255c4.986 0 9.197 13.856 9.197 30.255s-4.211 30.253-9.197 30.253m0-61.5c-5.713 0-10.189 13.726-10.189 31.247s4.476 31.246 10.189 31.246c5.714 0 10.19-13.725 10.19-31.246s-4.476-31.247-10.19-31.247" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1319.6 413.95)">
|
||||||
|
<path d="m0 0c-7.811 0-14.164-16.346-14.164-36.439 0-20.094 6.353-36.44 14.164-36.44 7.81 0 14.163 16.346 14.163 36.44 0 20.093-6.353 36.439-14.163 36.439m0-73.872c-8.498 0-15.156 16.442-15.156 37.433 0 20.99 6.658 37.432 15.156 37.432 8.499 0 15.155-16.442 15.155-37.432 0-20.991-6.656-37.433-15.155-37.433" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1334.2 377.51)">
|
||||||
|
<path d="m0 0c0-20.398-6.563-36.936-14.659-36.936-8.097 0-14.659 16.538-14.659 36.936 0 20.399 6.562 36.937 14.659 36.937 8.096 0 14.659-16.538 14.659-36.937" fill="#71bde1"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1319.6 413.95)">
|
||||||
|
<path d="m0 0c-7.811 0-14.164-16.346-14.164-36.439 0-20.094 6.353-36.44 14.164-36.44 7.81 0 14.163 16.346 14.163 36.44 0 20.093-6.353 36.439-14.163 36.439m0-73.872c-8.498 0-15.156 16.442-15.156 37.433 0 20.99 6.658 37.432 15.156 37.432 8.499 0 15.155-16.442 15.155-37.432 0-20.991-6.656-37.433-15.155-37.433" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1373.5 340.08)">
|
||||||
|
<path d="m0 0h-53.903v0.993h53.903c7.811 0 14.164 16.346 14.164 36.44 0 20.093-6.353 36.439-14.164 36.439h-53.903v0.993h53.903c8.498 0 15.156-16.442 15.156-37.432 0-20.991-6.658-37.433-15.156-37.433" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path d="m1319.6 414.45c8.096 0 14.659-16.538 14.659-36.937s-6.563-36.935-14.659-36.935h53.903c8.097 0 14.66 16.536 14.66 36.935s-6.563 36.937-14.66 36.937z" fill="url(#linearGradient1694)"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g clip-path="url(#clipPath1704)">
|
||||||
|
<g transform="translate(1323.1 341.08)">
|
||||||
|
<path d="m0 0h50.353c7.81 0 14.164 16.346 14.164 36.439 0 20.094-6.354 36.44-14.164 36.44h-50.353c6.73-3.849 11.604-18.481 11.604-36.44s-4.874-32.59-11.604-36.439m50.353-0.993h-53.904v0.993c7.81 0 14.163 16.346 14.163 36.439 0 20.094-6.353 36.44-14.163 36.44v0.993h53.904c8.498 0 15.156-16.442 15.156-37.433 0-20.99-6.658-37.432-15.156-37.432" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path d="m1309.9 377.51c0-16.982 4.34-30.748 9.693-30.748 5.354 0 9.694 13.766 9.694 30.748 0 16.984-4.34 30.75-9.694 30.75-5.353 0-9.693-13.766-9.693-30.75" fill="url(#linearGradient1730)"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(.35278 0 0 -.35278 -302.87 229.35)">
|
||||||
|
<g clip-path="url(#clipPath1740)">
|
||||||
|
<g transform="translate(1319.6 407.77)">
|
||||||
|
<path d="m0 0c-4.986 0-9.197-13.854-9.197-30.253s4.211-30.255 9.197-30.255 9.197 13.856 9.197 30.255-4.211 30.253-9.197 30.253m0-61.5c-5.713 0-10.189 13.726-10.189 31.247s4.476 31.246 10.189 31.246c5.714 0 10.189-13.725 10.189-31.246s-4.475-31.247-10.189-31.247" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1066.3 377.51)">
|
||||||
|
<path d="m0 0-15.355 8.867v-3.637h-22.405v-10.459h22.405v-3.637z" fill="#55c3f1"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1295.9 377.51)">
|
||||||
|
<path d="m0 0-15.355 8.867v-3.637h-22.405v-10.459h22.405v-3.637z" fill="#55c3f1"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1111.3 380.14)">
|
||||||
|
<path d="m0 0h6.173l-12.187-16.271-2.068-9.797h-5.448l2.069 9.797-5.554 16.271h6.421l2.99-11.354z" fill="#0071be"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1129.9 363.68)">
|
||||||
|
<path d="m0 0c0.414 1.936 0.334 3.424-0.238 4.467-0.573 1.043-1.595 1.566-3.07 1.566-1.473 0-2.716-0.523-3.731-1.566s-1.728-2.531-2.141-4.467c-0.412-1.933-0.332-3.426 0.24-4.474 0.571-1.048 1.595-1.574 3.069-1.574s2.717 0.526 3.731 1.574c1.015 1.048 1.727 2.541 2.14 4.474m-6.756-10.274c-3.314 0-5.568 1.004-6.765 3.015s-1.496 4.43-0.894 7.259c0.59 2.783 1.917 5.193 3.98 7.236 2.064 2.039 4.751 3.06 8.065 3.06 3.313 0 5.566-1.021 6.757-3.06 1.19-2.043 1.491-4.453 0.902-7.236-0.602-2.829-1.931-5.248-3.989-7.259s-4.742-3.015-8.056-3.015" fill="#0071be"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1145.9 373.35)">
|
||||||
|
<path d="m0 0-2.459-11.621c-0.235-1.096-0.283-1.922-0.142-2.477 0.247-0.977 1.043-1.466 2.388-1.466 1.722 0 3.048 0.695 3.98 2.086 0.496 0.756 0.872 1.752 1.132 2.99l2.228 10.488h5.111l-4.085-19.277h-4.898l0.564 2.721c-0.058-0.057-0.212-0.235-0.459-0.53-0.248-0.293-0.525-0.555-0.832-0.777-0.943-0.708-1.813-1.193-2.608-1.451-0.796-0.259-1.689-0.39-2.68-0.39-2.853 0-4.556 1.027-5.111 3.078-0.308 1.132-0.224 2.801 0.247 5.005l2.459 11.621z" fill="#0071be"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1174.5 375.62)">
|
||||||
|
<path d="m0 0h-5.075l-1.627-7.678h5.076c1.285 0 2.352 0.315 3.2 0.94 0.851 0.624 1.416 1.615 1.698 2.969 0.295 1.358 0.145 2.323-0.45 2.901s-1.537 0.868-2.822 0.868m-2.122-12.17h-5.536l-1.981-9.372h-5.412l5.536 26.068h11.355c2.618 0 4.56-0.672 5.827-2.015 1.269-1.345 1.607-3.426 1.018-6.242-0.661-3.079-1.904-5.254-3.732-6.528-1.828-1.273-4.185-1.911-7.075-1.911" fill="#0071be"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1188.2 354.07)">
|
||||||
|
<path d="m0 0h-5.041l5.536 26.068h5.04z" fill="#0071be"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1208.4 363.68)">
|
||||||
|
<path d="m0 0c0.413 1.936 0.334 3.424-0.239 4.467-0.572 1.043-1.594 1.566-3.069 1.566-1.473 0-2.716-0.523-3.731-1.566s-1.728-2.531-2.141-4.467c-0.412-1.933-0.332-3.426 0.24-4.474 0.571-1.048 1.594-1.574 3.068-1.574s2.717 0.526 3.732 1.574c1.014 1.048 1.727 2.541 2.14 4.474m-6.756-10.274c-3.314 0-5.568 1.004-6.765 3.015-1.198 2.011-1.496 4.43-0.894 7.259 0.59 2.783 1.917 5.193 3.98 7.236 2.063 2.039 4.751 3.06 8.065 3.06 3.313 0 5.565-1.021 6.757-3.06 1.19-2.043 1.491-4.453 0.902-7.236-0.602-2.829-1.932-5.248-3.989-7.259-2.058-2.011-4.742-3.015-8.056-3.015" fill="#0071be"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1216.5 369.58)">
|
||||||
|
<path d="m0 0 0.761 3.591h2.688l1.15 5.377h4.988l-1.149-5.377h3.129l-0.76-3.591h-3.13l-2.176-10.186c-0.165-0.792-0.168-1.283-0.01-1.476 0.16-0.196 0.752-0.293 1.779-0.293 0.153 0 0.315 2e-3 0.486 0.01 0.17 6e-3 0.344 0.013 0.521 0.026l-0.812-3.769-2.406-0.088c-2.394-0.081-3.933 0.33-4.618 1.24-0.434 0.577-0.53 1.467-0.282 2.67l2.529 11.866z" fill="#0071be"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1072.1 394.28)">
|
||||||
|
<path d="m0 0 30.155 39.063-31.606 24.4-30.156-39.063zm31.411 39.225-31.25-40.48-33.023 25.493 31.249 40.481z" fill="#000145"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1070.3 460.11)">
|
||||||
|
<path d="m0 0-0.485-0.628-31.249-40.48-0.486-0.628 0.628-0.486 33.025-25.493 0.628-0.485 0.484 0.628 31.25 40.48 0.485 0.628-0.629 0.485-33.023 25.494zm0.143-1.113 33.024-25.494-31.25-40.48-33.023 25.493z" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1071.1 450.66)">
|
||||||
|
<path d="m0 0-23.69-30.687-2.196 1.694 23.691 30.688z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1068.2 439.15)">
|
||||||
|
<path d="m0 0-17.041-22.074-2.195 1.694 17.041 22.074z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1066.5 429.09)">
|
||||||
|
<path d="m0 0-11.519-14.922-2.195 1.694 11.52 14.922z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1067.5 422.7)">
|
||||||
|
<path d="m0 0-8.821-11.427-2.196 1.695 8.822 11.426z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1078.5 429.09)">
|
||||||
|
<path d="m0 0-15.994-20.719-2.194 1.695 15.993 20.718z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1088.1 433.83)">
|
||||||
|
<path d="m0 0-21.892-28.357-2.195 1.694 21.892 28.357z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1089 427.17)">
|
||||||
|
<path d="m0 0-18.994-24.604-2.195 1.694 18.994 24.604z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1089.7 420.32)">
|
||||||
|
<path d="m0 0-15.946-20.656-2.196 1.694 15.947 20.657z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1109.2 437.84)">
|
||||||
|
<path d="m0 0 46.857 15.48-12.524 37.914-46.858-15.48zm47.988 14.911-48.557-16.041-13.087 39.613 48.557 16.041z" fill="#000145"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1144.6 493.37)">
|
||||||
|
<path d="m0 0-0.754-0.248-48.557-16.042-0.753-0.248 0.249-0.754 13.086-39.613 0.249-0.754 0.753 0.249 48.558 16.041 0.754 0.249-0.249 0.754-13.087 39.613zm-0.505-1.002 13.087-39.613-48.558-16.041-13.086 39.613z" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1115.9 448.44)">
|
||||||
|
<path d="m0 0c0.21-0.637 0.896-0.982 1.533-0.772s0.983 0.897 0.773 1.534c-0.211 0.636-0.898 0.981-1.535 0.771-0.636-0.21-0.981-0.896-0.771-1.533" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1134.7 484.29)">
|
||||||
|
<path d="M 0,0 C 0.21,-0.637 0.897,-0.982 1.533,-0.771 2.17,-0.562 2.516,0.125 2.306,0.762 2.096,1.398 1.408,1.744 0.772,1.534 0.136,1.323 -0.21,0.637 0,0" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1127.6 481.3)">
|
||||||
|
<path d="m0 0c0.21-0.637 0.896-0.982 1.533-0.771 0.637 0.209 0.983 0.896 0.773 1.533-0.211 0.636-0.898 0.982-1.535 0.771-0.636-0.21-0.982-0.896-0.771-1.533" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1121.9 457.26)">
|
||||||
|
<path d="m0 0c0.211-0.637 0.897-0.981 1.534-0.771 0.637 0.209 0.983 0.896 0.772 1.533-0.21 0.636-0.897 0.982-1.534 0.772-0.636-0.211-0.982-0.897-0.772-1.534" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1116.4 454.58)">
|
||||||
|
<path d="m0 0c0.21-0.637 0.897-0.981 1.533-0.771 0.637 0.209 0.983 0.896 0.773 1.533-0.21 0.636-0.898 0.982-1.534 0.772s-0.982-0.897-0.772-1.534" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1125.1 463.01)">
|
||||||
|
<path d="m0 0c0.211-0.637 0.897-0.982 1.534-0.772s0.983 0.897 0.772 1.534c-0.21 0.636-0.897 0.982-1.534 0.771-0.636-0.21-0.982-0.896-0.772-1.533" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1125.1 450.66)">
|
||||||
|
<path d="m0 0c0.21-0.637 0.897-0.981 1.534-0.771 0.637 0.209 0.982 0.896 0.772 1.533-0.21 0.636-0.897 0.982-1.534 0.772-0.636-0.21-0.982-0.897-0.772-1.534" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1111.3 458.44)">
|
||||||
|
<path d="m0 0c0.21-0.637 0.896-0.982 1.533-0.771 0.637 0.209 0.983 0.896 0.773 1.533-0.211 0.636-0.898 0.982-1.535 0.771-0.636-0.21-0.982-0.896-0.771-1.533" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1121 445.68)">
|
||||||
|
<path d="m0 0c0.21-0.637 0.896-0.982 1.533-0.772s0.983 0.897 0.773 1.534c-0.211 0.636-0.898 0.982-1.535 0.771-0.636-0.21-0.982-0.896-0.771-1.533" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1141.4 467.03)">
|
||||||
|
<path d="m0 0c0.399 0.539 0.285 1.3-0.254 1.698-0.539 0.399-1.299 0.285-1.698-0.254s-0.284-1.299 0.255-1.698c0.539-0.398 1.299-0.285 1.697 0.254" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1134.3 466.4)">
|
||||||
|
<path d="m0 0c0.398 0.539 0.285 1.3-0.254 1.698-0.539 0.399-1.3 0.285-1.698-0.254-0.399-0.539-0.285-1.298 0.254-1.698 0.539-0.398 1.3-0.285 1.698 0.254" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1141.7 475.64)">
|
||||||
|
<path d="m0 0c0.398 0.539 0.285 1.299-0.254 1.698s-1.3 0.285-1.698-0.254c-0.399-0.539-0.285-1.299 0.254-1.698s1.3-0.285 1.698 0.254" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1129.2 473.3)">
|
||||||
|
<path d="m0 0c0.398 0.539 0.285 1.3-0.254 1.698-0.539 0.399-1.3 0.285-1.698-0.254-0.4-0.539-0.285-1.299 0.254-1.698 0.539-0.398 1.299-0.285 1.698 0.254" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1136.1 474.65)">
|
||||||
|
<path d="m0 0c0.398 0.539 0.285 1.3-0.254 1.698-0.539 0.399-1.3 0.285-1.698-0.254-0.4-0.539-0.285-1.299 0.254-1.698 0.539-0.398 1.3-0.285 1.698 0.254" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1143.5 482.52)">
|
||||||
|
<path d="m0 0c0.398 0.539 0.285 1.299-0.254 1.698s-1.3 0.285-1.698-0.254c-0.4-0.539-0.285-1.299 0.254-1.698 0.539-0.398 1.299-0.285 1.698 0.254" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1111.5 442.95)">
|
||||||
|
<path d="m0 0c0.211-0.636 0.897-0.981 1.534-0.771 0.637 0.209 0.982 0.896 0.772 1.533-0.21 0.636-0.897 0.982-1.534 0.772-0.636-0.21-0.982-0.897-0.772-1.534" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1109.5 451.66)">
|
||||||
|
<path d="m0 0c0.211-0.637 0.897-0.981 1.534-0.771 0.637 0.209 0.983 0.896 0.772 1.533-0.21 0.636-0.897 0.982-1.534 0.772-0.636-0.211-0.982-0.897-0.772-1.534" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1144.5 473.26)">
|
||||||
|
<path d="m0 0c0.21-0.637 0.896-0.982 1.533-0.771 0.637 0.209 0.983 0.896 0.773 1.533-0.211 0.636-0.898 0.982-1.535 0.771-0.636-0.21-0.982-0.896-0.771-1.533" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1166.5 453.32)">
|
||||||
|
<path d="m0 0 46.857-15.48 12.525 37.913-46.858 15.479zm47.427-16.611-48.558 16.042 13.086 39.612 48.558-16.041z" fill="#000145"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1177.9 493.37)">
|
||||||
|
<path d="m0 0-0.248-0.753-13.087-39.612-0.249-0.754 0.754-0.249 48.558-16.041 0.753-0.249 0.248 0.754 13.087 39.612 0.249 0.754-0.753 0.248-48.558 16.042zm0.505-1.002 48.558-16.041-13.086-39.613-48.558 16.042z" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1174.3 453.88)">
|
||||||
|
<path d="m0 0-2.487 8.169 0.849 0.259 2.048-6.727 10.265 10.607 2.266-7.448 10.266 10.607 2.267-7.448 10.265 10.606 2.267-7.447 9.74 10.064 0.638-0.618-10.79-11.147-2.266 7.446-10.265-10.606-2.267 7.448-10.265-10.607-2.266 7.447z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1220.3 433.35)">
|
||||||
|
<path d="m0 0 30.156-39.063 31.607 24.399-30.156 39.063zm29.994-40.319-31.249 40.48 33.024 25.493 31.25-40.479z" fill="#000145"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1252.2 460.11)">
|
||||||
|
<path d="m0 0-0.629-0.484-33.023-25.495-0.628-0.484 0.484-0.629 31.25-40.479 0.485-0.628 0.628 0.484 33.024 25.494 0.628 0.485-0.485 0.628-31.25 40.48zm-0.144-1.113 31.249-40.48-33.022-25.493-31.25 40.48z" fill="#fff"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1228 429.97)">
|
||||||
|
<path d="m0 0 7.732-10.017 4.727 3.65-7.732 10.016zm7.572-11.262-8.818 11.423 6.133 4.735 8.817-11.423z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1232.8 422.93)">
|
||||||
|
<path d="m0 0-0.543 0.703 5.43 4.193 0.543-0.704z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1239.9 413.79)">
|
||||||
|
<path d="m0 0-0.543 0.703 5.43 4.192 0.543-0.703z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1225.2 432.78)">
|
||||||
|
<path d="m0 0-0.543 0.702 5.43 4.193 0.543-0.704z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1242.1 415.85)">
|
||||||
|
<path d="m0 0-4.191 5.43 0.703 0.543 4.191-5.43z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1229.5 432.12)">
|
||||||
|
<path d="m0 0-2.096 2.715 0.703 0.543 2.096-2.715z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1263.1 426.88)">
|
||||||
|
<path d="m0 0 6.573-8.515 4.727 3.649-6.573 8.514zm6.413-9.761-7.658 9.921 6.132 4.734 7.658-9.92z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1265.1 423.6)">
|
||||||
|
<path d="m0 0-0.543 0.702 5.429 4.192 0.543-0.704z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1272.1 414.47)">
|
||||||
|
<path d="m0 0-0.542 0.703 5.429 4.192 0.543-0.704z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1261.2 428.67)">
|
||||||
|
<path d="m0 0-0.543 0.703 5.43 4.192 0.543-0.704z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1274.3 416.52)">
|
||||||
|
<path d="m0 0-2.445 3.168 0.703 0.543 2.445-3.168z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1264.7 429.03)">
|
||||||
|
<path d="m0 0-1.302 1.685 0.703 0.543 1.301-1.686z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1240.8 434.62)">
|
||||||
|
<path d="m0 0 13.419-17.383 4.727 3.649-13.419 17.382zm13.259-18.629-14.504 18.789 6.133 4.735 14.504-18.79z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1250.8 420.93)">
|
||||||
|
<path d="m0 0-0.543 0.703 5.43 4.192 0.543-0.703z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1261.9 406.54)">
|
||||||
|
<path d="m0 0-0.543 0.703 5.43 4.192 0.543-0.703z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1238 437.43)">
|
||||||
|
<path d="m0 0-0.542 0.703 5.43 4.192 0.543-0.704z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1264.1 408.6)">
|
||||||
|
<path d="m0 0-7.612 9.861 0.702 0.543 7.612-9.861z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
<g transform="translate(1242.3 436.77)">
|
||||||
|
<path d="m0 0-2.096 2.715 0.703 0.542 2.096-2.714z" fill="#0079b7"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 20 KiB |
9
test/fixtures/simple-histogram-symbol-@.txt
vendored
Normal file
9
test/fixtures/simple-histogram-symbol-@.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
┌ ┐
|
||||||
|
[-60.0, -40.0) ┤@@@@@@@@@@@@@@@@@@@ 1
|
||||||
|
[-40.0, -20.0) ┤@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
|
||||||
|
[-20.0, 0.0) ┤@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
|
||||||
|
[ 0.0, 20.0) ┤@@@@@@@@@@@@@@@@@@@ 1
|
||||||
|
[ 20.0, 40.0) ┤@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
|
||||||
|
[ 40.0, 60.0) ┤@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 2
|
||||||
|
└ ┘
|
||||||
|
Frequency
|
18
test/fixtures/simple-lineplot-border-barplot.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-border-barplot.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌ ┐
|
||||||
|
50 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⠀⠀⠀⡸
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢇⠀⠀⠀⠀⠀⠀⠀⡇
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⢇⠀⠀⠀⠀⠀⠀⠀⡎⢸⠀⠀⠀⠀⠀⠀⢠⠃
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⠀⠀⠀⡜⢸⠀⠀⠀⠀⠀⠀⢠⠃⠈⡆⠀⠀⠀⠀⠀⢸⠀
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡸⠸⡀⠀⠀⠀⠀⠀⢠⠃⠀⡇⠀⠀⠀⠀⠀⢸⠀⠀⢇⠀⠀⠀⠀⠀⡎⠀
|
||||||
|
┤⠀⠀⠀⡠⠳⡀⠀⠀⠀⠀⠀⢠⠃⠀⢣⠀⠀⠀⠀⠀⡜⠀⠀⢱⠀⠀⠀⠀⠀⡇⠀⠀⢸⠀⠀⠀⠀⠀⡇⠀
|
||||||
|
┤⠤⢤⠼⠤⠤⠵⡤⠤⠤⠤⢤⠧⠤⠤⠼⡤⠤⠤⠤⢤⠧⠤⠤⠬⡦⠤⠤⠤⢴⠥⠤⠤⠬⡦⠤⠤⠤⢼⠤⠤
|
||||||
|
┤⡠⠃⠀⠀⠀⠀⠱⡀⠀⠀⡜⠀⠀⠀⠀⢱⠀⠀⠀⡸⠀⠀⠀⠀⢣⠀⠀⠀⡸⠀⠀⠀⠀⡇⠀⠀⠀⡜⠀⠀
|
||||||
|
┤⠁⠀⠀⠀⠀⠀⠀⠱⡀⡰⠁⠀⠀⠀⠀⠀⡇⠀⢀⠇⠀⠀⠀⠀⠸⡀⠀⠀⡇⠀⠀⠀⠀⢸⠀⠀⠀⡇⠀⠀
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠱⠃⠀⠀⠀⠀⠀⠀⠸⡀⡸⠀⠀⠀⠀⠀⠀⢇⠀⢸⠀⠀⠀⠀⠀⠘⡄⠀⢰⠁⠀⠀
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢇⠇⠀⠀⠀⠀⠀⠀⢸⠀⡎⠀⠀⠀⠀⠀⠀⡇⠀⢸⠀⠀⠀
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⣇⠇⠀⠀⠀⠀⠀⠀⢸⠀⡇⠀⠀⠀
|
||||||
|
┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠀⠀⠀⠀⠀⠀⠀⠘⣄⠇⠀⠀⠀
|
||||||
|
-50 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀
|
||||||
|
└ ┘
|
||||||
|
1 10
|
18
test/fixtures/simple-lineplot-border-corners.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-border-corners.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌ ┐
|
||||||
|
50 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⠀⠀⠀⡸
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢇⠀⠀⠀⠀⠀⠀⠀⡇
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⢇⠀⠀⠀⠀⠀⠀⠀⡎⢸⠀⠀⠀⠀⠀⠀⢠⠃
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⠀⠀⠀⡜⢸⠀⠀⠀⠀⠀⠀⢠⠃⠈⡆⠀⠀⠀⠀⠀⢸⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡸⠸⡀⠀⠀⠀⠀⠀⢠⠃⠀⡇⠀⠀⠀⠀⠀⢸⠀⠀⢇⠀⠀⠀⠀⠀⡎⠀
|
||||||
|
⠀⠀⠀⡠⠳⡀⠀⠀⠀⠀⠀⢠⠃⠀⢣⠀⠀⠀⠀⠀⡜⠀⠀⢱⠀⠀⠀⠀⠀⡇⠀⠀⢸⠀⠀⠀⠀⠀⡇⠀
|
||||||
|
⠤⢤⠼⠤⠤⠵⡤⠤⠤⠤⢤⠧⠤⠤⠼⡤⠤⠤⠤⢤⠧⠤⠤⠬⡦⠤⠤⠤⢴⠥⠤⠤⠬⡦⠤⠤⠤⢼⠤⠤
|
||||||
|
⡠⠃⠀⠀⠀⠀⠱⡀⠀⠀⡜⠀⠀⠀⠀⢱⠀⠀⠀⡸⠀⠀⠀⠀⢣⠀⠀⠀⡸⠀⠀⠀⠀⡇⠀⠀⠀⡜⠀⠀
|
||||||
|
⠁⠀⠀⠀⠀⠀⠀⠱⡀⡰⠁⠀⠀⠀⠀⠀⡇⠀⢀⠇⠀⠀⠀⠀⠸⡀⠀⠀⡇⠀⠀⠀⠀⢸⠀⠀⠀⡇⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠱⠃⠀⠀⠀⠀⠀⠀⠸⡀⡸⠀⠀⠀⠀⠀⠀⢇⠀⢸⠀⠀⠀⠀⠀⠘⡄⠀⢰⠁⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢇⠇⠀⠀⠀⠀⠀⠀⢸⠀⡎⠀⠀⠀⠀⠀⠀⡇⠀⢸⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⣇⠇⠀⠀⠀⠀⠀⠀⢸⠀⡇⠀⠀⠀
|
||||||
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠀⠀⠀⠀⠀⠀⠀⠘⣄⠇⠀⠀⠀
|
||||||
|
-50 ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀
|
||||||
|
└ ┘
|
||||||
|
1 10
|
18
test/fixtures/simple-lineplot-canvas-ascii.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-canvas-ascii.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌────────────────────────────────────────┐
|
||||||
|
50 │ |│
|
||||||
|
│ ., /│
|
||||||
|
│ .\ /│
|
||||||
|
│ .\ |\ .`│
|
||||||
|
│ , /\ ,`", . │
|
||||||
|
│ /|. .` . / \ | │
|
||||||
|
│ .\. .` \ / l / \ | │
|
||||||
|
│-----^r----^---r--------r--------r---|--│
|
||||||
|
│.` \. | \ / | | \ | │
|
||||||
|
│` \./ . .` |. | \ | │
|
||||||
|
│ \` |./ . . ", ,` │
|
||||||
|
│ \` \ | \ / │
|
||||||
|
│ " |` \ | │
|
||||||
|
│ / ",` │
|
||||||
|
-50 │ Y │
|
||||||
|
└────────────────────────────────────────┘
|
||||||
|
1 10
|
18
test/fixtures/simple-lineplot-canvas-density.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-canvas-density.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌────────────────────────────────────────┐
|
||||||
|
50 │ ░│
|
||||||
|
│ ░ ░│
|
||||||
|
│ ░░ ░│
|
||||||
|
│ ░▒ ░░ ░░│
|
||||||
|
│ ░ ░░ ░░░ ░ │
|
||||||
|
│ ░░ ░░ ░ ░ ░ ░ │
|
||||||
|
│ ░▒ ░░ ░ ░ ░ ░ ░ ░ │
|
||||||
|
│░░▒░░▒░░░░░▒░░░░░░░░▒░░░░░░░░░░░░░░░░▒░░│
|
||||||
|
│░░ ░ ░ ░ ░ ░ ░ ░ ░ │
|
||||||
|
│░ ░ ░░ ░░ ░ ░ ░ ░ ░ │
|
||||||
|
│ ▒░ ░ ░ ░ ░ ░░ ░░ │
|
||||||
|
│ ░░ ░ ░ ░ ░ │
|
||||||
|
│ ░ ░░ ░ ░ │
|
||||||
|
│ ▓ ░░░ │
|
||||||
|
-50 │ █ │
|
||||||
|
└────────────────────────────────────────┘
|
||||||
|
1 10
|
18
test/fixtures/simple-lineplot-canvas-dot.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-canvas-dot.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌────────────────────────────────────────┐
|
||||||
|
50 │ :│
|
||||||
|
│ . :│
|
||||||
|
│ :: :│
|
||||||
|
│ .: :: .'│
|
||||||
|
│ . :: :'. : │
|
||||||
|
│ :: .' : : : : │
|
||||||
|
│ .: .' : : : : : : │
|
||||||
|
│..:..:.....:..:.....:..:.....:..:....:..│
|
||||||
|
│.' : : : : : : : : │
|
||||||
|
│' : .' '. : : : : : │
|
||||||
|
│ :' : : : : '. .' │
|
||||||
|
│ :: : : : : │
|
||||||
|
│ ' :: : : │
|
||||||
|
│ : '.' │
|
||||||
|
-50 │ : │
|
||||||
|
└────────────────────────────────────────┘
|
||||||
|
1 10
|
18
test/fixtures/simple-lineplot-no-grid.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-no-grid.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌────────────────────────────────────────┐
|
||||||
|
50 │⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⠀⠀⠀⡸│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢇⠀⠀⠀⠀⠀⠀⠀⡇│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⢇⠀⠀⠀⠀⠀⠀⠀⡎⢸⠀⠀⠀⠀⠀⠀⢠⠃│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⠀⠀⠀⡜⢸⠀⠀⠀⠀⠀⠀⢠⠃⠈⡆⠀⠀⠀⠀⠀⢸⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡸⠸⡀⠀⠀⠀⠀⠀⢠⠃⠀⡇⠀⠀⠀⠀⠀⢸⠀⠀⢇⠀⠀⠀⠀⠀⡎⠀│
|
||||||
|
│⠀⠀⠀⡠⠳⡀⠀⠀⠀⠀⠀⢠⠃⠀⢣⠀⠀⠀⠀⠀⡜⠀⠀⢱⠀⠀⠀⠀⠀⡇⠀⠀⢸⠀⠀⠀⠀⠀⡇⠀│
|
||||||
|
│⠀⢀⠜⠀⠀⠱⡀⠀⠀⠀⢀⠇⠀⠀⠘⡄⠀⠀⠀⢠⠃⠀⠀⠈⡆⠀⠀⠀⢰⠁⠀⠀⠈⡆⠀⠀⠀⢸⠀⠀│
|
||||||
|
│⡠⠃⠀⠀⠀⠀⠱⡀⠀⠀⡜⠀⠀⠀⠀⢱⠀⠀⠀⡸⠀⠀⠀⠀⢣⠀⠀⠀⡸⠀⠀⠀⠀⡇⠀⠀⠀⡜⠀⠀│
|
||||||
|
│⠁⠀⠀⠀⠀⠀⠀⠱⡀⡰⠁⠀⠀⠀⠀⠀⡇⠀⢀⠇⠀⠀⠀⠀⠸⡀⠀⠀⡇⠀⠀⠀⠀⢸⠀⠀⠀⡇⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠱⠃⠀⠀⠀⠀⠀⠀⠸⡀⡸⠀⠀⠀⠀⠀⠀⢇⠀⢸⠀⠀⠀⠀⠀⠘⡄⠀⢰⠁⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢇⠇⠀⠀⠀⠀⠀⠀⢸⠀⡎⠀⠀⠀⠀⠀⠀⡇⠀⢸⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⣇⠇⠀⠀⠀⠀⠀⠀⢸⠀⡇⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠀⠀⠀⠀⠀⠀⠀⠘⣄⠇⠀⠀⠀│
|
||||||
|
-50 │⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠀⠀⠀⠀│
|
||||||
|
└────────────────────────────────────────┘
|
||||||
|
1 10
|
18
test/fixtures/simple-lineplot-xlim--1-5-ylim--25-50.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-xlim--1-5-ylim--25-50.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌────────────────────────────────────────┐
|
||||||
|
50 │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⢳⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠇⠈⡆⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⢣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡎⠀⠀⠸⡀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡰⠁⠀⠀⢣⠀⠀⠀⠀⠀⠀⠀⠀⡜⠀⠀⠀⠀⢣⠀⠀⠀⠀│
|
||||||
|
│⠉⠉⠉⠉⠉⠉⢹⠉⠉⠉⠉⠉⠉⠉⠉⡩⠋⠉⠉⠉⠉⠉⠹⡉⠉⠉⠉⠉⠉⡹⠉⠉⠉⠉⠉⠉⡏⠉⠉⠉│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⢀⠜⠀⠀⠀⠀⠀⠀⠀⠀⠱⡀⠀⠀⠀⢰⠁⠀⠀⠀⠀⠀⠀⠸⡀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⡄⠀⢠⠃⠀⠀⠀⠀⠀⠀⠀⠀⢣⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣄⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⡆⠀│
|
||||||
|
-25 │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⡀│
|
||||||
|
└────────────────────────────────────────┘
|
||||||
|
-1 5
|
18
test/fixtures/simple-lineplot-xlim--1-5.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-xlim--1-5.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌────────────────────────────────────────┐
|
||||||
|
50 │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣄⠀⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠜⠈⡆⠀⠀⠀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡠⠊⠣⡀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠎⠀⠀⠘⡄⠀⠀⠀⠀│
|
||||||
|
│⠤⠤⠤⠤⠤⠤⢼⠤⠤⠤⠤⠤⠤⠤⠤⢤⠴⠥⠤⠤⠤⠵⢤⠤⠤⠤⠤⠤⠤⢤⠮⠤⠤⠤⠤⠼⡤⠤⠤⠤│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⢀⠔⠁⠀⠀⠀⠀⠀⠀⠈⠢⡀⠀⠀⠀⢠⠃⠀⠀⠀⠀⠀⠀⠱⡀⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⢄⠀⢠⠃⠀⠀⠀⠀⠀⠀⠀⠀⢱⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠲⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢣⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢣│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
-50 │⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
|
||||||
|
└────────────────────────────────────────┘
|
||||||
|
-1 5
|
18
test/fixtures/simple-lineplot-ylim--25-50.txt
vendored
Normal file
18
test/fixtures/simple-lineplot-ylim--25-50.txt
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
┌────────────────────────────────────────┐
|
||||||
|
50 │⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⡇⠀⠀⠀⠀⠀⠀⠀⡜│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢇⠀⠀⠀⠀⠀⠀⠀⡇│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡇⠀⠀⠀⠀⠀⠀⠀⡎⢸⠀⠀⠀⠀⠀⠀⢀⠇│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢸⠀⠀⠀⠀⠀⠀⠀⡇⠸⡀⠀⠀⠀⠀⠀⢸⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⢧⠀⠀⠀⠀⠀⠀⠀⡇⠘⡄⠀⠀⠀⠀⠀⢸⠀⠀⡇⠀⠀⠀⠀⠀⢸⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡸⠸⡀⠀⠀⠀⠀⠀⢠⠃⠀⡇⠀⠀⠀⠀⠀⢸⠀⠀⢇⠀⠀⠀⠀⠀⡇⠀│
|
||||||
|
│⠀⠀⠀⢠⠳⡀⠀⠀⠀⠀⠀⢠⠃⠀⢇⠀⠀⠀⠀⠀⡸⠀⠀⢱⠀⠀⠀⠀⠀⡇⠀⠀⢸⠀⠀⠀⠀⠀⡇⠀│
|
||||||
|
│⠀⠀⡠⠃⠀⢣⠀⠀⠀⠀⠀⡜⠀⠀⢸⠀⠀⠀⠀⠀⡇⠀⠀⠸⡀⠀⠀⠀⢀⠇⠀⠀⠸⡀⠀⠀⠀⢰⠁⠀│
|
||||||
|
│⠉⡹⠉⠉⠉⠉⡏⠉⠉⠉⢹⠉⠉⠉⠉⡏⠉⠉⠉⢹⠉⠉⠉⠉⡏⠉⠉⠉⢹⠉⠉⠉⠉⡏⠉⠉⠉⢹⠉⠉│
|
||||||
|
│⡰⠁⠀⠀⠀⠀⠘⡄⠀⠀⡎⠀⠀⠀⠀⢸⠀⠀⠀⡜⠀⠀⠀⠀⢱⠀⠀⠀⡜⠀⠀⠀⠀⢇⠀⠀⠀⡜⠀⠀│
|
||||||
|
│⠁⠀⠀⠀⠀⠀⠀⢱⠀⢰⠁⠀⠀⠀⠀⠈⡆⠀⢀⠇⠀⠀⠀⠀⢸⠀⠀⠀⡇⠀⠀⠀⠀⢸⠀⠀⠀⡇⠀⠀│
|
||||||
|
│⠀⠀⠀⠀⠀⠀⠀⠀⢣⡇⠀⠀⠀⠀⠀⠀⢱⠀⢸⠀⠀⠀⠀⠀⠀⡇⠀⢰⠁⠀⠀⠀⠀⠸⡀⠀⢀⠇⠀⠀│
|
||||||
|
-25 │⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠘⡄⡎⠀⠀⠀⠀⠀⠀⢣⠀⣸⠀⠀⠀⠀⠀⠀⡇⠀⢸⠀⠀⠀│
|
||||||
|
└────────────────────────────────────────┘
|
||||||
|
1 10
|
20
test/unicode_plot_test.rb
Normal file
20
test/unicode_plot_test.rb
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
require_relative 'test_helper'
|
||||||
|
require 'unicode_plot'
|
||||||
|
|
||||||
|
# Check the UnicodePlot constants that YouPlot depends on.
|
||||||
|
# Prepare for UnicodePlot version upgrades.
|
||||||
|
class UnicodePlotTest < Test::Unit::TestCase
|
||||||
|
test 'VERSION' do
|
||||||
|
assert UnicodePlot::VERSION
|
||||||
|
end
|
||||||
|
|
||||||
|
test 'BORDER_MAP' do
|
||||||
|
assert_instance_of Hash, UnicodePlot::BORDER_MAP
|
||||||
|
end
|
||||||
|
|
||||||
|
test 'PREDEFINED_TRANSFORM_FUNCTIONS' do
|
||||||
|
assert_instance_of Hash, UnicodePlot::ValueTransformer::PREDEFINED_TRANSFORM_FUNCTIONS
|
||||||
|
end
|
||||||
|
end
|
@@ -174,7 +174,7 @@ class YouPlotSimpleTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
test :line_w do
|
test :line_w do
|
||||||
YouPlot::Command.new(['line', '--w', '17']).run
|
YouPlot::Command.new(['line', '-w', '17']).run
|
||||||
assert_equal fixture('simple-lineplot-width-17.txt'), @stderr_file.read
|
assert_equal fixture('simple-lineplot-width-17.txt'), @stderr_file.read
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ class YouPlotSimpleTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
test :line_h do
|
test :line_h do
|
||||||
YouPlot::Command.new(['line', '--height', '17']).run
|
YouPlot::Command.new(['line', '-h', '17']).run
|
||||||
assert_equal fixture('simple-lineplot-height-17.txt'), @stderr_file.read
|
assert_equal fixture('simple-lineplot-height-17.txt'), @stderr_file.read
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ class YouPlotSimpleTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
test :line_m do
|
test :line_m do
|
||||||
YouPlot::Command.new(['line', '--m', '17']).run
|
YouPlot::Command.new(['line', '-m', '17']).run
|
||||||
assert_equal fixture('simple-lineplot-margin-17.txt'), @stderr_file.read
|
assert_equal fixture('simple-lineplot-margin-17.txt'), @stderr_file.read
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -202,4 +202,79 @@ class YouPlotSimpleTest < Test::Unit::TestCase
|
|||||||
YouPlot::Command.new(['line', '--padding', '17']).run
|
YouPlot::Command.new(['line', '--padding', '17']).run
|
||||||
assert_equal fixture('simple-lineplot-padding-17.txt'), @stderr_file.read
|
assert_equal fixture('simple-lineplot-padding-17.txt'), @stderr_file.read
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test :line_border_corners do
|
||||||
|
YouPlot::Command.new(['line', '--border', 'corners']).run
|
||||||
|
assert_equal fixture('simple-lineplot-border-corners.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_b_corners do
|
||||||
|
YouPlot::Command.new(['line', '-b', 'corners']).run
|
||||||
|
assert_equal fixture('simple-lineplot-border-corners.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_border_barplot do
|
||||||
|
YouPlot::Command.new(['line', '--border', 'barplot']).run
|
||||||
|
assert_equal fixture('simple-lineplot-border-barplot.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_b_barplot do
|
||||||
|
YouPlot::Command.new(['line', '-b', 'barplot']).run
|
||||||
|
assert_equal fixture('simple-lineplot-border-barplot.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_canvas_ascii do
|
||||||
|
YouPlot::Command.new(['line', '--canvas', 'ascii']).run
|
||||||
|
assert_equal fixture('simple-lineplot-canvas-ascii.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_canvas_braille do
|
||||||
|
YouPlot::Command.new(['line', '--canvas', 'braille']).run
|
||||||
|
assert_equal fixture('simple-lineplot.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_canvas_density do
|
||||||
|
YouPlot::Command.new(['line', '--canvas', 'density']).run
|
||||||
|
assert_equal fixture('simple-lineplot-canvas-density.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_canvas_dot do
|
||||||
|
YouPlot::Command.new(['line', '--canvas', 'dot']).run
|
||||||
|
assert_equal fixture('simple-lineplot-canvas-dot.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
# test :line_canvas_block do
|
||||||
|
# YouPlot::Command.new(['line', '--canvas', 'block']).run
|
||||||
|
# assert_equal fixture('simple-lineplot-canvas-dot.txt'), @stderr_file.read
|
||||||
|
# end
|
||||||
|
|
||||||
|
test :hist_symbol_atmark do
|
||||||
|
YouPlot::Command.new(['hist', '--symbol', '@']).run
|
||||||
|
assert_equal fixture('simple-histogram-symbol-@.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_xlim do
|
||||||
|
YouPlot::Command.new(['line', '--xlim', '-1,5']).run
|
||||||
|
assert_equal fixture('simple-lineplot-xlim--1-5.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_ylim do
|
||||||
|
YouPlot::Command.new(['line', '--ylim', '-25,50']).run
|
||||||
|
assert_equal fixture('simple-lineplot-ylim--25-50.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_xlim_and_ylim do
|
||||||
|
YouPlot::Command.new(['line', '--xlim', '-1,5', '--ylim', '-25,50']).run
|
||||||
|
assert_equal fixture('simple-lineplot-xlim--1-5-ylim--25-50.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_grid do
|
||||||
|
YouPlot::Command.new(['line', '--grid']).run
|
||||||
|
assert_equal fixture('simple-lineplot.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
|
|
||||||
|
test :line_no_grid do
|
||||||
|
YouPlot::Command.new(['line', '--no-grid']).run
|
||||||
|
assert_equal fixture('simple-lineplot-no-grid.txt'), @stderr_file.read
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user