-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
SVGExporter generates an additional background tag of 100% width and height in generateSvg(). This tag uses rgba to define the color which seens not to be fully supported by the standard. I.e. inkscape won't recognize the color, causing it to appear black (BTW: the size is also not correct).
Short description
Background color rectangle is incorrectly rendered.
Code to reproduce
Call export from context menu and select SVG as output format. Press "Copy" button and insert SVG image to e.g. inkscape (tested with version 1.1).
Expected behavior
The background shall be filled by the selected color.
Real behavior
The background rectangle will be black no matter what color was selected. The size is also wrong.
Tested environment(s)
- PyQtGraph version: 0.12.3
- Qt Python binding: PySide2 5.13.2 Qt 5.12.9
- Python version: 3.8
- NumPy version: 1.20.1
- Operating system: Windows 10
- Installation method: conda
Additional context
Proposed solution: either use Qt SVGGenerator to generate the background rectangle or add an option to disable background export at all (no background rectangle to be generated).