Wykres commitów

42 Commity (0d1d0303ba746f634f695fd5cc5e5f484e537d91)

Autor SHA1 Wiadomość Data
nyanpasu64 47be5452f5 Add partial tests for renderer color bars 2024-06-06 00:02:49 -07:00
nyanpasu64 e9f88d9ee9 Implement parallel renderer, set as default 2023-12-17 23:57:14 -08:00
nyanpasu64 3f9869d3d8 Rewrite debug plotting system around absolute timestamps 2022-03-11 21:08:08 -08:00
nyanpasu64 85aa6a6654 Pass per-frame frequency estimate from Trigger to Renderer 2021-07-13 17:48:21 -07:00
nyanpasu64 635f0f95e6 Update dependencies, fix unit tests on Python 3.9 2021-06-14 15:12:08 -07:00
nyanpasu64 a655f562f8
Switch to new Black version (21.6b0), reformat project (#374)
I also fixed pre-commit hooks on machines without Python 3.6 installed.

I don't like how Black now removes leading and trailing spaces in
doc comments, but it is what it is.
2021-06-14 15:09:24 -07:00
nyanpasu64 500609e40b Fix unit test bug exposed by updating pytest 2019-08-10 13:25:27 -07:00
nyanpasu64 8f2c334c16 Rename default_config to template_config, to avoid confusion 2019-06-16 22:57:40 -07:00
nyanpasu64 40ccba0f72 Ensure CustomLine.xdata is always ndarray 2019-06-09 16:04:15 -07:00
nyanpasu64 8fb107fec1 Flatten Renderer hierarchy using multiple inheritance
Ensure backend implementations do not inherit from RendererFrontend,
since they don't need to know.
2019-06-09 15:58:07 -07:00
nyanpasu64 267209963b Improve render test "pytest parameterize" names (#289) 2019-06-01 22:04:03 -07:00
nyanpasu64 457e50c88a Add debug visualizations 2019-04-12 14:15:07 -07:00
nyanpasu64 f187e53d55 Add test for using Renderer without drawing main line, modularize 2019-04-12 14:09:28 -07:00
nyanpasu64 9f68bff952 Make renderer backends pluggable, store constants inside (#267) 2019-04-11 07:57:05 -07:00
nyanpasu64 fa8b77794d Add configurable grid line width 2019-04-08 12:07:20 -07:00
nyanpasu64 10142f5bb4 Fix label scaling, rewrite resolution divisor (#264)
- Alter DPI (pixel/inch) instead of scaling each UI element individually
- Fix matplotlib output dimension mismatches with nonstandard DPIs
  (which may not have occurred at 96dpi).
2019-04-08 05:23:01 -07:00
nyanpasu64 8300ec3682 Add support for per-channel labels (#256)
Known issue: matplotlib's font weight handling is often wrong.
2019-04-08 03:42:46 -07:00
nyanpasu64 ba4326fc4a Replace output/renderer RGB_DEPTH with BYTES_PER_PIXEL (#262)
The new name expresses the semantic meaning of this constant.
The old name is tied to its current value (RGB 3-byte color depth).
2019-04-07 09:10:15 -07:00
nyanpasu64 3849f7fe85 Refactor renderer API 2019-04-04 18:12:43 -07:00
nyanpasu64 0dbba8ac09 Add backend for stereo rendering (#196)
GUI support will be added in a separate PR.
2019-02-18 02:10:17 -08:00
nyanpasu64 3e21dd4c0e disable antialiasing for tests 2019-02-16 08:06:03 -08:00
nyanpasu64 e865e1c803 [renderer] Treat line_width as pixels, not points (#186)
Convert line_width from pixels to points (96dpi)

- Why not switch to 72dpi, where 1pt = 1px?
  - Gridlines become too thin, and change from white to gray.
    This is bad for users, and causes unit tests to fail.

Fixes #178.
2019-02-05 21:57:22 -08:00
nyanpasu64 25ae1c803d Add tests for Renderer grid lines 2019-01-12 04:12:27 -08:00
nyanpasu64 70d6cfc1a2 Run black on code 2019-01-03 13:00:18 -08:00
nyanpasu64 5c47c293cb Rename ovgenpy to corrscope 2018-12-22 18:39:03 -08:00
nyanpasu64 88a79a97e8 Remove Renderer.set_colors(), move into constructor
Makes it simpler to create an impl which constructs all canvases
within __init__, not on first frame.
2018-11-05 15:45:38 -08:00
nyanpasu64 5c7db27862 Improve error message of test_renderer
If the foreground color is 136 instead of the right color,
this corresponds to the global foreground color #888888,
which means the per-channel foreground color wasn't applied.
2018-11-05 15:30:06 -08:00
nyanpasu64 342752febf Move LayoutConfig and RendererLayout to new file 2018-11-03 22:53:47 -07:00
nyanpasu64 62e8c800f4 Fix passing tuples/lists into RendererLayout 2018-11-03 22:51:42 -07:00
nyanpasu64 6f09710999 Add tests to ensure Outputs are closed upon exceptions 2018-08-18 02:57:03 -07:00
nyanpasu64 3324ed1568 [renderer] Test default colors, and channel line-color overrides 2018-08-17 00:00:36 -07:00
nyanpasu64 74f47a6525 Add test for rendering to output 2018-08-16 22:21:18 -07:00
nyanpasu64 5f94be0329 Add test for renderer background/foreground colors 2018-08-16 22:21:18 -07:00
nyanpasu64 6e7b7f4048 Rearrange renderer unit tests 2018-08-15 22:39:48 -07:00
nyanpasu64 21d739cd4f Move layout rows/columns to class LayoutConfig 2018-08-14 21:24:09 -07:00
nyanpasu64 2f4ebece70 Move renderer layout calculation to class RendererLayout 2018-08-14 21:23:40 -07:00
nyanpasu64 4a25b41d22 Move MatplotlibRenderer.create_window parameter into cfg 2018-08-14 21:23:19 -07:00
nyanpasu64 4fa9cbb615 Fix test_renderer.py 2018-07-24 04:52:12 -07:00
nyanpasu64 e4399640bc whatever 2018-07-22 03:51:29 -07:00
nyanpasu64 9816001f9d [wip] Frame capture and FFmpeg video output 2018-07-22 02:06:10 -07:00
nyanpasu64 26e3f36375 Optimize imports 2018-07-20 01:11:56 -07:00
nyanpasu64 2ad624be03 RendererConfig calculates orientation based on nrows or ncols.
- Ensure either nrows or ncols is set.
- If neither, set ncols=1 (single column).
- Remove rows_first flag.

Add test_renderer.py
2018-07-15 23:42:17 -07:00