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.

scatter_plot produces double plots

See original GitHub issue

following #3473:

import pandas as pd
import numpy as np
from pandas.tools.plotting import scatter_plot 

df = pd.DataFrame( np.random.randn(100,4))
scatter_plot(df,x=1,y=2)

**Plot**

**Same Plot Again**

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:18 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
jseaboldcommented, May 3, 2013

FYI, you just need to catch the fig to keep it from displaying (or turning off inline plotting should also work)

fig = plot_func()
1reaction
cpcloudcommented, Apr 28, 2013

I see it now. Returning fig is the problem. Returning just the axes would probably be the most consistent with the pandas API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete Guide to Scatter Plots - Chartio
Scatter plots are an essential type of data visualization that shows relationships between variables. Use this tutorial to learn how to use this...
Read more >
Scatterplots and correlation review (article) - Khan Academy
A scatterplot is a type of data display that shows the relationship between two numerical variables. Each member of the dataset gets plotted...
Read more >
Scatterplots and Correlation
A scatterplot shows the relationship between two quantitative variables measured for the same individuals. The values of one variable appear on the horizontal ......
Read more >
Python Scatter Plot - How to visualize relationship between ...
Scatter plot is a graph of two sets of data along the two axes. It is used to visualize the relationship between the...
Read more >
Plot Two Sets of Data on an X Y Scatter Chart - YouTube
Scatter charts may not always be easy to decipher, but once you and your audience get used to this type of chart, it...
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