Skip to content

Left-align labels #57

Open
Open

Description

@tasuki

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?

Activity

  1. kojix2 commented on May 28, 2025

    @kojix2
    Member

    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:
    #34 (comment)

    Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions