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.

matplotlib scatter tracking error

See original GitHub issue

🐛 Bug

Thanks for this amazing tool 😃

Using matplotlib figure based on plt.plot seems to work correctly. However, it fails using plt.scatter.

To reproduce

fig = plt.figure()
plt.scatter(np.random.rand(50), np.random.rand(50), c=np.random.randint(0, 10, 50))
plt.close(fig)

tracker = Run(
     repo="/tmp",
     experiment="scatter",
     system_tracking_interval=DEFAULT_SYSTEM_TRACKING_INT,
     log_system_params=True,
 )

tracker.track(AimFigure(fig), name="scatter")

Error

AttributeError: 'PathCollection' object has no attribute 'get_offset_position'. Did you mean: '_offset_position'?

Expected behavior

No error

Environment

  • Aim Version (e.g., 3.0.1) 3.9.4
  • Python version 3.10.4
  • pip version
  • OS (e.g., Linux) WSL2
  • Any other relevant information

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gorarakelyancommented, May 21, 2022

Thanks for reporting, @sdesrozis! 🙌 We will try to include this into the upcoming patch release.

0reactions
tmynncommented, Dec 23, 2022

Sorry for late reply. There was a change in matplotlib API for version 3.6. I have added a fix for this. Please check out the main branch. It should be working fine now 🙌 https://github.com/aimhubio/aim/pull/2443

Read more comments on GitHub >

github_iconTop Results From Across the Web

matplotlib scatter issue with python 3.x - Stack Overflow
My script that's compatible with Python 2.x is no longer working properly. I've fixed most of it but have no clue how to...
Read more >
Use error bars in a Matplotlib scatter plot - GeeksforGeeks
In this article, we will create a scatter plot with error bars using Matplotlib. Error bar charts are a great way to represent...
Read more >
Plotting three points using scatter results in wrong color - 1.4.3
I'm running this on Windows 10 / Anaconda Python 3.4.3 / jupyter iPython 4 Here's some repro code: import matplotlib.pyplot as plt import ......
Read more >
Python Figure Reference: scatter Traces - Plotly
A plotly.graph_objects.Scatter trace is a graph object in the figure's data list with any of the named arguments or attributes listed below.
Read more >
Visualizing Data in Python Using plt.scatter()
You'll get an introduction to plt.scatter(), a versatile function in the Matplotlib ... so he keeps track of how many of each drink...
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