hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

Retaining defaults from xarray

Open tomchor opened this issue 6 years ago • 3 comments

Hello, all, I'm beginning to use this package and I think it works extremely well. However, one small thing I miss but that makes a lot of difference is xarray's default selection when plotting. Baically when xarray detects that a data set has both positive and negative values it chooses a divergent colormap and adjusts the limits of the plot so that the colormap is symmetric around zero. This sounds silly but it makes a huge difference in my day-to-day life.

Here's an example of what I mean. The default setting of matplotlib are much nicer, and it saves me from "polluting" the command with lots of lengthy keyword arguments. Is there a way to plot with hvplot but keeping xarray defaults? If not, please consider this a feature request.

Thanks!

tomchor avatar May 07 '19 05:05 tomchor

This seems like a great idea imo, better choices of defaults is definitely something we should support and if we can match good default choices made by the xarray or pandas plotting interfaces so much the better.

philippjfr avatar May 07 '19 08:05 philippjfr

The asymmetry with the matplotlib choices is also something that irks me very often. What could I do to start working on this?

michaelaye avatar Sep 17 '21 19:09 michaelaye

The asymmetry with the matplotlib choices is also something that irks me very often. What could I do to start working on this?

Compiling a list of the differences is probably the most useful way to get started.

philippjfr avatar Sep 17 '21 23:09 philippjfr