U bekijkt momenteel de Netherlands versie van de site.
Wilt u overschakelen naar uw lokale site?
13 MIN LEESTIJD
HEALTH MONITORING

Create custom health tracking graphs

Everyone loves making custom graphs from their weird health glitches – Michael Reed explains how he does it!

Part two!

Missed an issue? Back issues page 62!

Part two!

Missed an issue? Back issues page 62!

OUR EXPERT Michael Reed has a neurological condition that means he does it all night long about 50% of the time -programming, that is.

QUICK TIPS

Visual Studio Code displays a pop-up offering to install Python language extensions. We recommend allowing this because they are extremely helpful.

QUICK TIPS

Visual Studio Codedisplays a pop-up offering to install Python language extensions. We recommend allowing this because they are extremely helpful.

Last issue, we examined some applications that can help you record information about your workouts, sleep schedule and activity levels on your computer. This time, we’re going to look at processing and visualising that data, mainly using the Python programming language.

Many apps that record data can also plot the data, giving you an overview, but sometimes, you have niche requirements. This is where Python comes in, as it gives you a great deal of manual control over how you handle the data and how you plot it. Most logging software can export its data into a format such as CSV (commaseparated values), JSON (JavaScript Object Notation) or XML, and Python has modules that import these.

You’d be amazed how easy it is to use Python to plot data as a graph, once you’ve set it up and installed the requisite modules. Often, visualisation allows you to see patterns and trends that aren’t otherwise obvious. Matplotlib is the library that handles the plotting, and nearly every aspect of your plots can be customised. Once you know the basics, you might even find it easier than using a spreadsheet to plot data.

Python environment

Some distributions have the Python programming language installed by default, and if not, it’s possible that it will have been installed as a dependency of another package. The simplest way of determining if it is installed is to type python -V into a terminal.

It’s easy to install on most distributions by using the package manager. Python 3 was released in 2008, but because there were significant changes to how the language worked, Python 2 hung around for quite a long time. As a result, you typically have to specifically install the Python 3 package using a command such as sudo apt install python3 (Ubuntu).

In this case, we’re going to install the Python modules that we need, globally, to the entire system. Use your package manager to install these packages: python3-matplotlib, python3-numpy, python3scipy, python3-matplotlib and python3-dateutil.

