Skip to content

Instantly share code, notes, and snippets.

JotaRata /
Last active December 3, 2022 02:36
Matplotlib subplots shortcut
class get_axis():
Context manager to generate subplots quickly
- rows, cols (int): Rows and columns to draw.
- xlabel, ylabel (str / list): Labels for the horizontal and vertical axis, If xlabel/ylabel are lists then each corresponding subplot will have its own labels.
- title (str / list): Title of the plot, If title is a list then each subplot will have its own title.
- figzise (tuple): Size of the figure in inches (same as figure.figsize).
- figargs (dict): Additionl arguments passed to plt.subplots
JotaRata / TextEditor.cs
Last active July 9, 2022 16:18
A really really simple text editor for Unity
View TextEditor.cs
This is a really simple text editor to be used within Unity
It's useful to write memos, notes or ideas inside your Unity Editor window
Kinda like Blender's Text Editor
using UnityEngine;
using UnityEditor;
using System;
using System.IO;