@@ -212,18 +212,23 @@ def plot(figure_or_data, validate=True, **plot_options):
212
212
figure = tools .return_figure_from_figure_or_data (figure_or_data , validate )
213
213
214
214
for entry in figure ['data' ]:
215
+ if entry ['type' ] != 'scattergl' :
216
+ continue
215
217
for key , val in list (entry .items ()):
216
218
try :
217
219
if len (val ) > 40000 :
218
220
msg = ("Woah there! Look at all those points! Due to "
219
- "browser limitations, Plotly has a hard time "
221
+ "browser limitations, Plotly the SVG drawing "
222
+ "functions have a hard time "
220
223
"graphing more than 500k data points for line "
221
224
"charts, or 40k points for other types of charts. "
222
225
"Here are some suggestions:\n "
223
- "(1) Trying using the image API to return an image "
226
+ "(1) Use the 'go.Scattergl' trace object to "
227
+ "generate a WebGl graph.\n "
228
+ "(2) Trying using the image API to return an image "
224
229
"instead of a graph URL\n "
225
- "(2 ) Use matplotlib\n "
226
- "(3 ) See if you can create your visualization with "
230
+ "(3 ) Use matplotlib\n "
231
+ "(4 ) See if you can create your visualization with "
227
232
"fewer data points\n \n "
228
233
"If the visualization you're using aggregates "
229
234
"points (e.g., box plot, histogram, etc.) you can "
0 commit comments