We’ll assume that you’re using Visual Studio Code as your editor. You can add this in a number of ways, but the most problem-free approach is to download the DEB or RPM file from the official website (https:// code.visualstudio.com)and install it manually.

Plotting a simple example with made-up data. Matplotlib works out optimal x and y axis labels.
Ontgrendel dit artikel en nog veel meer met
Je kunt genieten:
Geniet volledig van deze editie
Direct toegang tot 600+ titels
Duizenden oude edities
Geen contract of verplichting
ABONNEER NU
30 dagen proberen, dan gewoon €11,99 / maand. Op elk moment opzeggen. Alleen nieuwe abonnees.


Meer informatie
Pocketmags Plus
Pocketmags Plus

Dit artikel komt uit...


View Issues
Linux Format
June 2025
IN DE WINKEL BEKIJKEN

Andere artikelen in dit nummer


LINUX FORMAT
LINUX FORMAT
The #1 open source mag Future Publishing Limited,
WELCOME
MEET THE TEAM
We’re trying out the new features of Ubuntu 25.04. If you could have any feature implemented on Ubuntu, what would your dream be?
Spring ahead
It’s that time of year when the flowers
REGULARS AT A GLANCE
AI operations are hurting open source projects
AI crawlers are overwhelming open source platforms, escalating costs, and forcing drastic measures like country-wide blocks.
Blender wins the Oscars
Blender 4.4 debuts, with a focus on stability, better codec support and Oscar-winning acclaim.
PWA support for Firefox?
Taskbar Tabs arrive as an experimental feature.
UNIQUELY LINGUISTIC
Italo Vignoli is one of the founders of
EMBEDDED IN NICE
Mark Filion is senior marketing manager at Collabora.
Linus hates “turd” code
Linus Torvalds slams messy “turd” files and demands cleaner Linux builds.
The Nope Deck
HP dismisses handheld plans after an interview with its gaming SVP.
Open source funding fight
The OTF is suing the USAGM for jeopardising open source projects.
Distro watch
What’s behind the free software sofa?
VALKEY TURNS ONE
Lori Lorusso is head of community at Percona.
MAN VS MACHINE
Jon Masters is a kernel hacker who’s been
Kernel Watch
Jon Masters summarises the latest happenings in the Linux kernel, so that you don’t have to.
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to answers@linuxformat.com
Mailserver
WRITE TO US Do you have a
Thunderbird
Version: 136 Web: www.thunderbird.net Thunderbird is Mozilla’s
Clapper Media Player
Besides offline media, Clapper can also stream online
Bottles
Version: 51.20 Web: https://usebottles.com B ottles offers
Exercise Timer
Version: 1.8.1 Web: https://github.com/mfep/exercise-timer E xercise Timer
KPhotoAlbum
Version: 6.0.1 Web: www.kphotoalbum.org B illed as
ProtonVPN
Version: 4.9.4 Web: https://protonvpn.com P rotonVPN is
Fastfetch
Version: 2.38.0 Web: https://github.com/fastfetch-cli/fastfetch F astfetch is
Blinken
Version: 24.12.3 Web: https://apps.kde.org/blinken/ B linken is
KsirK
Version: 24.12.3 Web: A nother digital version of
Refine
Version: 0.5.2 Web: https://tesk.page/refine/ R efine is
Qpdf Tools
Version: 3.1.2 Web: https://github.com/silash35/qpdftools Qpdf Tools
25 YEAR ANNIVERSARY!
It feels a lot longer than that… Send us on our merry way with a celebration of all things open source.
REVIEWS
Ryzen 9 9950X3D
Paul Alcorn loves the new 16-core monster from AMD!
Debian 12.10
Nate Drake explores the latest stable point release for Bookworm. Does the OS still live up to its reputation for stability?
Garuda Linux 250308
Nate Drake dives into this Arch-based distro, named after a divine bird. Is it a soaring eagle or just a lame duck?
Ubuntu 25.04
Huffing and puffing, Nate Drake takes a look at the interim 25.04 release and wonders how things could get much better.
Two Point Museum
Management is thrilled to hear it can get money for old content it has lying around. Mollie Taylor thinks that is too late even for LXF.
ROUNDUP
Secure browsers
Always the cautious type, Michael Reed goes on the hunt for a browser that offers enhanced security without compromising on fun and features.
Installation and setup
The first stage is obtaining a copy of the software and installing it.
Settings and customisation
The first port of call: making sure the software works how you want.
User interface
Nice environments are productive.
Extensions
Add features and make things work the way you want them to.
Security and privacy
Keeping yourself anonymous and safe online.
Tracking and fingerprinting
Make sure only entities you approve of can see what you’re doing.
As a daily driver
How well does it work as a normal browser for day-to-day use?
The verdict Secure browsers
W e’ve made Brave our top pick as
UBUNTU BLASTS OFF
UBUNTU BLASTS OFF
The new 25.04 version of Ubuntu is here, and it’s geared towards dual-boot setups. Nick Peers explains how to run it alongside Windows.
Get the install media
Find out more about Ubuntu, plus discover how to create your bootable Ubuntu install disk to help blast you off!
Super quick-start guide
You don’t even need to install Ubuntu to try its delights!
Preparing Windows PCs
Before diving in and installing Ubuntu alongside Windows, take the time to make sure your PC is ready to accommodate a dual-boot system.
Dual boot with Windows
Your system is backed up, prepped and ready to go. Let’s get Ubuntu installed alongside Windows.
Take the desktop tour
Familiarise yourself with Ubuntu 25.04 and discover how to regain control over the boot menu.
Pi USER
Custom OS build system debuts
One size does not fit all, especially for embedded systems in industrial situations.
Twister OS 3.0.2
Les Pounder hasn’t seen Twister, or the sequel, Twisters, but he has played Half-Life, live on air using a Raspberry Pi and Twister OS.
Modulo 5 Basic
Is it a Pi? Is it a Pine? No, it’s Les Pounder waving the latest Pineboards expansion around. Stop it Les, put it down!
Frost-free fruit with a Pi Pico
Les Pounder grows strawberries in his garden, but now he has planted a Raspberry Pi Pico, hoping for a fresh crop of raspberries.
IN DEPTH
Inside the DNA of AMD
A new generation of AMD GPUs is here. Amateur genealogist Jarred Walton picks apart the family heritage of RDNA 4.
TUTORIALS
Eddy encryption tool
Keeping files safe from prying eyes doesn’t need to be a Herculean trial. Shashank Sharma knows of a utility that makes it a breeze.
Write and publish your own music scores
Nick Peers shows you how to use the latest version of MuseScore to transform your musical ideas into full-blown compositions.
Generate ODF slides and spreadsheets
Marco Fioretti explains how to create the same office files you can make with LibreOffice – but without LibreOffice.
The hardware that made Linux great
After the 8-bit computing boom of the ’80s, enthusiasts moved to more capable 16-bit systems, able to run Linux. Mike Bedford investigates.
Upgrade it: Get more from your mouse
Look after your digits and treat them with a hand-picked mouse selected by Saeed Wazir and Neil Mohr.
Logitech MX Master 3S
Best wireless mouse for most.
Logitech Lift
Best wireless ergonomic mouse
Lenovo Go Wireless Vertical Mouse
Best budget vertical mouse.
Razer Pro Click Mini
Best premium productivity mouse.
Microsoft Modern Mobile Mouse
The best small mouse.
Microsoft Arc Mouse
Best travel-sized ergonomic mouse.
Logitech Ergo M575 Mouse
The best trackball mouse option around.
SteelSeries Rival 3
The best budget gaming mouse.
HACKING ACADEMY
NOT-SO-FREE PUBLIC WI-FI
Nate Drake is a technology journalist specialising in
Ubuntu suffers namespace breach
Unprivileged escalation with user namespaces now patched.
Kernel update enhances IPv6 and key security
The key security and networking improvements are vital for sysadmins.
GL.iNet Beryl AX (GL-MT3000) Wi-Fi 6 Travel Router
Our resident nomad Nate Drake hooks up one of GL.iNet’s tinier offerings to stay connected in uncharted territory.
Evil twins & honeypots
Nate Drake demonstrates how easy it is to set up rogue wireless networks to trick users into connecting. Penetration testers beware!
CODING ACADEMY
Create a web-based reward system
Matt Holder wonders how difficult it would be to replace a card-andstamp-based reward system with something a little more modern.
Create a Simple DirectMedia Layer app
David Bolton shows how to set up SDL2 with Rust and demonstrates it with a fun 400-line program to pick a person at random.
ADVERTISEMENT
BRAIN TUMOUR CHARITY
thebraintumourcharity.org
LINUX FORMAT
magazinesdirect.com
LINUX FORMAT
www.magazinesesdirect.com/official25
GAMES RADAR
www.gamesradar.com
Techradar
www.techradar.com
MAGAZINES DIRECT
www.magazinesdirect.com
MAGAZINES DIRECT
magazinesdirect.com
LINUX FORMAT
magazinesdirect.com
CODE CLUB
www.codeclub.org.uk
ELECTRONIC FRONTIER SOUNDATIN
EFF.org
GO COMPAIR
Chat
X
Pocketmags ondersteuning