2017-09-05 2 views
1

플롯을 사용하여 엄청난 수의 데이터 포인트 (2mm-3mm)로 무언가를 그려보고 있습니다.플롯 : 엄청난 수의 데이터 포인트

나는 다음과 같은 오류 얻을

py.iplot(fig, filename='test plot') 

실행하면 : 그럼

Woah there! Look at all those points! Due to browser limitations, the Plotly SVG drawing functions have a hard time graphing more than 500k data points for line charts, or 40k points for other types of charts. Here are some suggestions: 
(1) Use the `plotly.graph_objs.Scattergl` trace object to generate a WebGl graph. 
(2) Trying using the image API to return an image instead of a graph URL 
(3) Use matplotlib 
(4) See if you can create your visualization with fewer data points 

If the visualization you're using aggregates points (e.g., box plot, histogram, etc.) you can disregard this warning. 

내가이 그것을 저장하려고 :

py.image.save_as(fig, 'my_plot.png') 

을하지만 나는이 오류 :

PlotlyRequestError: Unknown Image Server Error 

어떻게하면 제대로 할 수 있습니까? 노트북의 정지 이미지 또는 대화 형 디스플레이인지는 중요하지 않습니다. 당신이 그것을 원한다면

+0

어떤 종류의 플롯을 생성합니까? 분산 형 플롯의 경우 'scattergl'을 사용해보십시오. –

+0

지금 바로 밀도 플롯을 수행하려고합니다. –

답변

3

하나의 옵션은 확실하지, 데이터를 다운 샘플링 될 것이다 : https://github.com/devoxi/lttb-py

나는 또한 대규모 데이터 세트와 브라우저에서 plotly에 문제가 - 누구든지 해결책이 있다면, 적어주세요! 감사합니다.

+0

LTTB 지원을 음모에 통합하는 데있어 현안은 중요하지 않습니다. https://github.com/plotly/plotly.js/issues/560 –

+0

선형 데이터, timeseries에 대해서만 실행 가능합니다. 다른 종류의 데이터가 있으면 매우 잘못된 결과가 발생할 수 있습니다! – Petronella

관련 문제