@@ -152,17 +152,16 @@ def draw_path(self, gc, path, transform, rgbFace=None):
152
152
try :
153
153
self ._renderer .draw_path (gc , p , transform , rgbFace )
154
154
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
+ )
166
165
raise OverflowError (msg ) from None
167
166
else :
168
167
try :
@@ -176,36 +175,36 @@ def draw_path(self, gc, path, transform, rgbFace=None):
176
175
if not path .should_simplify :
177
176
cant_chunk += "- path.should_simplify is False\n "
178
177
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
+ )
185
185
186
186
else :
187
- inc_threhold = (
188
- "or increase the "
189
- "path simplification threshold"
187
+ inc_threshold = (
188
+ "or increase the path simplification threshold"
190
189
"(rcParams['path.simplify_threshold'] = "
191
190
f"{ mpl .rcParams ['path.simplify_threshold' ]} "
192
191
"by default and path.simplify_threshold "
193
192
f"= { path .simplify_threshold } "
194
193
"on the input)."
195
194
)
196
195
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
+ )
203
201
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
+ )
209
208
210
209
raise OverflowError (msg ) from None
211
210
0 commit comments