mastodon.ie is one of the many independent Mastodon servers you can use to participate in the fediverse.
Irish Mastodon - run from Ireland, we welcome all who respect the community rules and members.

Administered by:

Server stats:

1.6K
active users

#matplotlib

3 posts2 participants0 posts today

If you’re interested in baseball in particular, or in any other sport where some data sources are available for which a variable needs to be followed over time over the central 50% quartile, this post covers both data reading, transformation, and plotting.

#DataManipulation #DataVisualization #CSV #Python #pandas #matplotlib fosstodon.org/@drdrang/1152962

FosstodonDr. Drang (@drdrang@fosstodon.org)☃️ A post I was supposed to write after the 2023 season https://leancrew.com/all-this/2025/09/baseball-durations-after-the-pitch-clock/

#Matplotlib ma sporo testów opartych o "porównywaniu grafik", które często się sypią. Technicznie rzecz biorąc, większość z nich dopuszcza pewien odchył od obrazów referencyjnych, ale całkiem często dostałem większe wartości RMS. Tak więc przez długi czas musieliśmy utrzymywać spore łatki, które zwiększały tolerancję w tych testach, i regularnie wymagały aktualizacji.

W pewnym momencie autorzy zaczęli dodawać do testów warunki, dopuszczające większą tolerancję na platformach innych niż x86_64. Oczywiście, każda taka zmiana zmuszała mnie do aktualizacji naszej łatki. Co ciekawe, wartości, które poprzednio wprowadziłem, były zbliżone do tych, które teraz dodano dla platform innych niż x86_64.

Dziś do mnie w końcu dotarło, że zamiast znów aktualizować łatkę, mogę spróbować ją całkiem wywalić i podmienić sedem wszystkie instancje `platform.machine() == 'x86_64'` na `False` — i jak się okazuje, po tej zmianie poza zakresem zostały 3 testy (związane z TeΧ). I nie muszę już spędzać 15 minut ręcznie robiąc właściwie to samo.

Anybody have ideas why my bar plot is coming out with multiple vertical lines like this? The plot should look like the second one. But I was trying to fix some other errors and produced new problems instead.

Code: plot = = data.resample('YE').count().to_period('Y').plot.bar(legend=False, rot=0, grid=True, figsize=(12,6))

📊 Want to level up your Python data visualization skills?

Join Stefanie Molin at #EuroSciPy2025 for a beginner-friendly tutorial:
"Beyond the Basics: Data Visualization in Python"

✅ Learn Matplotlib
✅ Create beautiful charts
✅ Explore interactivity with HoloViz & Bokeh

Perfect for newcomers—no prior experience required!

📅 Aug 18–22 in Kraków
🎟️ euroscipy.org/tickets
#Python #DataViz #Matplotlib #ScientificPython #EuroSciPy

euroscipy.orgEuroSciPy 2025The EuroSciPy meeting is a cross-disciplinary gathering focused on the use and development of the Python language in scientific research.

I usually do not ask chatgpt, but today after a long search for something on the internet I tried my luck. The result is the most crappy, useless thing I read in a while.

So, does anyone here know if I can embed a SVG/PDF plot as a #matplotlib axis, and how? :)

Finding all regions defined by a set of pseudorandom circles. Here, 8 input circles gave 37 output regions.

Python using pyclipper for 2d predicates & matplotlib for display. The (probably inefficient and maybe wrong) algorithm for ensuring all regions are found by me using trial and error.

pssst don't tell anyone but the circles are actually just 360-gons.

#python

More of a general question about community. I want to draw a pie plot, in a package/rendering engine that is not #matplotlib . But I know that matplotlib does do the math I need.

Theoretically, the "correct" approach would be to isolate that math, make a new package and hook it in so that both matplotlib and my new package can now use the same math, same package. I can reuse the math I need without their rendering assumptions.

But I don't think they would do this. (1/2) ...