pydata / pydata/xarray

ENH: Plotting backend options

Open
#3,553 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement topic-plotting
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

Since pandas has implemented entry_points based plotting backends, it seems reasonable that xarray would do the same. This would make it even easier to produce holoviews plots (rendered in bokeh via hvplot), by using the plot method rather than by importing hvplot directly.

Example
import xarray as xr
air = xr.tutorial.open_dataset('air_temperature').load().air
xr.options.plotting.backend = 'holoviews'

air.isel(time=500).plot()
Screen Shot 2019-11-20 at 12 44 26 PM

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading xarray's plotting API and pandas' entry-point based plotting backend implementation. Determine how a configurable plotting backend should dispatch the existing plot method to the proposed holoviews backend, then verify the example produces the requested plot through the plot method.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
backend-api-design, data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.