r/Python • u/anntzer Matplotlib core dev • Sep 19 '18
[Matplotlib-announce] [REL] Matplotlib 3.0.0
https://mail.python.org/pipermail/matplotlib-announce/2018-September/000027.html16
u/TidB Sep 19 '18
Picture of the new twilight colormap pulled from the official examples.
14
6
u/wintermute93 Sep 19 '18
What do people actually use cyclic colormaps for? This looks much more perceptually uniform than
hsv, but I'm still not sure what the main use cases are.15
u/redditusername58 Sep 19 '18
the colormap page says its good for phase angles, compass direction, and time of day
5
u/wintermute93 Sep 19 '18
Ah, makes sense. I do actually need to plot phase on occasion, so I'll keep that in mind. Should have checked the docs.
1
u/billsil Sep 19 '18
Kinda weird to me to plot phase as a color. I always plot it as an animation or in 2D (e.g., phase vs. frequency), I just plot it as a wrapping solid color line.
1
u/wintermute93 Sep 19 '18
I do a fair amount of acoustic propagation modeling, and it's not uncommon for me to have the phase shift of some signal varying across a 2d surface.
1
u/billsil Sep 19 '18
That makes sense for something like a room.
My frequency processing is more for 3D models. I plot complex mode shapes by sweeping the phase and adding it to the nominal phase angle.
1
u/PeridexisErrant Sep 20 '18
Even better, check out the beautiful and perceptually-uniform
cmoceanscolormaps.I used HSV for direction in my thesis plots, and I wish this had existed back then!
1
u/flutefreak7 Sep 19 '18
Interesting, so it's in the family with coolwarm, and coldhot if I'm remembering their names.
6
u/brews import os; while True: os.fork() Sep 19 '18
Matplotlib has been kicking ass recently. Nice work!
1
u/rad_badders Sep 20 '18
Congratulations, matplotlib is a fantastic tool that every scientist should have in their toolkit
9
u/flutefreak7 Sep 19 '18
Always good to see matplotlib releases!
Aww, I was hoping the layout improvements included something about legends. I remember reading somewhere that someone was working on that problem, but now I can't remember if it was matplotlib or something like seaborn.
Placing a legend outside the axes on the right and gauranteeing that it fits the figure and doesn't overlap the axis is a frustrating process every time. Fiddling with font sizes and
bbox_to_anchorfeels so backwards. This is a big pain point when I'm introducing someone to using Python for engineering plots and a simple task that Excel and Matlab do without complaining is needlessly frustrating with matplotlib.