Public Access
1bed381639283414513d4f861523538959799051
Two new buttons below the plot copy the current figure to the clipboard. The PNG copy renders off-screen on a temporary Agg canvas at a fixed 12:8 inches and 800 px width, independent of the window size, and restores figure canvas, size and dpi afterwards so the on-screen plot is untouched. The RGBA buffer is wrapped in GLib.Bytes for GdkPixbuf.Pixbuf.new_from_bytes, which current PyGObject requires (fixes the 'Expected GLib.Bytes, but got bytes' error). The SVG copy keeps using savefig into a text buffer; both report through logger. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Installing into private directory
=================================
1. Create a venv and include the system-site packages:
`python3 -m venv venv --system-site-packages`
2. Active that venv: `. venv/bin/activate`
3. Install an editable package: `pip install --no-deps -e .`
This will use the system packages already installed.
Alternatively you can install withoout the system-site-packages:
python3 -m venv venv
. venv/bin/activate
pip install -e .
This will download newer packages and install them in the venv.
Using uv
========
Dependicies needed:
sudo apt install libgirepository1.0-dev pkg-config
Then you can start DAMARIS3:
uv run DAMARIS3