holoviz / hvplot

A high-level plotting API for pandas, dask, xarray, and networkx built on HoloViews
https://hvplot.holoviz.org
BSD 3-Clause "New" or "Revised" License
1.14k stars 108 forks source link

Retaining defaults from xarray #205

Open tomchor opened 5 years ago

tomchor commented 5 years ago

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!

philippjfr commented 5 years ago

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.

michaelaye commented 3 years ago

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

philippjfr commented 3 years ago

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.