Comments (4)
Yeah you can use this 92fb (13; 13,6 TeV) 2018-2022
if it is somewhat a continuous data taking period. I think the format I typed is the standard according to guidelines (at least in CMS) when we refer to different discreet years. I just got this idea because I'm currently preparing the DPS note presentation for E/Gamma and I wanted to use this format. I'm very busy these days but I will read more to see if there is some generic guideline (also for other experiments) and create a simple PR to do this. You can close this issue if you want in the meantime if you don't want issue cluttering.
from mplhep.
This already exists in the form of rlabel=
which forces whatever text you want on the right side. The label you posted is imo too specific to generate it programmatically from some lists.
from mplhep.
Ah so you're saying the solution is to type out the right lumi, com, year combination in plain text using rlabel
. I was thinking of something like an input to cms.label
where you'd say lumi=(58.7, 34.3), com=(13, 13.6), year=(2018, 2022)
and it would just generate this. I thought I'd open an issue for discussion just because I see this type of label frequently (it was also in the higgs discovery plots).
from mplhep.
I don't personally think this is particularly simpler for the user in the sense that what if they prefer to write eg 92fb (13; 13,6 TeV) 2018-2022
instead. Feel free to correct me if we have a definite guidance on how this should be structured (at least in CMS). That said, since your proposal doesn't really change the API and the logic should be pretty straightforward for future maintenance, I am ok to merge it if you want to submit a PR.
Side note since this label would likely be too long to have the CMS label also on top, ideally this could come with new functionality that checks for overlap and emits a warning for the user to use the in-frame CMS label position.
from mplhep.
Related Issues (20)
- Use gh-action-pypi-publish v1.7.0+ APIs
- Matplotlib warnings
- Histplot errorbars HOT 3
- [Bug] histplot raises IndexError when plotting an histogram with one bin HOT 2
- Update return type of exp label/text
- CoM in Experiment label
- TypeError when plotting 2d histograms with flow="show" HOT 2
- In stack histograms, use a line color that is sligthly darker than the fill color
- compatibility issues with matplotlib 3.8.0 HOT 6
- FEAT!: make `cbarextend=True` the default for `hist2dplot` HOT 1
- FIX: Investigate replacing Tex Gyre Heros Type 3 fonts with Type 1 HOT 1
- feat: support for publication information in exp_text method HOT 3
- Switch to ruff for linting
- DOCS: Failing with RTD, update or switch to a newer option
- Label formatting issue
- fix: set cbarextend=True by default only for 1 axis
- Incorrect matplotlib dependency HOT 1
- Incorrect flow bin labeling HOT 2
- Label for CMS other non-public work 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 mplhep.