Skip to main content

Helper routines for use with plotters

Project description

plotink

Python helper routines for driving AxiDraw, EggBot, WaterColorBot, and similar plotter-based machines.

This repository maintained by Windell H. Oskay, Bantam Tools.

Source code and issue tracker are hosted at github.

Installation

Releases are available on PyPI.

To install the latest release, use pip install plotink

Overview

These library files are intended to provide a single place to edit routines that are common to the EggBot extensions for Inkscape, the WaterColorBot extensions for Inkscape, the AxiDraw extensions for Inkscape, and derivative machines. Hosting these in a single place means less duplication of code, and (more importantly) reduces the number of cases where identical code changes need to be made in multiple places.

The library files are:

  • ebb_serial.py - General routines for communicating with the EiBotBoard by USB serial.
  • ebb_motion.py - Motion-related routines for interacting with the robot.
  • plot_utils.py - Additional helper functions for managing plots and their data.
  • text_utils.py - Additional helper functions for managing text.
  • rtree.py - Minimal R-tree spatial index class for calculating intersecting regions.
  • spatial_grid.py - Specialized flat grid spatial index class for finding nearest neighbors.

Python version support

Latest version requires Python 3.6 or newer.

A previous release, Plotink version 1.0.1, supports python 2.7 as well.

Logging

This library uses the standard python logging module. Suggested configurations follow.

For stand-alone machine control, print info, warnings, and errors to stdout:

import logging

logging.basicConfig(level=logging.INFO, format='%(message)s')

For running as an Inkscape extension, print errors to Inkscape's extension errors log:

import logging

logging.basicConfig(level=logging.ERR,
        format='%(message)s'),
        filename = "~/.config/inkscape/extension-errors.log")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plotink-1.14.2.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plotink-1.14.2-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file plotink-1.14.2.tar.gz.

File metadata

  • Download URL: plotink-1.14.2.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for plotink-1.14.2.tar.gz
Algorithm Hash digest
SHA256 be37ce8fcd1adb2f7ab50fe340a84e28947d597b54968954f0ce17fc970066bb
MD5 bd7abd1676a267691de42778d57a3554
BLAKE2b-256 a1850c757450bd6be7ab5d4bbfba2ac3bff40d5225f1d60bc75817bd9d25b59f

See more details on using hashes here.

File details

Details for the file plotink-1.14.2-py3-none-any.whl.

File metadata

  • Download URL: plotink-1.14.2-py3-none-any.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for plotink-1.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3f556d727866453727ba4f9d4b6877f96de532f97be4e9d8c5d5edb7dbcfaef
MD5 2c0588474a246bd9b99f284be64a30a7
BLAKE2b-256 67b9b411f08e828d6b12841cdb63a3dc3459b13d8e4391b9b1b35a7fc4f470d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page