Changelog¶
Release history for vtkplotlib.
v2.0.0¶
Add support for opaque background colors (settable via
vpl.gcf().background_opactity = x). Note that this is for screenshots only (e.g. usingscreenshot_figorsave_fig). VTK does not support tranparent windows so this has no effect on interactive render windows.BREAKING:
vtkplotlib.screenshot_fignow returns a(height, width, 4)array instead of a(height, width, 3)array. This fourth entry symbolises opacity.Fix a segfault when
screenshot_figthenshowis called on the samefigure.
v1.5.1¶
Fix the PyInstaller hook not being collected by setuptools.
v1.5.0¶
Switch project license to MIT.
Drop support for Python 2.7 and 3.5.
Fix
vtkplotlib.QtFigure2().add_preset_views()with non-default arguments.
v1.4.1¶
Fix PyInstaller hook location.
v1.4.0¶
Speed up initialisation by replacing loading of matplotlib’s colors with a literal
dict.Fix the colors attribute of
surfacemishandling 2D array of scalars.Fix
TypeErrortripped byas_vtk_cmap("string", False).Create the
interactivesubmodule with the aliasi.Fix
legend‘skey: entrymapping being reset.Fix
legend.set_entry(array)calling bool on an arrayFix VTK version dependent
image_io.readfor TIFF, BMP and PNG.Move the tests module outside of the distributed
vtkplotlibpackage.Fix unicode support for
VTK>=9.0.0.Add cursor tracker to fancy
QtFigure2.
v1.3.5¶
Import new VTK==9.0.0 dependencies explicitly to make them more PyInstaller friendly.
v1.3.4¶
Support VTK 9.0.0.
v1.3.3¶
Restore compatibility with Python 2.7.
Elimiate importing
pkg_resourceswhich has a very slow startup time.
v1.3.1¶
Remeber to increment the version this time…
v1.3.0¶
Catch VTK file reading errors and raise them as Python exceptions, replacing the pop-up error dialogs VTK uses by default.
QtFigurenow supports being re-shown.Fix spurious VTK error dialogs from messy garbage collection of figures.
Allow a
pathlib.Pathto be used in functions where a filename is expected.Support TIFF and bitmap image formats using VTK’s image reading/writing machinery.
Add patchy support for
io.BytesIOimage files. This is heavily dependent on VTK allows it.Add a
zoom_to_contentsmethod.Add support for off screen rendering (screenshotting without drawing a window).
Fix the label parameter to
quiverandarrowhaving no effect.
v1.2.1¶
Take advantage of the new modular structure of
VTK >= 8.2.0so thatvtkplotlibonly imports the parts of VTK that it needs. This makesimport vtkplotlibfaster and PyInstaller applications smaller. Older versions of VTK are still supported and behave unchanged.
v1.2.0¶
Add a
vtkplotlib.legendwhose contents are determined by a newlabelparameter to eachvtkplotlibplot command.Add colormaps support to
mesh_plotAdd an option to
save_figandscreenshot_figto automatically crop away blank regions of the image.Add a
quick_show()method to all plots.
v1.1.0¶
Made a clumsy mistake in screenshot_fig. Forgot that the window needs to be open for it to work. Updated now and added to its test so it doesn’t slip by again
Catch and raise an exception raise if unable to open a given image type.
Add a figure history (
vtkplotlib.figure_history) to store the most recent figure(s).Allow cursors (given by
vtkplotlib.scatterwithuse_cursors=True) to be resized.Alias
zip_axesandunzip_axesto the top level package.Fix non-Qt figures not being re
showable.Add a
PolyDatawrapper class for VTK’svtkPolyDataallowing easy construction of custom mesh-like objects.Encourage a
sys.stdoutflush before starting the interactive renderer. This reduces (but does not fix) a race condition between VTK’s event loop and IPython’s console if a figure is shown soon after aprintstatement.Add support for non ASCII characters in paths which VTK doesn’t handle by default.
v1.0.0¶
Initial release on PyPI.