@@ -152,17 +152,16 @@ def draw_path(self, gc, path, transform, rgbFace=None):
152152 try :
153153 self ._renderer .draw_path (gc , p , transform , rgbFace )
154154 except OverflowError as err :
155- msg = ("Exceeded cell block limit in Agg.\n \n "
156- "Please reduce "
157- "the value of rcParams['agg.path.chunksize'] "
158- f"(currently { nmax } ) or increase the "
159- "path simplification threshold"
160- "(rcParams['path.simplify_threshold'] = "
161- f"{ mpl .rcParams ['path.simplify_threshold' ]:.2f} "
162- "by default and path.simplify_threshold "
163- f"= { path .simplify_threshold :.2f} "
164- "on the input)."
165- )
155+ msg = (
156+ "Exceeded cell block limit in Agg.\n \n "
157+ "Please reduce the value of "
158+ f"rcParams['agg.path.chunksize'] (currently { nmax } ) "
159+ "or increase the path simplification threshold"
160+ "(rcParams['path.simplify_threshold'] = "
161+ f"{ mpl .rcParams ['path.simplify_threshold' ]:.2f} by "
162+ "default and path.simplify_threshold = "
163+ f"{ path .simplify_threshold :.2f} on the input)."
164+ )
166165 raise OverflowError (msg ) from None
167166 else :
168167 try :
@@ -176,36 +175,36 @@ def draw_path(self, gc, path, transform, rgbFace=None):
176175 if not path .should_simplify :
177176 cant_chunk += "- path.should_simplify is False\n "
178177 if len (cant_chunk ):
179- msg = ("Exceeded cell block limit in Agg, however "
180- "for the following reasons:\n \n "
181- f"{ cant_chunk } \n "
182- "we can not automatically split up this path "
183- "to draw.\n \n "
184- "Please manually simplify your path." )
178+ msg = (
179+ "Exceeded cell block limit in Agg, however for the "
180+ "following reasons:\n \n "
181+ f"{ cant_chunk } \n "
182+ "we can not automatically split up this path to draw."
183+ "\n \n Please manually simplify your path."
184+ )
185185
186186 else :
187- inc_threhold = (
188- "or increase the "
189- "path simplification threshold"
187+ inc_threshold = (
188+ "or increase the path simplification threshold"
190189 "(rcParams['path.simplify_threshold'] = "
191190 f"{ mpl .rcParams ['path.simplify_threshold' ]} "
192191 "by default and path.simplify_threshold "
193192 f"= { path .simplify_threshold } "
194193 "on the input)."
195194 )
196195 if nmax > 100 :
197- msg = ("Exceeded cell block limit in Agg. Please "
198- "reduce the value of "
199- "rcParams['agg.path.chunksize'] "
200- f"(currently { nmax } ) "
201- + inc_threhold
202- )
196+ msg = (
197+ "Exceeded cell block limit in Agg. Please reduce "
198+ "the value of rcParams['agg.path.chunksize'] "
199+ f"(currently { nmax } ) { inc_threshold } "
200+ )
203201 else :
204- msg = ("Exceeded cell block limit in Agg. Please set "
205- "the value of rcParams['agg.path.chunksize'], "
206- f"(currently { nmax } ) to be greater than 100 "
207- + inc_threhold
208- )
202+ msg = (
203+ "Exceeded cell block limit in Agg. Please set "
204+ "the value of rcParams['agg.path.chunksize'], "
205+ f"(currently { nmax } ) to be greater than 100 "
206+ + inc_threshold
207+ )
209208
210209 raise OverflowError (msg ) from None
211210
0 commit comments