Code Monkey home page Code Monkey logo

Comments (3)

andrzejnovak avatar andrzejnovak commented on July 29, 2024

I think you can add another number. Replacing these with keywords would be fine for me as well, though I'd prefer it to not get too verbose.

from mplhep.

jonas-eschle avatar jonas-eschle commented on July 29, 2024

When you say "adding another number", do you mean to hardcode it inside the plotting function? That means there is no way for a user to choose an arbitrary location? I .e. could loc allow for, say, a tuple of x, y coords? Or something else, more mpl standardized maybe?

from mplhep.

andrzejnovak avatar andrzejnovak commented on July 29, 2024

Oh, I see. I think I misunderstood. I'd be ok with making loc also take an (x,y) tuples. The initial idea here was to offer a set of predefined locations that are commonly used and hard-code them to prevent the situation where eg every "CMS Simulation" label had a slightly different size ratio, a slightly different gap between words, or different spacing from the label to the x and y-axis. I assumed that's close to 100% of use cases, but if not I have no problem with that being extended.

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.