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.

JointGrid annotation raises DeprecationWarning but docs don't mention any deprecation

See original GitHub issue

Annotating a JointGrid (e.g.😃

fg = sns.jointplot(x=x, y=y, data=df)
fg = fg.annotate(rsquare, template="{stat}: {val:.2f}", stat="$R^2$", loc="upper left", fontsize=12)

raises the following warning:

...\python37\lib\site-packages\seaborn\axisgrid.py:1847: UserWarning: JointGrid annotation is deprecated and will be removed in a future release.
  warnings.warn(UserWarning(msg))

However, the docs for JointGrid don’t mention any deprecation, nor an alternative. Perhaps the alternative should be stated in the warning, too?

Additionally, if it is deprecated, when will it be removed?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
guidopetricommented, Nov 21, 2019

@mwaskom I don’t mean to be annoying, but will something be done about this? Also, what is the alternative to annotate (if there is any)?

I guess what I’m trying to say is - I don’t see why this issue was closed since the cause for opening this issue hasn’t been fixed.

1reaction
mwaskomcommented, Nov 20, 2019

Can’t get everything right.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - How to warn about class (name) deprecation
Here is the list of requirements a solution should satisfy: Instantiation of a deprecated class should raise a warning ...
Read more >
seaborn.JointGrid — seaborn 0.12.1 documentation - PyData |
Grid for drawing a bivariate plot with marginal univariate plots. Many plots can be drawn by using the figure-level interface jointplot() . Use...
Read more >
FRETBursts Documentation
For documentation purposes, this is the list of dependencies to run FRETBursts: • Python 3.5+ or 2.7 (deprecated). • Numpy 1.6+.
Read more >
Who should see Python deprecation warnings? - LWN.net
There were a few ideas raised, such as emitting warnings for all code located under the directory containing the initial script, but the...
Read more >
try raise python program Code Example - Code Grepper
try: # Your code here except: raise Exception("ERROR: Some specific Error Message") ... get list of items only on 1list but not in...
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