Planned work for 0.35.0

Ouverte
#200 4 commentaires 2 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
20/100
Type d'issue
Refactorisation
Clarté
À clarifier
Activité
À l'abandon
Stack technique
rust

Piste de recherche

Il s’agit d’un brouillon de release couvrant items/, Legend, les limites des graphiques, les exemples, les cartes de couleurs et une refactorisation de l’API publique, avec des travaux connexes dans les issues #188, #205, #210, #211, #212, #218 et #220. Commencez par examiner ces issues liées et l’organisation existante de items/ ; pour considérer le travail terminé, il faudrait avoir défini le périmètre, implémenté les changements dans les zones concernées et effectué une release coordonnée de 0.35.0 ou une refactorisation de l’API.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

planning

I use this issue as a TODO scratchpad of things I want to focus on the most in near future (weeks), until next release 0.35.0. Most of it has a "sequential" nature to it, so if you'd like to contribute, definitely get in touch!

  • Refactor internals. E.g. there are lots of code in items/ which are not PlotItems. Reorganize it in a sensible way. Then there is also code like Legend, which should get a new special overlays/ treatment. I will try to not change public API (yet). #210 #211 #212
    • In the library, there are two distinct things that should be cleanly separated: 1. PlotItem which are rendered on the plot "canvas" and 2. fixed-position UI overlays (such as legend). We are missing an OverlayItem trait.
  • Work on plot bounds, I don't really understand the logic well, it's confusing, and I'd like to also add new features, such as maximum dragging bounds. #218 #220
  • Plot bounds should allow closing bunch of opened issues and implement new interesting examples. In particular, I'd like to add a sin(x) demo with recalculated sampled points (markers), which are also stable while dragging. There is a sin(x) in the lines demo, but it's more "bolted on" PlotPoints and there is not much flexibility. For example, what if you wanted to sample points in non-linear way? Not possible now.
  • A more complex example that should be next possible is to make a Mandelbrot Viewer !
  • Add a colormap. There should be "anchor" colors specified by user, which will have gradient-like interpolation on unit interval. Then there should be mapping functions to/from this unit interval, that help to get current color. You should be able to specify colormap on a Figure. #188
  • I would like to close all open PRs.

Finally, either a) release a new version, or b) do the public API refactor, and release new version.

Public API refactor:

Lots of things are called in a weird way. Lots of things are called PlotXYZ where XYZ is some generic name, and is inconsistent with other plotting librarires like matplotlib / ggplot. I would like to make steps towards unification of that. This will break everyone's code, so ideally I want to do it all at once, to make a more future-proof stable API.

Things that should be possible after refactor:

  • Additional disabling / removal of plot items/overlays. This would be nice for the demo and interactive buttons. Now the buttons are swamped with the legend overlay, and I do not want to plumb in some "is a preview" special logic, as it would make the demo example codes a lot more complicated. #205
Langage dominant
Rust
Étoiles
494
Forks
110
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de emilk/egui_plot

Toutes les issues de emilk/egui_plot

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.