4 ms·
My quick and dirty trick is to set an alpha=0.8 to soften the default colors. It always looks better.
by abnry 5y ago
My quick and dirty trick is to set an alpha=0.8 to soften the default colors. It always looks better.
- kh1 5y agoIndeed that does make charts look better. I do this for grid line: ax.set_axisbelow(True) ax.grid(True, alpha=0.3)
- willis936 5y agoI don't mind the default colormap (parula). If I'm using the color for any sort of dimension then I start to care about the colormap choices. Perceptually uniform and colorblind agnostic choices are important for any sort of publication, and arguably a starter for any sort of accessibility considerations.
- xapata 5y agoTake a look at colorcet. https://colorcet.holoviz.org/ https://colorcet.holoviz.org/
- willis936 5y agoThe four uniform colormaps that the page references are the value that I'm referring to. Viridis, plasma, inferno, and magma. I don't want a huge selection of colormaps, just a few good ones. Here is where to get them on the file exchange. This really ought to just be folded into MATLAB proper releases somehow. https://www.mathworks.com/matlabcentral/fileexchange/51986-perceptually-uniform-colormaps https://www.mathworks.com/matlabcentral/fileexchange/51986-p...