mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-12-16 03:08:54 +08:00
Add color command
This commit is contained in:
@@ -123,6 +123,18 @@ module Uplot
|
||||
UnicodePlot.boxplot(headers, series, **params.to_hc)
|
||||
end
|
||||
|
||||
def colors
|
||||
UnicodePlot::StyledPrinter::TEXT_COLORS.each do |k,v|
|
||||
print v
|
||||
print k
|
||||
print "\t"
|
||||
print " ●"
|
||||
print "\033[0m"
|
||||
print "\t"
|
||||
end
|
||||
puts
|
||||
end
|
||||
|
||||
def check_series_size(data, fmt)
|
||||
series = data.series
|
||||
if series.size == 1
|
||||
|
||||
Reference in New Issue
Block a user