Language Selection

English French German Italian Portuguese Spanish

Programming With Python: PyQt5, “Effective Python” and Wing Python IDE

Filed under
Development
  • PyQt5 plotting with matplotlib, embed plots in your GUI applications

    In the previous part we covered plotting in PyQt5 using PyQtGraph. That library uses the Qt vector-based QGraphicsScene to draw plots and provides a great interface for interactive and high performance plotting.

    However, there is another plotting library for Python which is used far more widely, and which offers a richer assortment of plots — Matplotlib. If you're migrating an existing data analysis tool to a PyQt GUI, or if you simply want to have access to the array of plot abilities that Matplotlib offers, then you'll want to know how to include Matplotlib plots within your application.

    In this tutorial we'll cover how to embed Matplotlib plots in your PyQt applications

    Many other Python libraries — such as seaborn and pandas— make use of the Matplotlib backend for plotting. These plots can be embedded in PyQt5 in the same way shown here, and the reference to the axes passed when plotting. There is a pandas example at the end of this tutorial.

  • “Effective Python” by Brett Slatkin book review

    Let’s start with the target audience for this book. I’d recommend it to the people who are using Python at least several months and are feeling good with the basics. If you need more practical advice you are definitely welcome.

  • Wing Tips: Using Black and YAPF Code Reformatting in Wing Python IDE

    ing version 7.2 has been released, so in the next couple Wing Tips we'll take a look at some of its new features.

    Wing 7.2 expands the options for automatic code reformatting to include also Black and YAPF, in addition to the previously supported autopep8. Using one of these allows you to develop nicely formatted uniform-looking code without spending time manually adjusting the layout of code.

More in Tux Machines

today's howtos

Bosch Rexroth adopts Ubuntu Core and snaps for app-based ctrlX Automation platform

ctrlX Automation leverages Ubuntu Core, designed for embedded devices, and snaps, the universal Linux application containers, to deliver an open source platform to remove the barriers between machine control, operation technology and information technology, or OT-IT. Industrial manufacturing solutions built on ctrlX Automation with Ubuntu Core and snaps will benefit from an open ecosystem, faster time to production and stronger security across devices’ lifecycle. Through the use of an open architecture, industrial machine manufacturers selecting ctrlX Automation are freed from being tied to PLC specialists and proprietary systems with the software being decoupled from the hardware. Read more

Cosmo Communicator 2-in-1 Phone/Mini Laptop can now Dual Boot Debian Linux and Android

The Cosmo Communicator was released as a crowdfunded handheld device mixing smartphone and a small laptop features such as keyboard and display. It was launched in late 2019 and ran Google Android. The original units were shipped and fulfilled the requirements of the crowdfunding campaign, but still were missing something the company had wanted to provide: support for Linux. This is now fixed as Planet Computers, the company that makes Cosmo Communicator, just released a version of Debian Linux, that can be installed on the system, with the tools that the company has provided for free on its website. Read more

List of Linux Syscalls

In this guide you’ll find a full list of Linux syscalls along with their definition, parameters, and commonly used flags. You can combine multiple flags by using a logical AND and passing the result to the argument in question. Read more