Submit a post
We welcome contributions from all community members.
Volunteer to review
Learn how you can help the community grow and become a member of the team.
Improving Matplotlib histogram readability
Matplotlib histograms

Back to the basics: the Matplotlib histogram#

We are all excited about exploring and developing new fancy plotting tools, but I want to take some time to revisit one of the basic plotting functions: Matplotlib’s histogram hist(), which relies on the NumPy histogram() function. Histograms are convenient to quickly inspect a dataset and get a feeling for the distribution of values that they contain.

I am often not satisfied with the default histograms produced by Matplotlib, requiring me to do repetitive manual adjustments. Here I will show how the histograms can be enhanced while avoiding time-consuming manual tweaking. I hope that these suggestions will be useful to others and ultimately that these will be adopted as the default plotting style for histograms in newer versions of Matplotlib.

Read more...
Pytrees for Scientific Python
This blog introduces PyTrees — nested Python data structures (such as lists, dicts, and tuples) with numerical leaf values — designed to simplify working with complex, hierarchically organized data. While such structures are often cumbersome to manipulate, PyTrees make them more manageable by allowing them to be flattened into a list of leaves along with a reusable structure blueprint in a generic way. This enables flexible, generic operations like mapping and reducing from functional programming. By bringing those functional paradigms to structured data, PyTrees let you focus on what transformations to apply, not how to traverse the structure — no matter how deeply nested or complex it is. Read more...
NumPy's Second Developer in Residence: Joren Hammudoglu

The NumPy team is excited to announce the appointment of Joren Hammudoglu (@jorenham) as the second NumPy Developer in Residence. For the second time, the project is in a position to use its project funds to pay for a full year of maintainer time through the NumPy Fellowship Program.

Joren has been the driving force behind the improvements in NumPy’s support for static typing since he started contributing in mid-2024. He has authored a lot of the improvements — from the annotations themselves to CI support and working towards fundamental design improvements like ndarray shape typing — and helps guide and integrate the work of other NumPy contributors in this area, and engages with upstream projects like MyPy and Pyright and the typing standards/PEP process to help move static typing support for the ecosystem as a whole forward. He also contributes widely to static typing support in the ecosystem, as the author of scipy-stubs, numtype and more.

Read more...
Developer Summit 2
Group picture of (most of the) summit attendees. The 2024 Scientific Python Developer summit was held 3–5 June in Seattle. Here’s a summary of what we did. Read more...

Browse all posts  ⟶