Comments (9)
@graipher contributed it. The duplication Is intentional, but I don't think anyone actually copies the mplstyle files so I should get rid of them
from mplhep.
To clarify, I'm not part of LHCb so I'm not qualified to say how it should look, but if you think it could be improved a PR is welcome.
from mplhep.
The mplstyle file is just what I created the Python file from. It is an unofficial style file that was floating around in the LHCb collaboration when I was a member, as you can see by the list of contributors in that file. I do not claim that it is either official nor exactly like the official plotting style used by LHCb when plotting with ROOT. However, I think it is close. It has worked for me and others in my group. Note though, that it has not been updated in a couple of years, apart from some minor modifications I made, so if you are aware of a more official or correct one, please contribute it if possible.
I'm actually not sure which setting the markers come from when using plot
, but you can always use plt.plot(x, y, '-')
to not show them. It might be from the custom axes.prop_cycle
, which I added to the file, so try removing the marker cycler.
The font size is large on purpose, in order to be readable in two-column papers and presentations. The figure size is increased in order to somewhat compensate for it.
from mplhep.
I see, and I am also aware of the floating style-file.
Why is the prop_cycle chosen not to have -
anymore? for dotted plots, assuming they're the default?
Is there any way to make this more "official"?
It's very useful btw, thanks a lot!
from mplhep.
@mayou36 As I said, if you would like it to change please submit a PR or at least a list of desired changes, I can sort it out then.
If these changes would be substantial and could interfere with other peoples preferences, we can easily have two styles.
from mplhep.
Closing this for inactivity
from mplhep.
Coming back to this, how do you see to get a second style added? In the Python file, not in the mplstyle? I'll start a PR then.
from mplhep.
The "txt" stylesheets are deprecated. Just add a new dict like this one https://github.com/scikit-hep/mplhep/blob/master/src/mplhep/styles/lhcb.py#L19. If there's no better name, it can be LHCbv2
EDIT: Actually the mplstyle
files were deprecated and now they are just removed. Thanks to recent PR from @matthewfeickert you can even get a similar API -> hep.set_style("LHCb")
from mplhep.
@mayou36 Thanks a lot for the PR, the changes should be out in 0.2.8
from mplhep.
Related Issues (20)
- Suppress `yerr` drawing globally HOT 3
- mplhep styles with contourf log scale causes hang HOT 8
- Chaning colors of bars created by histplot makes bar position change HOT 2
- Add HEAD of dependencies GHA workflow HOT 1
- Upload of pytest_results artifact 'fails with no files were found' HOT 3
- `density=True` does not account for bin edges
- bug: mplhep logo placement is slow.. HOT 1
- histplot() with histtype="errorbar" crashes when data contains inf or nan HOT 3
- ENH: Add a `density` option for hist2dplot?
- mplhep LHCb2 style conflicts with subplots_adjust(hspace=0) HOT 1
- ENH: Gallery HOT 2
- CI failing HOT 1
- Add CITATION.cff
- Custom text location HOT 3
- 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
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.