YouPlot icon indicating copy to clipboard operation
YouPlot copied to clipboard

Left-align labels

Open tasuki opened this issue 7 months ago • 1 comments

I'd like to be able to left-align the labels, like this:

Areas of the World's Major Landmasses
                 ┌                                        ┐ 
Australia        ┤■■■■■■■■■■■■■■■■■■■■■■■■■ 2968.0          
Europe           ┤■■■■■■■■■■■■■■■■■■■■■■■■■■ 3745.0         
Antarctica       ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■ 5500.0        
South America    ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 6795.0       
North America    ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 9390.0      
Africa           ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 11506.0    
Asia             ┤■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 16988.0   

I often list directory/file paths, and when they're right-aligned it's all janky and hard to read.

I suppose I could create a PR for this if you like, but:

  1. what should the option be called?
  2. would you merge it?

tasuki avatar May 28 '25 11:05 tasuki

Hi! YouPlot is just a simple wrapper around UnicodePlot. This repository only provides a command-line tool. So, if you want to implement "left-align labels," you should submit a pull request to UnicodePlot, not YouPlot.

If you're curious why this library is implemented in Ruby, please read this: https://github.com/red-data-tools/YouPlot/issues/34#issuecomment-1385419115

Good luck.

kojix2 avatar May 28 '25 12:05 kojix2