Skip to content

Instantly share code, notes, and snippets.

View jabarragann's full-sized avatar

Juan Antonio Barragan Noguera jabarragann

  • Johns Hopkins University
View GitHub Profile
@jabarragann
jabarragann / !README.md
Created November 8, 2023 01:17
Obtaining subplot_params of matplotlib figure

Obtaining subplot_params of matplotlib figure

This script shows how to print the subplot_params of a matplotlib figure. The usecase for this script is to be able to visualize any parameter that was manually change, such that the next time you open your plot it will look the same.

  1. Create plot
  2. Modify size and subplot parameters.
  3. create the plot again with the printed parameters.
@jabarragann
jabarragann / !README.md
Last active October 28, 2023 20:52
ROS1 Stereo video saver

Simple python ros noetic stereo image saver

Synchronous saving of left and right images from a stereo camera with ROS1.

Tested:

  • Ubuntu 20.04
  • Ros noetic
@jabarragann
jabarragann / !README.md
Last active October 1, 2023 16:23
QT minimal example with both make and cmake

QT minimal example

Minimal QT example tested on Windows WSL2 Ubuntu 20.04.

Requirements

sudo apt update
sudo apt install qt5-default cmake
sudo apt install qtbase5-dev
@jabarragann
jabarragann / README.md
Created September 26, 2023 04:41
PyQT interface and ROS publishers

PyQT interface and ROS publishers

The following contains a simple PyQT interfaced that publishes the values in the QWidgets via Ros topics

Setup

The code was tested on

  • Python 3.10 with a anaconda environment.
  • Windows WSL

PyQt versions