Skip to content

Commit dd8d947

Browse files
committed
Release v2.0.0.
1 parent 268e6de commit dd8d947

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# -- General configuration ---------------------------------------------------
3333

3434
project = 'vtkplotlib'
35-
copyright = "2019-2021, Brénainn Woodsend"
35+
copyright = "2019-2022, Brénainn Woodsend"
3636
author = "Brénainn Woodsend"
3737

3838
# The version info for the project you're documenting, acts as replacement

docs/source/rst_prolog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
:language: python
77
:class: highlight
88

9+
.. role:: red
10+
911
.. py:currentmodule:: vtkplotlib
1012

1113
.. _numpy: http://numpy.org/
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/* Custom `.. rst-class:: in-red` blocks. */
2-
.in-red {
2+
.in-red, .red {
33
color: darkred;
44
}
File renamed without changes.

history/v2.0.0.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* Add support for opaque background colors (settable via
2+
:py:`vpl.gcf().background_opactity = x`). Note that this is for screenshots
3+
only (e.g. using `screenshot_fig` or `save_fig`). VTK does not support
4+
tranparent windows so this has no effect on interactive render windows.
5+
6+
* :red:`BREAKING`: `vtkplotlib.screenshot_fig` now returns a
7+
:py:`(height, width, 4)` array instead of a :py:`(height, width, 3)` array.
8+
This fourth entry symbolises opacity.
9+
10+
* Fix a segfault when `screenshot_fig` then `show` is called on the same
11+
`figure`.

vtkplotlib/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = '1.5.1'
2+
__version__ = '2.0.0'
33
__version_info__ = tuple(map(int, __version__.split(".")))

0 commit comments

Comments
 (0)