Comments (7)
Hello.
I see that you are proposing to add a log scale. Could you tell me what commands and command line options you are imagining?
from youplot.
Something per axis, e.g.
--ysetlogscale
defaulting to log of 10, or pass a number for different log...
I suppose one could process the data before feeding them to the plotter, but it would be a good convenience if plotter took care of that...
from youplot.
You can use log scale for bar
and count
.
curl -sL https://git.io/ISLANDScsv \
| sort -nk2 -t, \
| tail -n15 \
| uplot bar -d, -t "Areas of the World's Major Landmasses" --xscale log
Areas of the World's Major Landmasses
┌ ┐
Britain ┤■■■■■■■■■■■■■■ 84.0
Honshu ┤■■■■■■■■■■■■■■ 89.0
Sumatra ┤■■■■■■■■■■■■■■■■■ 183.0
Baffin ┤■■■■■■■■■■■■■■■■■ 184.0
Madagascar ┤■■■■■■■■■■■■■■■■■ 227.0
Borneo ┤■■■■■■■■■■■■■■■■■■ 280.0
New Guinea ┤■■■■■■■■■■■■■■■■■■ 306.0
Greenland ┤■■■■■■■■■■■■■■■■■■■■■ 840.0
Australia ┤■■■■■■■■■■■■■■■■■■■■■■■■■ 2968.0
Europe ┤■■■■■■■■■■■■■■■■■■■■■■■■■■ 3745.0
Antarctica ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■ 5500.0
South America ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 6795.0
North America ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 9390.0
Africa ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 11506.0
Asia ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 16988.0
Lines 312 to 322 in a2d04da
On the other hand, line
, scatter
, density
, etc. cannot use log scale.
YouPlot is mostly a wrapper for the backend library UnicodePlot. So, it depends on unicode_plot
whether log scaling is currently supported.
from youplot.
Reading the README.md of the original Julia implementation of UnicodePlot, it appears that log scale is now supported.
And I hope Ruby's UnicodePlot will support it as well.
from youplot.
Sounds great, I'll use bar or count.
Shall we close this or keep it open as a reminder for the work for line, scatter, etc. ?
from youplot.
Please leave this issue Open.
from youplot.
It would be very useful for hist
as well, ex the graph this presents is not super useful:
$ cat /usr/share/dict/words | grep -o ...$ | sort | uniq -c | uplot hist -n 20
┌ ┐
[ 0.0, 500.0) ┤▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 4068
[ 500.0, 1000.0) ┤ 45
[ 1000.0, 1500.0) ┤ 16
[ 1500.0, 2000.0) ┤ 4
[ 2000.0, 2500.0) ┤ 5
[ 2500.0, 3000.0) ┤ 5
[ 3000.0, 3500.0) ┤ 4
[ 3500.0, 4000.0) ┤ 1
[ 4000.0, 4500.0) ┤ 1
[ 4500.0, 5000.0) ┤ 1
[ 5000.0, 5500.0) ┤ 0
[ 5500.0, 6000.0) ┤ 1
[ 6000.0, 6500.0) ┤ 1
[ 6500.0, 7000.0) ┤ 1
[ 7000.0, 7500.0) ┤ 0
[ 7500.0, 8000.0) ┤ 0
[ 8000.0, 8500.0) ┤ 0
[ 8500.0, 9000.0) ┤ 0
[ 9000.0, 9500.0) ┤ 1
└ ┘
(interpretation: most words don't end in a common ending, but a few endings are very very common)
from youplot.
Related Issues (20)
- Introduce 'l' as a short form of line HOT 1
- Strange behavior with --xlim option HOT 1
- scatter plot : When only one column of data is given.
- Meaning of -H option. With header? Or without header?
- Working with categorical data
- Line color cannot be specified as a numerical value of 256 colors
- Make YouPlot an official Debian package HOT 1
- What font was used in the screenshots? HOT 2
- uplot: command not found HOT 6
- provide install via Homebrew HOT 2
- Provide binary for linux HOT 4
- Provide install via nix
- Not able to install it HOT 1
- Count does not support height parameter HOT 1
- Even if the configuration file is present, you may get a message that it is not detected.
- test data? HOT 2
- Format the bar labels as integer (or omit entirely) HOT 1
- How I install youplot on Windows 10? HOT 2
- Why are my line charts ugly? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youplot.