Skip to content
Snippets Groups Projects
Commit bdf3b4c2 authored by David C. Lonie's avatar David C. Lonie
Browse files

Defer matplotlib initialization for text rendering.

Rather than querying for matplotlib when
vtkMatplotlibMathTextUtilities is constructed, check only when
the library is needed. This saves some start up time for e.g.
ParaView when mathtext is not used.

Some additional changes are required due to a change in behavior:
vtkMatplotlibMathTextUtilities::New() used to return NULL when
matplotlib was not found to signal that mathtext was unavailable.
The vtkMathTextUtilities::IsAvailable() virtual method has been
added to allow querying of the availability, now that New() can
return a valid object when matplotlib is unavailable.
parent b0691ec1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment