Code Monkey home page Code Monkey logo

Comments (4)

ikrommyd avatar ikrommyd commented on July 29, 2024 1

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.

andrzejnovak avatar andrzejnovak commented on July 29, 2024

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.

ikrommyd avatar ikrommyd commented on July 29, 2024

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.

andrzejnovak avatar andrzejnovak commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.