only require matplotlib & gdstk for functionality where we actually use them contributed by @gerardvt