question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add FacetGrid-level tick_params method

See original GitHub issue

Add a method like this on the Grid object, internally loop over Axes and call it on each one.

Probably also makes sense on PairGrid too, although handling the marginal axes might add a small amount of complexity.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mwaskomcommented, Aug 1, 2022

Hi @stefmolin, that would be great

0reactions
stefmolincommented, Aug 7, 2022

Gotcha. Looping over the axes doesn’t affect an axis that has been hidden:

import seaborn as sns

penguins = sns.load_dataset('penguins')

g = sns.PairGrid(penguins, diag_sharey=False, corner=True)
g.map_lower(sns.scatterplot)
g.map_diag(sns.kdeplot)
g.tick_params(direction='in', length=6, width=2, color='blue')
Screen Shot 2022-08-06 at 8 47 55 PM
Read more comments on GitHub >

github_iconTop Results From Across the Web

seaborn.FacetGrid — seaborn 0.12.1 documentation - PyData |
This class maps a dataset onto multiple axes arrayed in a grid of rows and columns that correspond to levels of variables in...
Read more >
Rotate label text in seaborn factorplot - Stack Overflow
You can rotate tick labels with the tick_params method on matplotlib Axes objects. To provide a specific example: ax.tick_params(axis='x', rotation=90).
Read more >
Python - seaborn.FacetGrid() method - GeeksforGeeks
It provides a high-level interface for drawing attractive and informative statistical graphics. Seaborn helps resolve the two major problems ...
Read more >
seaborn/axisgrid.py at master - GitHub
# don't add proxy artists onto the Axes. We need an overall cleaner approach. self._extract_legend_handles = False.
Read more >
seaborn.FacetGrid — seaborn 0.9.0 documentation
Other keyword arguments to insert into the plotting call to let other plot attributes vary across levels of the hue variable (e.g. the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found