Use the same colors as matplotlib
警告
This is an archived article. It preserves the previous documentation and may not match current environments.
I’ll try replicating Matplotlib’s color scheme in ROOT. You can set the colors using the code below.
All that’s left to do is to read this function and pack it into vector<Int_t>.
When using it, you can register it as needed with SetLineColor or SetMarkerColor.
I’ll leave a sample code below. When executed, the following figure will appear.
