pydata / pydata/xarray

Specify different templates for row and col titles in FacetGrid.set_titles()

Open
#8,049 1 comment 0 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

Is your feature request related to a problem?

Using 4-Dimensional Plotting as explained in the user guide one can use set_titles() (docs) using a template. This is applied to both column and row titles.

Describe the solution you'd like

In my example at hand I have different pyhsical quanities for row and cols and would like to add units into the titles. A syntax similar to seaborns set_titles would enable setting different templates for row and columns labels.

Describe alternatives you've considered

Alternative solution by now is to iterate through the axis manually and set the titles.

Additional context

No response

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 with the xarray.plot.FacetGrid.set_titles() entry point and the linked dimensional plotting guide, then compare the requested behavior with seaborn's set_titles() API. Decide how separate row and column templates should be represented and verify that row and column titles can be checked independently when the work is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.