plot: extending the Ticker interface
- Lingua principale
- Go
- Stelle
- 3k
- Fork
- 201
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Have you thought about extending the Ticker interface so that the font size and graphic width can be accessed? It seems a bit strange to me to create markers if you don't know the font size and how much space is available.
In my experience, you often want to have as many tick marks as possible as long as you can still read the labels, which means that they must not overlap.
To create such tick marks, however, you need to have access to the font size and the graphic size.
I have implemented this as an [example](https://github.com/hneemann/plot/blob/71d6dc929f42a6f68af153cfb6cb9eb84f08a1c0/axis.go#L16) to meet my requirements. Maybe this or a similar extension should be integrated.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia esaminando l’esempio collegato in axis.go intorno alla riga 16 e l’intera discussione dell’issue. Determina l’API Ticker appropriata per fornire la dimensione del carattere e la larghezza del grafico, quindi conferma che l’interfaccia risultante supporti etichette dei tick non sovrapposte e sia integrata in modo coerente con il plot package.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- go
- Ambito
- data-visualization
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100