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:
- Created a year ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for reporting, @sdesrozis! 🙌 We will try to include this into the upcoming patch release.
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