echandler5956f / Galileo

A light-weight and extensible C++ library for Pseudospectral Collocation of Switched Systems
MIT License
57 stars 5 forks source link

Fix "Warning: slow font initialization" #52

Closed echandler5956f closed 9 months ago

echandler5956f commented 9 months ago

When using the GNUPlotInterface (see galileo/tools) a strange bug occurs. Sometimes, the figures plot perfectly fine, but other times, we get "Warning: slow font initialization" and the legend disappears from the plot. This only seems to happen for the first plot- any subsequent ones work fine.

echandler5956f commented 9 months ago

The issue seems to be resolved by using a single Gnuplot process. The plots render much, much faster now as well.