-
-
Notifications
You must be signed in to change notification settings - Fork 1
More than 1000 points in dataframe #145
Comments
This is definitely unusual and doesn't occur for me. Our documentation here https://plot.ly/python/plotly-express/ contains many PX plots with dataframes larger than 1000 points. Can you describe your environment and/or provide a sample of your data? |
Hi, Code to reproduce the issue: import pandas as pd
import plotly.express as px
data = pd.DataFrame(data={'x': range(10000), 'y':range(10000)})
px.scatter(data[:1001], x='x', y='y') px.version is '0.3.0' All in a centos 6 machine I've seen an error in the js console: Looking at the source: if (options && options.length) options.positions = options;
regl = options.regl; // persistent variables
var gl = regl._gl,
paletteTexture,
palette = [],
paletteIds = {}, Seems like is referencing an OpenGL context? |
Ah well that's definitely the problem then :) Yes, |
Thanks! This works perfectly, indeed!. px.scatter(data[:1001], x='x', y='y', render_mode="svg") Perhaps a warning would be desirable or detecting if gl is enabled? |
@nicolaskruchten is there any way not to use webGL in other chart types? Thank you! |
Any dataset (tested with scatter, line) with more than 1000 points will not show anything.
This works:
px.scatter(data[:1000], x='x', y='y')
This does not show anything:
px.scatter(data[:1001], x='x', y='y')
Is there anyway to configure it? Or is it a bug?
The text was updated successfully, but these errors were encountered: