bdrum / cern-physics

My analysis workflow
1 stars 1 forks source link

Aliases for most common visualizing scenarios #34

Closed bdrum closed 3 years ago

bdrum commented 3 years ago

I have many common scenarios for data visualizing.

E.g.

How can I simplify usage of such behavior?

First of all I know that in matplotlib I can specify default parameters for some functions. I can use this e.g. for changing default type of histograms to 'step', change defalut colors, applying root style as default.

Then I can prepare functions that can be wrap described common scenarios with additional parameters like arrays of colors and labels, and extend standard arguments of matplotlib via args and kwargs.

bdrum commented 3 years ago

See #47 and seaborn