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.11.2.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

plotink-1.11.2-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotink-1.11.2.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for plotink-1.11.2.tar.gz
Algorithm Hash digest
SHA256 f5d3f14180df6e534bca9dbb879f04d076f52a17be04c8ee7941d5cf50e26b8b
MD5 26ea5513b4bb8a5fd216308ee16313fc
BLAKE2b-256 655d55650ca349d71e05afcb9b1c9ca4d27f0ffd454c21971db06b9fce948244

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotink-1.11.2-py3-none-any.whl
  • Upload date:
  • Size: 45.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for plotink-1.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6e447ec56f36603c7e989290c291f212738092f711f5935e89b6101c9fad9637
MD5 2c4fbe5f27c217a78215860d34aa454e
BLAKE2b-256 0a728ee3dec767a28392e7f220460b0b0a55679962f06598e1b262bb87ea2f5e

See more details on using hashes here.

Supported by

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